Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

root partition full

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
peter850
Posts: 9
Joined: 2016-12-27 15:46

root partition full

#1 Post by peter850 »

Hello every body.

I have now a basic/easy problem and I can't solved it.
My problem is: my system tell I don't have space in my root partition (used 16 GB) but I don't find where is this 16GO? what directories used it ?

Code: Select all

 /# df -h
Filesystem                 Size  Used Avail Use% Mounted on
udev                       1.9G     0  1.9G   0% /dev
tmpfs                      385M  6.2M  379M   2% /run
/dev/mapper/yoga--vg-root   19G   16G  2.2G  88% /
tmpfs                      1.9G  4.0K  1.9G   1% /dev/shm
tmpfs                      5.0M  4.0K  5.0M   1% /run/lock
tmpfs                      1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sda1                  236M   82M  142M  37% /boot
/dev/mapper/yoga--vg-data   20G  7.9G   11G  43% /data
/dev/mapper/yoga--vg-home  9.1G  4.8G  3.8G  56% /home
tmpfs                      385M  4.0K  385M   1% /run/user/118
tmpfs                      385M   20K  385M   1% /run/user/1000

Code: Select all

 # du -hs /
du: cannot access '/proc/2464/task/2464/fd/3': No such file or directory
du: cannot access '/proc/2464/task/2464/fdinfo/3': No such file or directory
du: cannot access '/proc/2464/fd/4': No such file or directory
du: cannot access '/proc/2464/fdinfo/4': No such file or directory
du: cannot access '/run/user/1000/gvfs': Permission denied
du: cannot access '/run/user/118/gvfs': Permission denied
18G	/

Code: Select all

# du -hs /*
9.8M	/bin
80M	/boot
7.9G	/data
4.0K	/dev
9.5M	/etc
4.8G	/home
0	/initrd.img
0	/initrd.img.old
478M	/lib
4.0K	/lib64
4.0K	/live-build
12K	/media
4.0K	/mnt
4.0K	/opt
du: cannot access '/proc/2465/task/2465/fd/3': No such file or directory
du: cannot access '/proc/2465/task/2465/fdinfo/3': No such file or directory
du: cannot access '/proc/2465/fd/3': No such file or directory
du: cannot access '/proc/2465/fdinfo/3': No such file or directory
0	/proc
13M	/root
du: cannot access '/run/user/1000/gvfs': Permission denied
du: cannot access '/run/user/118/gvfs': Permission denied
6.3M	/run
13M	/sbin
4.0K	/srv
0	/sys
84K	/tmp
4.4G	/usr
254M	/var
0	/vmlinuz
0	/vmlinuz.old


Realy I'm blind or not ?? Where is 16 GB for root partition I see just
/usr = 4.4 GB

/home not root partion
/data not root partion

Thanks for put light in my head ;}
PS: I use logical volume management(LVM) for my partions.

millpond
Posts: 698
Joined: 2014-06-25 04:56

Re: root partition full

#2 Post by millpond »

Keep in ind that 'root' can be a bit ambiguous.

There is the root filesystem: /

There is the home directory for the superuser root: /root

I cannot make sense of the du and df output - mine are radically different here.

However, some of the specialized, or temp filesystems do use space from the 'root' filesystem, and can fill it up, regardless of what df says.
I believe somewhere between 5 and 10% of diskspace must be kept free at all times or the system will slow, and crach with no space warnings. Here, on a 50Gb Linux partition, it starts getting critical if there are 5Gb left. Below that it *will* start running out of space and crash.

Also, make sure your swap partitions are on: swapon

Hopefully someone with a bit more expertise with filesystems, such as HOAS, or Garry will chime in here!

Cefiar
Posts: 18
Joined: 2017-03-25 22:50

Re: root partition full

#3 Post by Cefiar »

Something that you might want to check is that you haven't got files under your mount points.

If you can boot up to a standard VT and log in directly as root, you could unmount /data, /home or even /boot to see if the directories contain any other files. They'll take up space on the root filesystem even if you've mounted another filesystem over them, and won't be visible to du until you unmount the partitions covering them.

Also, don't use /* with du, as it won't list any hidden directories ie: any that start with a . (dot). Try using the --max-depth (or -d) command instead:

Code: Select all

du -hd 1 /
If you want to just target the root filesystem, try adding the --one-file-system (or -x) command:

Code: Select all

du -hxd 1 /
This way you won't be waiting for du to traverse your other filesystems each time you run.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: root partition full

#4 Post by GarryRicketson »

PS: I use logical volume management(LVM) for my partions.
by millpond »Hopefully someone with a bit more expertise with filesystems, such as HOAS, or Garry will chime in here!
Thanks, but I have 0 experience with LVM, so don't think I can
be of much help.


https://wiki.debian.org/LVM

Maybe show what :

Code: Select all

lvdisplay
shows,...?

Bulkley
Posts: 6386
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: root partition full

#5 Post by Bulkley »

Maybe I'm mis-reading here but what about

Code: Select all

# apt-get clean
? That usually does it for me.

User avatar
eor2004
Posts: 251
Joined: 2013-10-01 22:49
Location: Puerto Rico
Has thanked: 4 times
Been thanked: 5 times

Re: root partition full

#6 Post by eor2004 »

apt-get clean
apt-get autoclean
apt-get autoremove could help too!

also you could install "filelight" it helped me find out sometime ago that almost 20gb of data was being chewed up by firewall logs, then I disabled and deleted the firewall logs on my system and problem solved!
Debian 12 Gnome on a MSI H61M-P25 (B3) PC & on a Dell Latitude E6410 & HP EliteBook 8540p Laptops.
LMDE 6 on a Panasonic ToughBook CF-C1 Laptop.
Bodhi Linux 7 on a HP Compaq DC5750 Small Form Factor PC.
Windows 11 on a Intel DH55TC PC.

peter850
Posts: 9
Joined: 2016-12-27 15:46

Re: root partition full

#7 Post by peter850 »

In first, thanks for all this reponse.

Code: Select all

sudo du -hxd 1
4.0K	./live-build
4.0K	./srv
9.8M	./bin
305M	./var
4.0K	./mnt
478M	./lib
12K	./media
13M	./root
13M	./sbin
9.5M	./etc
4.0K	./opt
4.0K	./lib64
80K	./tmp
4.4G	./usr
5.3G	.
Thanks for this command, it's clear I have a bug.

Code: Select all

lsblk
NAME                  MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                     8:0    0 119.2G  0 disk
├─sda1                  8:1    0   243M  0 part  /boot
├─sda2                  8:2    0     1K  0 part
└─sda5                  8:5    0   119G  0 part
  └─sda5_crypt        254:0    0   119G  0 crypt
    ├─yoga--vg-swap_1 254:1    0   7.8G  0 lvm   [SWAP]
    ├─yoga--vg-home   254:2    0   9.3G  0 lvm   /home
    ├─yoga--vg-root   254:3    0  18.6G  0 lvm   /
    └─yoga--vg-data   254:4    0    20G  0 lvm   /data

Code: Select all

sudo lvdisplay -av
  --- Logical volume ---
  LV Path                /dev/yoga-vg/swap_1
  LV Name                swap_1
  VG Name                yoga-vg
  LV UUID                a9p6Hi-7pzM-8bwf-JVnZ-GC3I-l2Le-8P7690
  LV Write Access        read/write
  LV Creation host, time yoga, 2017-02-19 18:39:07 +0000
  LV Status              available
  # open                 2
  LV Size                7.77 GiB
  Current LE             1990
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1

  --- Logical volume ---
  LV Path                /dev/yoga-vg/home
  LV Name                home
  VG Name                yoga-vg
  LV UUID                ZSJ1UR-SOKU-LQEE-C2ew-m1d7-mv67-Gsxgg3
  LV Write Access        read/write
  LV Creation host, time yoga, 2017-02-19 18:42:55 +0000
  LV Status              available
  # open                 1
  LV Size                9.31 GiB
  Current LE             2384
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2

  --- Logical volume ---
  LV Path                /dev/yoga-vg/root
  LV Name                root
  VG Name                yoga-vg
  LV UUID                XcZVbq-BN22-f962-vTgf-F0pi-Kzvu-zYBDd5
  LV Write Access        read/write
  LV Creation host, time yoga, 2017-02-19 18:43:58 +0000
  LV Status              available
  # open                 1
  LV Size                18.62 GiB
  Current LE             4768
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:3

  --- Logical volume ---
  LV Path                /dev/yoga-vg/data
  LV Name                data
  VG Name                yoga-vg
  LV UUID                alPtkk-O0J1-aj6Z-N1BR-tguh-Mw1d-iK7xy5
  LV Write Access        read/write
  LV Creation host, time yoga, 2017-02-20 20:39:22 +0000
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             5120
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:4
Bulkley wrote:apt-get clean
This command clean the cache of apt-get and this cache is in /var and my var is 0.3 GB it's not that. I still ordered in case or but not,)
Cefiar wrote:If you can boot up to a standard VT and log in directly as root, you could unmount /data, /home or even
I think it's a good idea but my system is encrypt to. And I m scarded to corrupt my data if y mount just one partition. But he went search if I can do this. Thanks

PS: normaly this week-end I need to repart my other computer with arch Linux because after one upgrade, my system boot on a black screen. Linux power ,)

Post Reply