Filesystem structure not working.

Posted:
Mar 2nd, '24, 14:51
by laidlaws
{I must be getting too old. The answer to this question should be obvious, but I cannot see it.}
I am running a standard installation of Mageia 9. It has the usual top-level "/" directory containing only the main folders. iT is normally a few GB but is only 14 MB.
But that isn't my problem. Every file in each of those subdirectories, including /home, is counted as being in /, which fills up very quickly. This seems to be a natural consequence of the directory structure, but it has worked that way for years. What am I missing?
Re: Filesystem structure not working.

Posted:
Mar 2nd, '24, 16:04
by doktor5000
Some more information would be necessary. How do you measure the size for / ? How do you check if a file/subdirectory is located in / filesystem ?
The output of
- Code: Select all
df -PhT
would be helpful
Re: Filesystem structure not working.

Posted:
Mar 2nd, '24, 16:43
by laidlaws
df -PhT:
The size of / is the same. /dev/sdc is a USB key.
- Code: Select all
# df -PhT
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs tmpfs 3.9G 1.6M 3.9G 1% /run
/dev/sda14 ext4 48G 46G 0 100% /
/dev/sda9 ext4 20G 6.1G 13G 33% /usr
efivarfs efivarfs 256K 60K 192K 24% /sys/firmware/efi/efivars
/dev/sda11 ext4 260G 258G 1.5G 100% /home
/dev/sda13 ext4 20G 288K 19G 1% /tmp
/dev/sda12 ext4 15G 4.6G 9.4G 33% /var
tmpfs tmpfs 790M 88K 790M 1% /run/user/1000
/dev/sr0 iso9660 14M 14M 0 100% /run/media/doug/rEFInd_0.12.0
/dev/sdc1 vfat 512M 266M 247M 52% /run/media/doug/LIBREELEC
/dev/sdc2 ext4 28G 3.5G 24G 13% /run/media/doug/STORAGE
added code tags ~Germ
Re: Filesystem structure not working.

Posted:
Mar 2nd, '24, 20:36
by doktor5000
Seems you missed one question.
doktor5000 wrote:How do you check if a file/subdirectory is located in / filesystem ?
Apart from that your / and /home is 100% full. Not sure you you cam to that 14 MB but / is currently 46GB in size.
On an unrelated note, any particular reason why you have separate filesystems for /usr, /tmp and /var ?
Re: Filesystem structure not working.

Posted:
Mar 3rd, '24, 17:43
by laidlaws
I still can't give a mechanism for this, but I cansee now why it happened when it did. A few months ago, I bought and added to my machine a drive in M.2 format to hold backups. In the M.2 format, it was a rather tiny PCB rather like a stick of RAM. Ther is a place on the motherboard to mount it physically. Because there were no cables involved, I had to accept thed rive letter the BIOS gave it, which was /dev/sda. Both Windows and Linux saw it as the first drive, and that was where Mageia installer put the installation, noton thje hard drive, which was now /dev/sdb That caused the confusion. I eventually forced the installer to use the original partitions on the hard disk, and it all came together
Sho mark this thread as SOLVED or INVALID, following Bugzilla classification?
Re: Filesystem structure not working.

Posted:
Mar 3rd, '24, 17:46
by doktor5000
Just mark it as DONE as there is no real solution.
Hint: you can use lsblk to more easily see the disk/partition hierarchy including the filesystem mounts.