The officially official Devuan Forum!

You are not logged in.

#1 2023-06-26 10:03:59

pierlo
Member
Registered: 2018-04-27
Posts: 16  

Space on root missing

I have a separate /home installation, so my HD is split in two.

DF tells me once that I have 27% occupied space on root and the other time that I have 97% occupied space on root.

Unfortunately, sometimes, due to the limited free space, some operations do not go through.

In all this I cannot figure out where and what my root occupies.

swap is in another disk

Can anyone help me?

sudo df -i
[sudo] password di pierlo: 
File system       Inode IUsati  ILiberi IUso% Montato su
udev            2039327    593  2038734    1% /dev
tmpfs           2041729    738  2040991    1% /run
/dev/sdb1       1220608 325358   895250   27% /
tmpfs           2041729      6  2041723    1% /run/lock
tmpfs           2041729     79  2041650    1% /dev/shm
/dev/sdb3       6111232  36986  6074246    1% /home
/dev/sda1      14196736    814 14195922    1% /home/pierlo/media
tmpfs            408345     21   408324    1% /run/user/1000

sudo df --total
File system    1K-blocchi    Usati Disponib. Uso% Montato su
udev              8157308        0   8157308   0% /dev
tmpfs             1633384      960   1632424   1% /run
/dev/sdb1        19047080 17437744    616468  97% /
tmpfs                5120       16      5104   1% /run/lock
tmpfs             6685480    25008   6660472   1% /dev/shm
/dev/sdb3        95569316  6329988  84338468   7% /home
/dev/sda1       222430620 44817636 168042576  22% /home/pierlo/media
tmpfs             1633380       12   1633368   1% /run/user/1000
total           355161688 68611364 271086188  21% -

mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8157308k,nr_inodes=2039327,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=600,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1633384k,mode=755,inode64)
/dev/sdb1 on / type ext4 (rw,noatime,discard,errors=remount-ro)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
pstore on /sys/fs/pstore type pstore (rw,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=6685480k,inode64)
none on /sys/kernel/config type configfs (rw,relatime)
/dev/sdb3 on /home type ext4 (rw,noatime,discard)
/dev/sda1 on /home/pierlo/media type ext4 (rw,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1633380k,nr_inodes=408345,mode=700,uid=1000,gid=1000,inode64)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal on /root/.cache/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=0,group_id=0)

Last edited by pierlo (2023-06-26 10:05:10)

Offline

#2 2023-06-26 10:53:25

pierlo
Member
Registered: 2018-04-27
Posts: 16  

Re: Space on root missing

I solved... With ncdu I saw that it was a virtual disk .qcow in /lib/virt

Offline

#3 2023-06-26 15:45:27

chris2be8
Member
Registered: 2018-08-11
Posts: 313  

Re: Space on root missing

df -i show you the number of inodes in a filesystem. df --total show how many 1k blocks of disk space there are (in both cases you get total, used and available). See man df for details.

It's possible to run out of inodes but not space. This makes it impossible to add any new files to the filesystem. Which can be very confusing if you don't realise what's happened (I fell into this trap, though the disk was faulty and bought a new disk before realising I only needed to tidy up junk files).

Also you don't usually need to run df as root, it should work just as well as a non-root account.

Offline

#4 2023-06-26 20:32:29

pierlo
Member
Registered: 2018-04-27
Posts: 16  

Re: Space on root missing

Thank you very much, I was going to format, then fortunately with ncdu I found out that the occupied space that I didn't understand what it was occupied by was in /lib/virt and I remembered that the first virtual machines that h created by default create the file system practically on root, in fact then I made the virtual disks on /home, but I left the ones already created there. With those removed, the free space reappeared.... smile

Offline

Board footer