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.
Hi, Iam using centos 5.4 My / partision using 100% use so that i cant create any folder in this / partision,
please send me ur solutions step by step so that i can understand very well,
Below is what iam getting when i type df -h
[root@svn ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 88G 84G 0 100% /
/dev/sda9 23G 173M 21G 1% /tmp
/dev/sda7 20G 2.9G 16G 16% /opt
/dev/sda6 20G 1.4G 18G 8% /usr/local
/dev/sda3 88G 41G 43G 49% /home
/dev/sda2 88G 22G 62G 26% /var
/dev/sda1 487M 27M 435M 6% /boot
tmpfs 1010M 0 1010M 0% /dev/shm
Well, if you can go through and remove anything you don't need from it that might clear up some space. If you have extra unallocated disk space, you could use something like grub to expand the partition too I suppose.
is your /home is in / ??? I mean that /home is in same partition as of /??
If yes try removing some unwanted files from your home directory...
Or uninstall some unnecessary packages....
The output of this command will show which subdirectory is using up the space:
Code:
du --max-depth 1 -x / | sort -nr | head
Run as root.
The -x parameter stops it from looking into mount points on other filesystems. It will take a while, with no output during the run because of the sort in the pipeline.
If for example /var turns out to be the biggest, investigate that subdir with
i would back up data and repartition
/tmp dose not need to be a seporat partition
and it dose not need to be 23 gig
/opt and /usr/local ?
use one or the other
you do not need both ,personally i would use /opt as a data partition and install programs there instead of /usr/local
/home 88gig ? that is BIG very BIG
/var also dose not need to be a separate partition ( what is in it that is 22 gig??? ( temp files for the last 2 to 3 years ? )
merge it with /
/boot - 100 meg ( for cent )
SWAP - 4 gig
/ - 20 gig to about 50 gig ( is normal )
/home - 25 gig
/opt - the rest of the drive
or seeing as cent normally is running a server
/boot 100 meg ext3
/ LVM
John VV makes good points about the (many) partitions you have. Except for /home - I would make that as large as possible, if it's a desktop you have music etc on.
I'd still like to know what is taking 88GB in / that is not in /var /home or /tmp.
I agree, 84GB is a huge amount for /. It probably has a very large package archive, and maybe huge log files, and possibly the trash has never been emptied. It's hard to say exactly. Having all those separate partitions, most of which are largely empty, is a serious waste of storage space. At most, you only need /, /home, and /boot. The rest of the folders can be in /. Repartitioning isn't that hard, you just need to do it from a liveCD/liveUSB drive. But before repartitioning, I would consider removing unneeded files from /.
I could be wrong but I'd expect log files to be in /var/log or subdirectories, regardless of distro
And I'd expect the package archive (which is what sgosnell mentioned) to be in /var/cache/apt on a .deb-based system ... and somewhere in /var/cache for other package systems.
If you read the thread, you would see that the whole issue is that the OP, not knowing better at the time, did not use a package manager to install it.
I'm not seeing that at all. What "it" are you referring to?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.