LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ran out of disk space on / (https://www.linuxquestions.org/questions/linux-newbie-8/ran-out-of-disk-space-on-607186/)

fof3 12-16-2007 05:46 PM

Ran out of disk space on /
 
edhe@hebrews:/sys$ df -h
.......................Size Used Avail Use% Mounted on
/dev/sda1 259M 252M 0 100% /
..........tmpfs 471M 0 471M 0% /lib/init/rw
..........udev 10M 68K 10M 1% /dev
..........tmpfs 471M 0 471M 0% /dev/shm
/dev/sda9 357G 2.0G 337G 1% /home
/dev/sda8 373M 23M 331M 7% /tmp
/dev/sda5 4.6G 3.5G 898M 80% /usr
/dev/sda6 2.8G 1.2G 1.5G 43% /var



edhe@hebrews:/boot$ ls -alhS
total 25M
-rw-r--r-- 1 root root 5.2M 2007-11-10 10:23 initrd.img-2.6.18-5-amd64
-rw-r--r-- 1 root root 5.2M 2007-12-08 12:19 initrd.img-2.6.18-6-amd64
-rw-r--r-- 1 root root 4.8M 2007-10-10 13:12 initrd.img-2.6.18-5-amd64.bak
-rw-r--r-- 1 root root 4.1M 2007-12-16 17:49 initrd.img-2.6.23-9-amd64
-rw-r--r-- 1 root root 1.5M 2007-11-18 18:24 vmlinuz-2.6.18-6-amd64
-rw-r--r-- 1 root root 1.5M 2007-10-02 18:27 vmlinuz-2.6.18-5-amd64
-rw-r--r-- 1 root root 951K 2007-10-02 18:27 System.map-2.6.18-5-amd64
-rw-r--r-- 1 root root 950K 2007-11-18 18:24 System.map-2.6.18-6-amd64
-rw-r--r-- 1 root root 176K 2007-12-16 17:53 vmlinuz-2.6.23-9-amd64
-rw-r--r-- 1 root root 69K 2007-12-16 17:52 config-2.6.18-9-amd64
-rw-r--r-- 1 root root 64K 2007-11-18 18:23 config-2.6.18-6-amd64
-rw-r--r-- 1 root root 64K 2007-10-02 16:32 config-2.6.18-5-amd64
drwxr-xr-x 3 root root 1.0K 2007-12-16 17:56 .
drwxr-xr-x 24 root root 1.0K 2007-12-13 15:24 ..
drwxr-xr-x 2 root root 1.0K 2007-12-01 18:49 grub
lrwxrwxrwx 1 root root 22 2007-10-28 09:17 vmlinux -> vmlinuz-2.6.18-5-amd64


edhe@hebrews:/root$ ls -alhS
total 20K
-rw------- 1 root root 8.9K 2007-12-16 14:19 .bash_history
drwxr-xr-x 8 root root 1.0K 2007-12-16 17:59 .
drwxr-xr-x 24 root root 1.0K 2007-12-13 15:24 ..
drwx------ 2 root root 1.0K 2007-10-10 13:18 .aptitude
drwx------ 2 root root 1.0K 2007-12-11 22:09 .gnupg
drwx------ 3 root root 1.0K 2007-11-03 06:07 .kde
drwxr-xr-x 2 root root 1.0K 2007-11-03 02:06 .qt
drwx------ 2 root root 1.0K 2007-10-10 14:59 .ssh
drwx------ 2 root root 1.0K 2007-10-14 17:52 .xcdroast
-rw-r--r-- 1 root root 412 2004-12-15 17:53 .bashrc
-rw-r--r-- 1 root root 110 2004-11-10 11:10 .profile
-rw------- 1 root root 35 2007-12-16 18:06 .lesshst

colucix 12-16-2007 05:49 PM

And the question is...?

Tinkster 12-16-2007 06:17 PM

du -xsm /* | sort -g | egrep -v "(var|home|tmp|usr)"

And with all those kernels I'd be looking at
/lib/modules ;}




Cheers,
Tink

farslayer 12-16-2007 09:33 PM

Looks like you need to uninstall (PURGE) a couple of your old kernels to start with, since your /boot is in / ..

Tinkster 12-17-2007 02:58 AM

Code:

du -sm /boot/ /lib/modules/
25      /boot/
170    /lib/modules/


/me shrugs ....



Cheers,
Tink

farslayer 12-17-2007 07:27 PM

Tinkster I see your point, but in Debian when you Purge a kernel (a stock Debian kernel installed through aptitude) doesn't it automatically remove the modules as well ?
I believe it has for me in the past...


All times are GMT -5. The time now is 11:23 AM.