Results 1 to 10 of 12
I have a problem, when I run the command df -k / I get the following back,
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 1929100 1769708 61396 97% /
...
- 11-13-2008 #1Just Joined!
- Join Date
- Nov 2008
- Posts
- 6
Questions about Root Mount Partition
I have a problem, when I run the command df -k / I get the following back,
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 1929100 1769708 61396 97% /
Now how do I know what is taking up the 97%, so that I can then decide on what to delete.
Thanks in advance for your kind help and understanding.
Cheers
Lawrence
- 11-13-2008 #2
Which Linux distro and version are you using?
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 11-13-2008 #3Just Joined!
- Join Date
- Oct 2008
- Posts
- 1
- 11-14-2008 #4Just Joined!
- Join Date
- Nov 2008
- Posts
- 29
you can also try using the find command which will try to find files above the concerned FILE_SIZE
find /<DIR> -name "*" -size +<FILE_SIZE>M
eg find / -name "*" -size +500M
- 11-14-2008 #5Just Joined!
- Join Date
- Nov 2008
- Posts
- 6
Thanks for all the great advice, but I am still no closer to figuring out what is taking up the space in the /
Below is a full copy of the df command, but I do not understand how to figure out what is using the 91% of space in the / volume.
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 1929100 1648392 182712 91% /
/dev/sda2 101105 19425 76459 21% /boot
none 16454732 0 16454732 0% /dev/shm
/dev/mapper/local-home
5160576 131528 4766904 3% /home
/dev/mapper/local-tmp
1032088 36184 943476 4% /tmp
/dev/mapper/local-usr
5160576 1341736 3556696 28% /usr
/dev/mapper/local-usrlocal
1032088 32916 946744 4% /usr/local
/dev/mapper/local-var
10218808 6237808 3461896 65% /var
/dev/mapper/local-indexes
51606140 3166148 45818552 7% /opt/jc/indexes
10.16.6.166:/var/local/jc/workarea
516068896 33467968 456386080 7% /var/local/jc/workarea
//10.16.106.159/DBDumps1
717996032 339345408 378650624 48% /mnt/dbdumps
I am not sure what % should be used, but I am not happy with 91% used. So if I could know what is using the space, then I could decide if it was possible to delete it or allocate more space to the / volume.
Thanks in advance for your help.
Lawrence
- 11-14-2008 #6
Post the output of this
Code:cat /etc/*release* cat /etc/*version*
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 11-14-2008 #7
Post the output of this
Code:cat /etc/*release* cat /etc/*version*
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 11-14-2008 #8Just Joined!
- Join Date
- Nov 2008
- Posts
- 29
The du -sh /* gives the output in the following format and after finding the culprit Directory propagate into that directory till you finalize the actual files and direcotires hope this manual method helps you
root@laptop:~# du -sh /*
5.2M /bin
36M /boot
0 /cdrom
120K /dev
12M /etc
107M /home
4.0K /initrd
0 /initrd.img
0 /initrd.img.old
286M /lib
16K /lost+found
8.0K /media
8.0K /mnt
4.0K /opt
0 /proc
96K /root
6.8M /sbin
4.0K /srv
0 /sys
92K /tmp
1.8G /usr
465M /var
0 /vmlinuz
0 /vmlinuz.old
root@jyothi-laptop:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.3G 2.7G 6.2G 31% /
varrun 248M 100K 248M 1% /var/run
varlock 248M 0 248M 0% /var/lock
udev 248M 60K 248M 1% /dev
devshm 248M 48K 248M 1% /dev/shm
lrm 248M 39M 209M 16% /lib/modules/2.6.24-21-generic/volatile
/dev/sda6 7.4G 252M 6.8G 4% /home
- 11-14-2008 #9Just Joined!
- Join Date
- Nov 2008
- Posts
- 6
Guys,
Thanks again for taking the time to offer help and advice,
I have pasted the results of the requests below, but I still do not understand exactly what is allocated to the / vol, because the df command shows that the / is only 2 G in size. The sum of all the output for du -sh /* adds up to more that 2G. So I am a little confused.
$ cat *release*
cat: lsb-release.d: Is a directory
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
$ cat *version*
cat: *version*: No such file or directory
$ sudo du -sh /*
6.1M /bin
15M /boot
20K /dedigate
232K /dev
15M /etc
320K /home
4.0K /initrd
156M /lib
18M /lib64
16K /lost+found
8.0K /media
4.0K /misc
324G /mnt
4.0K /mysql-backup-latest.tgz
4.3G /opt
34G /proc
59M /root
20M /sbin
4.0K /selinux
4.0K /srv
0 /sys
4.0K /templates
3.3M /tmp
1.2G /usr
38G /var
Thanks
Lawrence
- 11-14-2008 #10Just Joined!
- Join Date
- Nov 2008
- Posts
- 29
Wondering the /proc --> 34G though the File system is memory resident not sure whether it should hold so much of Gigs
Though the /mnt and /var is mounted externally can you please check whether there is any log files in /var & in /mnt
Can you please check that ?


Reply With Quote
