LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-23-2013, 06:00 AM   #1
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Rep: Reputation: Disabled
how to know which folder dissipating my hardsik !!!


hi ,
i want to know why my disk space is full
, i mean which folder is the largest in size
here is a sample :

[root@squid /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 165G 145G 12G 93% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sdb 550G 242M 522G 1% /cache1
/dev/sdc 917G 244M 870G 1% /cache2
/dev/sdd 550G 242M 522G 1% /cache3
[root@squid /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 165G 145G 12G 93% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sdb 550G 242M 522G 1% /cache1
/dev/sdc 917G 244M 870G 1% /cache2
/dev/sdd 550G 242M 522G 1% /cache3
[root@squid /]# du -sh * | sort -n
du: cannot access `proc/7119/task/7119/fd/4': No such file or directory
du: cannot access `proc/7119/task/7119/fdinfo/4': No such file or directory
du: cannot access `proc/7119/fd/4': No such file or directory
du: cannot access `proc/7119/fdinfo/4': No such file or directory
0 misc
0 net
0 proc
0 sys
1.4G lib
4.0K cgroup
4.0K media
4.0K mnt
4.0K selinux
4.0K srv
4.8G var
7.4G usr
7.7M bin
8.0K opt
8.0K tmp
8.2M squid
14M sbin
16K lost+found
24M etc
27M lib64
40K home
44M cache1
44M cache2
45M cache3
160M boot
162M root
208K dev





my question is why /dev/sda1 is 93 %

where are those info exist ??

plz help
regards
 
Old 02-23-2013, 07:27 AM   #2
yowi
Member
 
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209

Rep: Reputation: 55
Could it be hidden files or directories? The glob * doesn't match anything starting with .
 
Old 02-23-2013, 07:31 AM   #3
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Original Poster
Rep: Reputation: Disabled
can u help how to solve it ?


regards
 
Old 02-23-2013, 01:11 PM   #4
yowi
Member
 
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209

Rep: Reputation: 55
"ls -la" will give you a long listing of all files and directories in the current directory

Code:
find . -size +1G -exec du -sh '{}' \;
will show you all files 1GB or larger under the current directory
 
Old 02-23-2013, 01:44 PM   #5
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yowi View Post
"ls -la" will give you a long listing of all files and directories in the current directory

Code:
find . -size +1G -exec du -sh '{}' \;
will show you all files 1GB or larger under the current directory


hi , uptill now i could not solve it !!!
my os is 1005 and now is crached
i couldnt know why my hardsik is full !!!
plz advice me
here is some reuslts:
==============
[root@squid /]# find . -size +1G -exec du -sh '{}' \;
17G ./var/spool/abrt/ccpp-2013-02-23-14:07:45-18496/coredump
0 ./proc/kcore
find: `./proc/15387/task/15387/fd/5': No such file or directory
find: `./proc/15387/task/15387/fdinfo/5': No such file or directory
find: `./proc/15387/fd/5': No such file or directory
find: `./proc/15387/fdinfo/5': No such file or directory
[root@squid /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 165G 158G 0 100% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sdb 550G 16G 507G 3% /cache1
/dev/sdd 550G 16G 507G 3% /cache2
/dev/sde 550G 16G 507G 3% /cache3
[root@squid /]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Thu Feb 21 10:05:33 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=7e8424aa-d3a7-4132-9bed-a40ac8400bb3 / ext4 defaults 1 1
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

/dev/sdb /cache1 ext4 noatime,barrier=0,data=writeback,commit=100 0 2
/dev/sdd /cache2 ext4 noatime,barrier=0,data=writeback,commit=100 0 2
/dev/sde /cache3 ext4 noatime,barrier=0,data=writeback,commit=100 0 2
[root@squid /]#


wish it help


[root@squid /]# du -sh /
du: cannot access `/proc/15396/task/15396/fd/4': No such file or directory
du: cannot access `/proc/15396/task/15396/fdinfo/4': No such file or directory
du: cannot access `/proc/15396/fd/4': No such file or directory
du: cannot access `/proc/15396/fdinfo/4': No such file or directory
72G /
[root@squid /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 165G 158G 0 100% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sdb 550G 16G 507G 3% /cache1
/dev/sdd 550G 16G 507G 3% /cache2
/dev/sde 550G 16G 507G 3% /cache3
[root@squid /]#





plz help


regards
 
Old 02-23-2013, 03:54 PM   #6
yowi
Member
 
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 209

Rep: Reputation: 55
Quote:
Originally Posted by dr.x View Post
17G ./var/spool/abrt/ccpp-2013-02-23-14:07:45-18496/coredump
coredumps are created when a process crashes.
It's safe to delete them if you're not planning on debugging it.
Here's a guide on turning them off:
http://www.cyberciti.biz/faq/linux-disable-core-dumps/

17G is big and raises questions itself.
 
Old 02-23-2013, 10:06 PM   #7
dr.x
Member
 
Registered: Jan 2013
Posts: 231

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yowi View Post
coredumps are created when a process crashes.
It's safe to delete them if you're not planning on debugging it.
Here's a guide on turning them off:
http://www.cyberciti.biz/faq/linux-disable-core-dumps/

17G is big and raises questions itself.
hi ,
ive removed it .

but still have big size
[root@squid /]# find . -size +1G -exec du -sh '{}' \;
17G ./var/spool/abrt/ccpp-2013-02-23-14:07:45-18496/coredump
0 ./proc/kcore
find: `./proc/17072/task/17072/fd/5': No such file or directory
find: `./proc/17072/task/17072/fdinfo/5': No such file or directory
find: `./proc/17072/fd/5': No such file or directory
find: `./proc/17072/fdinfo/5': No such file or directory
[root@squid /]# rm -rf ./var/spool/abrt/ccpp-2013-02-23-14:07:45-18496/coredump
[root@squid /]# find . -size +1G -exec du -sh '{}' \;
0 ./proc/kcore
find: `./proc/17079/task/17079/fd/5': No such file or directory
find: `./proc/17079/task/17079/fdinfo/5': No such file or directory
find: `./proc/17079/fd/5': No such file or directory
find: `./proc/17079/fdinfo/5': No such file or directory
[root@squid /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 165G 141G 16G 91% /
tmpfs 16G 0 16G 0% /dev/shm
/dev/sdb 550G 16G 507G 3% /cache1
/dev/sdd 550G 16G 507G 3% /cache2
/dev/sde 550G 16G 507G 3% /cache3
[root@squid /]# df -h
 
  


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
make multiple folder on samba linux & each folder can be access each person only Aneesh.T .S Linux - Server 1 01-31-2013 06:01 PM
Need Perl script to get files from Linux Samba share folder to Windows folder kowsi Programming 1 10-10-2012 05:57 PM
MyLQ, subscription folder, empty current folder fails with more than 100? threads zhjim LQ Suggestions & Feedback 2 06-08-2012 11:14 AM
opening folder Windows Folder in Red Hat Linux TEXT MODE janbaztaimur Linux - Newbie 8 05-17-2011 04:34 PM
mixed mounting of automount and fstab in one folder? &different home folder using NIS herofmm Linux - Software 0 04-06-2009 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:28 PM.

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