LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-22-2011, 07:25 AM   #1
suresh.k
Member
 
Registered: Aug 2011
Location: Hyderabad, AP, India
Distribution: centos, Ubuntu
Posts: 163
Blog Entries: 1

Rep: Reputation: Disabled
My / partion using 100% use


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

Thanks
Suresh
 
Old 10-22-2011, 07:41 AM   #2
Jenni
Member
 
Registered: Oct 2011
Distribution: Slackware, Fedora
Posts: 158

Rep: Reputation: Disabled
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.
 
Old 10-22-2011, 10:47 AM   #3
rahulkya
Member
 
Registered: Feb 2009
Location: New Delhi
Distribution: Linux mint,Ubuntu,Debian,RHEL 5,slackware 13.1, free BSD,solaris.
Posts: 186
Blog Entries: 3

Rep: Reputation: 33
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....
 
Old 10-22-2011, 12:33 PM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
try this

Code:
#cd /
#du -ch
and check the file size whether it shows 84GB or 88GB
i don't see swap partition in your file system

I wouuld like to see your fstab file before jumping to any conclusions

Code:
#vi /etc/fstab
(post the output)

#mount
(post the output)
 
Old 10-22-2011, 12:40 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by deep27ak View Post
Code:
#vi /etc/fstab
(post the output)
To print the contents of the file, there's no need for an editor, just use "cat /etc/fstab" instead.
 
Old 10-24-2011, 10:27 AM   #6
linuxwin2
Member
 
Registered: Oct 2011
Posts: 44

Rep: Reputation: Disabled
Remove unnecessary packages, files
If your / is 100%, next boot you can't access to GUI session.
 
Old 10-24-2011, 11:47 AM   #7
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
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
Code:
du --max-depth 1 -x /var | sort -nr | head
 
Old 10-24-2011, 12:33 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 10-24-2011, 01:25 PM   #9
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
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.
 
Old 10-24-2011, 01:35 PM   #10
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
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 /.
 
Old 10-24-2011, 01:42 PM   #11
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
But the log files and the packages would be in /var.
 
Old 10-24-2011, 01:46 PM   #12
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
<deleted>

Last edited by MTK358; 10-24-2011 at 03:30 PM.
 
Old 10-24-2011, 02:00 PM   #13
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
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.
 
Old 10-24-2011, 02:57 PM   #14
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
<deleted>

Last edited by MTK358; 10-24-2011 at 03:30 PM.
 
Old 10-24-2011, 03:07 PM   #15
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by MTK358 View Post
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenOffice/LibreOffice writer uses 100% CPU time, 100% memory, workaround someone? jlinkels Linux - Software 11 08-30-2012 01:50 PM
ext3 partion add in 8eLVM partion jitenderana Red Hat 4 10-12-2011 06:47 AM
problem mounting a linux partion from another ext3 partion fkeith Linux - Hardware 1 10-14-2007 07:33 PM
how do i move files from my windows partion to my linux partion awesome_man Linux - Newbie 2 01-30-2004 12:51 PM
Must "/boot" partion be installed in the primary partion? domeili Linux - Newbie 9 11-01-2003 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration