Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm not sure exactly where to post this, nor what my problem is. I have a desktop running Debian Stable, using LVM. Some time back I got a notice that my root drive was full. I had a spare 128GB SD card, so I formatted it and made it part of the root group. Very soon it was full. I have a hard time believing that I have 145GB on my root. I can update, most of the time, by running apt clean, but sometimes the drive is full before the update completes. I don't see anything that I would consider unusual returned from du or df. Something seems to be filling my root drive, and i suspect it's a problem with the LVM setup, but I'm not experienced enough with it to be sure. I've deleted logs, and running logrotate, and var/log isn't at all that large. Any help or suggestions would be appreciated.
I've gone through every top-level directory under /, and the total usage is under 10GB, with /usr being the largest at ~7GB. I have no idea why the system is reporting this:
/dev/mapper/chromebox--vg-root 143G 137G 686M 100% /
/home is on a separate partition, and a different volume group in the LVM, but even that wouldn't fill the root volume.
I don't have enough experience with LVM to tell where the issue is, nor to get the pertinent settings to show. I've never used LVM before, until a fresh install of Debian 10, and it seemed like a good idea at the time. I believe I need to revise the LVM settings, but I don't want to bork the entire system and have to do a reinstall of everything. I've looked at the LVM documentation, but I'm still unclear on a lot of it. I could use some pointers.
This has nothing to do with LVM. There are two common causes of "hidden" disk usage: Files that are deleted but still open, and directories that contain data but were mounted over.
Given the magnitude of your problem, I'd first check for the latter. I'd unmount the various /media and /home filesystems, then check if any data is stored under those mount points.
To get rid of deleted files, a reboot would be my first approach.
The /media mounts are external hard drives not in the LVM group. Removing them has no effect. /home was created and formatted at the same time as the rest of the system, and the entire SSD was formatted. I've rebooted many times since the disk was reported full. I just find it hard to believe that 140+GB of files actually exist.
Well, I found the problem. Somehow one of the /media mount points used by an external HDD apparently got mounted to the internal SSD. I still need to find that link and remove it, but deleting the entire /media/stan/USB3_HDD directory, with the external HDD disconnected, restored the missing space. I'm not sure how that happened, but I'll eventually track down the link, since I know what it is. Thanks for the suggestions.
Somehow one of the /media mount points used by an external HDD apparently got mounted to the internal SSD.
I would say that at some point, you mistakenly thought the USB drive was mounted and created gigabytes of data in that directory. These data were later hidden by mounting the drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.