LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Insufficient disk space (https://www.linuxquestions.org/questions/linux-newbie-8/insufficient-disk-space-228685/)

ecastedo 09-09-2004 03:41 PM

Insufficient disk space
 
Dear friends, please help me.

I have isntall RH9 and configure SAMBA 1 month ago.

Yesterday, we could not access my SAMBA directories and today when I tried to create a new excel file in it, it return an error saying Insufficient disk space.

using:
df -h
Sistema de Arquivo Size Use Disp Use% Montado em
/dev/hda2 9.7G 9.7G 0 100% /
/dev/hda1 99M 14M 80M 15% /boot
none 54M 0 54M 0% /dev/shm

I do not know what is consuming all this space.

Could you help me?
Could you give some commands to find out the file that are consuming this space?
Thanks,

Eduardo

acid_kewpie 09-09-2004 04:03 PM

provide the output from these two commands when run as root:
Code:

fdisk -l
Code:

du / -hx --max-depth 1
this shoiuld provide you with enough info to see where the psace has gone. more than likely it'll mainly be in one place, e.g. your /home files, or possibly oversized logs in /var/log.

btmiller 09-09-2004 05:08 PM

To print all files over about 50 MB in a particular directory or its subdirectories, in order of size, the following command will work:

Code:

find <directory> -size +10000 -ls | sort -nrk 7
... replacing <directory> with the pathyou want to search. Of course this won't help you if you have lots of little files eating space.

ecastedo 09-10-2004 08:12 AM

To: acid_kewpie
 
Acid, like you asked:

#fdisk -l

Disk /dev/hda: 20.4 GB, 20416757760 bytes
255 heads, 63 sectors/track, 2482 cylinders
Units = cilindros of 16065 * 512 = 8225280 bytes

Dispositivo Boot InĂ_cio Fim Blocos Id Sistema
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1288 10241437+ 83 Linux
/dev/hda3 1289 1312 192780 82 Linux swap


# du / -hx --max-depth 1
16K /lost+found
420K /dev
133M /var
24K /tmp
16M /etc
6.2G /root
1.9G /usr
4.7M /bin
1.5G /home
4.0K /initrd
80M /lib
12K /mnt
4.0K /opt
12M /sbin
4.0K /misc
48K /tftpboot
9.6G /

Found it!!!!

#du /root -hx --max-depth 1
32K /root/.gconfd
8.0K /root/.gstreamer
424K /root/.gconf
32K /root/.gnome
108K /root/.gnome2
4.0K /root/.gnome2_private
120K /root/.nautilus
4.0K /root/.gnome-desktop
16K /root/.metacity
1.6M /root/.mozilla
64K /root/.thumbnails
4.0K /root/.themes
4.0K /root/.qt
4.0K /root/.icons
6.2G /root/.Trash
32K /root/.gftp
116K /root/.borland
4.0K /root/.gnome_private
172K /root/evolution
16K /root/.gnupg
6.2G /root

/root/trash is my problem. How I delete it? It is a hide file? How I set a rotine to delete this file everyday?

Thanks all for the help


All times are GMT -5. The time now is 12:16 AM.