LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-12-2007, 01:21 AM   #1
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 214

Rep: Reputation: 30
root partion full


I have redhat enterprise linux running on my sustem. Till yesterday my / was 36% full suddenly(as it was sunday many have not used the server) I am seeing it as 100% full.
I have /home /usr /var /boot mounted in other partions.
# df -k (on today)
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 8063408 8063400 0 100% /
/dev/sda1 99134 14933 79082 16% /boot
/dev/sda7 100703656 24865008 70723156 27% /home
none 1030540 0 1030540 0% /dev/shm
/dev/sda5 7055272 2605900 4090976 39% /usr
/dev/sda2 20158332 725820 18408512 4% /var

my /var was also showing 100 % full. I deleting the mail log and it came back to 4%. Can anyone tell me so that can isee what is needed to deleted from / partion.

#df -k (yesterday)
------------------ Disk Space --------------------

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 7.7G 2.6G 4.8G 36% /
/dev/sda1 97M 15M 78M 16% /boot
/dev/sda7 97G 24G 68G 26% /home
none 1007M 0 1007M 0% /dev/shm
/dev/sda5 6.8G 2.5G 4.0G 39% /usr
/dev/sda2 20G 5.3G 13G 29% /var

Thanking you
Sanjib Gupta
 
Old 02-12-2007, 01:36 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
If you run du -sh /* you will see which top level directories are using up the space. If for example, it was /var, you would then type du -sh /var/* and so on until you find out where the files using up the space are located.
 
Old 02-12-2007, 01:40 AM   #3
sanjibgupta
Member
 
Registered: Apr 2003
Location: Kolkata
Posts: 214

Original Poster
Rep: Reputation: 30
Thanks

Thanks my /tmp shows have all the space
# du -sh /*
5.2M /bin
11M /boot
428K /dev
22M /etc
24G /home
4.0K /initrd
139M /lib
16K /lost+found
4.0K /misc
12K /mnt
244K /opt
du: `/proc/22856/fd/4': No such file or directory
5.0K /proc
62M /root
12M /sbin
7.5G /tmp
2.5G /usr
678M /var
[root@bic httpd]# cd /tmp
[root@bic tmp]# l s-l
-bash: l: command not found
[root@bic tmp]# ls -l
total 24
drwxr-xr-x 3 root root 4096 Oct 19 2005 home
drwx------ 2 root root 4096 Feb 11 07:21 logwatch.XXedsliM
drwx------ 2 root root 8192 Jun 30 2006 orbit-root
drwx------ 2 sanjib sanjib 4096 Oct 26 2005 orbit-sanjib
-rw------- 1 apache apache 0 Feb 12 11:45 sess_bb063d0669617942c60c90f7e13746bc
drwx------ 2 root root 4096 Jun 30 2006 ssh-QJyG4509

DO i remove whole of /tmp directory by rm -rF and then again make the directory.
THe home directory in the /tmp directory has by itself many directories

SAnjib Gupta
 
Old 02-12-2007, 01:44 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
I wouldn't just delete the /tmp directory unless you can shut down any system and user processes that are using it. It shouldn't take long to find where the space is being used with du -sh /tmp/*. Could one of your users be building an image to burn to DVD?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apache wont accept document root to be in a mounted fat partion a1ex_007 Red Hat 1 04-09-2005 07:34 PM
/root full naim Linux - General 6 03-13-2005 04:43 PM
root is full rilians Linux - Hardware 11 08-12-2004 05:12 PM
Merging empty hard drive with root partion on ext3? crayolarx Linux - General 11 03-06-2004 04:29 PM
how do i move files from my windows partion to my linux partion awesome_man Linux - Newbie 2 01-30-2004 01:51 PM


All times are GMT -5. The time now is 10:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration