DebianThis forum is for the discussion of Debian Linux.
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 keep having /dev/sda1/ filling up on a testing desktop and getting messages saying there is no room to save files in /, I have no idea what is happening.
This message seems to pop up every few weeks or so even though my working pattern is very regular. I can then save files if I do nothing except click the save icon again ten minutes later. Clearing trash/rubbish shows more space available in /dev/sda7 or /dev/sda8 which are used constantly but not in /dev/sda1.
When I installed Debian 9 a few months ago, I had the same problem having allocated only 300M or possibly 400M to / if my recollection is correct but the system was working normally otherwise. At the time, allocating 1G seemed to be overkill to me but it's still filling up under the same working conditions.
It seems to me something gets unexpectedly written to / (/dev/sda1) that I am not aware of and cannot see but I am not familiar with that aspect of the software.
This is disk usage:
A good way to get more space in any debian-based distro is to clean out your apt cache. This contains all the packages you have downloaded since the last clean-out (or since installing!)
apt-get autoclean will remove those that are out of date. apt-get clean will remove them all.
this is a ridiculous partitioning scheme (i extracted /dev/sda).
why is / only 1GB???
where is /home?
quite obviously you have to change something there; posting about it here won't help:
tedious work, moving partitions around. of course, making backups first. maybe you'll even have to buy more storage or get rif of some files. who knows.
btw, du has a switch to stay on one filesystem.
Lookig at my Ubuntu installation, I see /lib uses 479 MB. Doesn't leave much space for goodies under /home. My guess is that the home directories of user1 and user2 might be space hogs
The first code section in my initial post is the result of that command.
/home is not used but
Code:
du -sh /home/defaultuser
shows all the .directories and .files take over 530MB which is probably the cause of the problem since all other files are in their own partition (/usr, /var etc)
My mistake is probably to have forgotten that even though I do not write any file in /home, it gets used automatically when I do any work under that user name.
Removing some .files in /home shows that / is using 350MB which is roughly what I expected when I tentatively allocated 300/400MB and later 1G to / (which still seems to be overkill). The reason I am not using /home is because I got fed up seeing "/home/home" in paths, irrational but it got on my nerves.
I previously had a RAID 1 system with one drive that failed and the system could not even be rebooted, so I abandoned that setup after reading that raid had become obsolete anyway and having concluded I probably did not know enough about it to set it up and use it properly. Then I reverted to my old habit of having many partitions because I regularly test and corrupt enough to the point when reinstalling a distro is the best solution. The drives I used in RAID are now used as backup and I rsync those drives with a script when I want to have my work quickly backed up although it's not the only form of backup I make.
I'll check what I've said is correct and mark the thread as solved if it is.
I tentatively allocated 300/400MB and later 1G to / (which still seems to be overkill).
more like underkill.
really, i just don't understand. this is a 250GB hard drive, why be stingy with single gigabytes? (don't answer, just roll up your sleeves and fix it)
Quote:
The reason I am not using /home is because I got fed up seeing "/home/home" in paths, irrational but it got on my nerves.
erm, what?
something smells fishy.
i never see "/home/home" in paths.
it's /home/username, e.g. /home/rlampain or /home/ondoho.
also, what ARE you using if not your $HOME?
something smells very, very fishy.
"/home/home" - I can't remember the circumstances but I used btrfs some years ago when I had that problem. I developed a psychological aversion for the term when used in computer language.
overkill? - A bad habit switching from one machine with only 64G HDD to a bigger one without thinking much on the basis that everything is in another partition. I agree I've got plenty of space to give / more but I also wanted to understand what was taking place in that mistake, I am not a professional.
I accept your criticisms.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.