Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
If my space on my filesystem is closing in, how would I clean up some space? I don't know where to start, I don't want to delete important system files or anything.
If my space on my filesystem is closing in, how would I clean up some space? I don't know where to start, I don't want to delete important system files or anything.
Thanks,
Chris
Delete files within your '/home/chris' (assume chris is the user) that you don't need any longer. These could be files that you created from downloads or whatever. As long as the files are in your user space that were created by you then there won't be a problem. You could move the files to another media.
I just went to clean out my directories but when I opened a folder under /home the label at the bottom of the window browser says Free space: 91 GB... I figured I might have used up a lot of space because I was installing a large amount of packages to cover all possible needs. Could I have set a restriction under the / directory by accident? That says its free space is 2.5 MB
If I navigate to /usr or /var they also say free space is 2.5 MB.
Thanks,
Chris
Last edited by chris24300; 09-22-2009 at 04:48 PM.
df -h on the command-line will show how the root filesystem is mounted on your partitions and how much free space/total space per partition (mount, really). Once you know that, you can cd into each folder and run du -sh, which shows disk usage for each folder and file in your current folder.
There are some GUI programs that'll neatly display pie charts and graphs of disk usage; check your package manager for what's available for your distro.
OK here was my output. I am trying to install an application and since it will have a CLI I need the / (md0) to be free don't I? /home has plenty of room but if I install it under a directory there will the program still work through the terminal? Do I have to include it into the PATH? (not sure how to do that)
You can put the program under /home if it will allow you. If you you are compiling the src there's usually a --prefix-dir or similar option.
That said, the root file system (/) is full. I'd check the /var especially /var/log dir(s) under '/'.
Try a
Based on your df output you have a very small partition set aside for the / (root) partition. This gets crowded by having installed a lot of packages, most of which is usually going into /usr, and also log files and other stuff in /var. Your /home partition has a lot of space, so as a quick hack you can:
1. copy the WHOLE /usr directory to /home (cp -dpR /usr /home/usr),
2. then rename the original /usr directory to /usr.old,
3. create a softlink to the copied directory (ln -s /home/usr /usr)
4. if everthing runs fine, then remove the old directory (rm -rf /usr.old)
Maybe do the same for /var, but usually it's /usr that takes more disk space, so this won't be necessary, I guess.
Obviously the best solution would be to repartition the system either by having a larger / partition or putting /usr on it's own partition - but that is a lot more work.
Last edited by AngTheo789; 09-29-2009 at 03:03 PM.
Reason: typo
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.