Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 have my hard drive partitioned such that my /usr/local and /home directories are on separate partitions from the root. They are both quite large, and have plenty of free space.
The other day I began to compile libreoffice from source, which three days later was finally complete. The compile process seems to have completed successfully, but while it was doing so it mysteriously took up nearly a Gig of hard drive space on my root partition.
The directory I was using to compile libreoffice is located on the /home partition. I have been scouring my /root parition for any files that were created during the time the libreoffice was compiling (during which the computer was not being used for any other purpose) and I cannot find anything that would account for this disappearing free space. There are no individual files that are anywhere near that size, and there are no groups of smaller files that I can find that would add up to that.
What could the libreoffice have placed on my hard drive that would take up nearly a Gig of space, but not leave any trace of its having been created on the date that it appeared, and which is not located in any /tmp directory? And particularly when the compiling itself was being done a completely different partition?
Any help would be greatly appreciated. This mystery free space eater has left it so my computer barely functions because the /root is now completely full.
Id check the logs
Or, at least force a logrotate...basically flushing the system...
But, I use Manjaro, never had that one before...
Three whole days? Weird. It took less than four hours to compile a kernel on a Compaq D51s...three days, LOL, that is some hypercompilin'
Thor
And it didn't actually take three days to compile. It was only two days.
Ow...good
Logrotate does clean things up...hmm, can you map out the disk? That should give you a more visual cue to the disk usage...
Try to focus on places like /tmp, /var/log and such...
DO NOT (but, you know this) delete stuff! Check here first...in case of doubt...
Thor
Well, I did a ls -hlRS starting from / and dumped it into a file. There does not appear to be anything that was created or modified during the time the compile was running that would account for that much data space being consumed.
The only thing I can think of is that whatever files are taking up that space do not have create/modification dates within the time frame of when the compile was being done, because doing a grep 'Sep 14' returns only those files in the compile directory on /home. (Or other files that are regularly updated and not of abnormal size.)
And it would have to be a series of smaller files because doing a grep 'M' returns mostly directories, or files that I already know were there before. Doing a grep 'G' returns a couple of directories which are on /usr/local or /home.
Last edited by SUSESailor; 09-19-2015 at 10:10 AM.
Reason: Correct formatting
OW! Could (someone/ANYone correct me if I'm wrong) it be that there was a download of missing stuff during compile? How did you compile? As Root? As the normal user (you)?
Is your disk in ONE lump (a Xubuntu I installed for someone is)?
Just...a flash that came to me...
Thor
Are you certain that all your partitions were mounted when you did the compile? If, for example, /usr/local were not mounted, then files would have been stored under the /usr/local directory in the root filesystem. and those files would be hidden while the separate /usr/local partition was mounted. There is a way to access files buried under an active mount point, but for something like /usr/local it's probably easiest just to umount it and take a look.
You can use "ls -lc" or find with the "-ctime" test to look for files with a recent status change. That will catch files that got installed with their original modification times preserved, but I doubt that's what happened here.
Could (someone/ANYone correct me if I'm wrong) it be that there was a download of missing stuff during compile? How did you compile? As Root? As the normal user (you)?
Is your disk in ONE lump (a Xubuntu I installed for someone is)?
It did download a whole bunch of stuff, but it did that at the very beginning of the compile process, and it put all of that stuff in a subdirectory of the compile directory on /home.
I compiled it using configure and make. I was logged in as root, but I've already checked root's home directory and there is nothing there either.
I don't know exactly what you mean by "ONE lump," but I doubt it because I installed my OS using a very basic install and then manually compiled a lot of stuff to install afterwards. There is more data on my /usr/local than on my root partition. I even moved a bunch of libs from /usr/lib to /usr/local/lib to make sure I can keep space free on the root partition.
Quote:
Originally Posted by rknichols
Are you certain that all your partitions were mounted when you did the compile?
Yes, I'm sure they were all mounted properly because, while the compile was running on one terminal, I would occasionally switch to another terminal and do a df -h to monitor the free space on each of the partitions.
From this I know that whatever it was happened near the end of the 48-hour compile process. Everything was fine until the morning of the day that it finally finished. When I got up that morning and saw that the compiling was still going on and checked the df, I saw that what had been more than 600MB of free space when I went to bed the previous night had become 0.
The compile had actually used up about 300MB of free space on root by the time I went to bed that evening, but it was that final night that took away all the rest. And yet, when I do the grep 'Sep 14' against my ls file of the complete contents of my hard drive, nothing comes up that is anywhere near that large.
That did it. I never knew about "du," but using that I was able to determine that it was the .ccache/ directory under /root/ that was the problem. Since ccache stores information about compiles, it makes sense that that data would be generated when a huge compliation is taking place. And since I was logged in as root during the compile, it makes sense that it would show up in root's home directory.
I just don't know why I never caught that on the ls output...
That did it. I never knew about "du," but using that I was able to determine that it was the .ccache/ directory under /root/ that was the problem. Since ccache stores information about compiles, it makes sense that that data would be generated when a huge compliation is taking place. And since I was logged in as root during the compile, it makes sense that it would show up in root's home directory.
I just don't know why I never caught that on the ls output...
Anyway, thank you for the help!
Only if you used the "-a" option of ls to show ALL files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.