LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-17-2012, 10:11 PM   #1
lennih
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
df shows full disk, even after removing lots of files


Hey, this is my first thread here.

A backup routine filled my hard drive. After removing at least 10GB with the rm command, df -h shows the same:

Code:
Filesystem   Size   Used   Avail   Use%   Mounted on
/dev/hda2    36G    36G    0       100%   /
Every previous thread I read says there can be a problem with the inodes, but after rebooting the problem should be solved. I rebooted about 37 times. Inodes seem to be ok. df -i shows:
Code:
Filesystem   Inodes   IUsed   IFree   IUsed  Mounted on
/dev/hda2   9647680   58668 9589012      1%  /
df -h keeps displaying the same as above.
du --max-depth=1 -h shows:
Code:
16K     ./lost+found
352K    ./dev
652M    ./var
4.8M    ./bin
9.6M    ./etc
17M     ./lib
16K     ./mnt
816K    ./tmp
659M    ./home
1.0K    ./proc
3.7M    ./sbin
44K     ./root
36G     .
What does that last line mean? Does du agree with df and both are saying the disk is full?

I unmounted the partition, ran a fsck but it didn't solve anything. What can I do? I swear I looked for help in previous threads quite extensively before bothering here.

Distro: Slackware 9.1.0
Kernel 2.4.22

Thanks in advance.
 
Old 03-17-2012, 10:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Yes, it does. The disk is full.

What do you get from
du -sm * | sort -n


Cheers,
Tink
 
Old 03-17-2012, 11:09 PM   #3
lennih
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Tinkster View Post
What do you get from
du -sm * | sort -n
Thanks for the quick reply.
I get
Code:
0   adjtime
0   aliases.tmp
0   dhcpd.conf
0   gshadow
0   ioctl.save
0   issue.net
0   ld.so.cache~
0   localtime
0   mgetty+sendfax
0   modprobe.conf
0   modules.conf
0   random-seed
0   rmt
1   DIR_COLORS
1   HOSTNAME
1   aliases
1   aliases.cdb
1   apache
1   backup.list
1   bootptab
1   checkps.list
1   cron.daily
1   cron.hourly
1   cron.monthly
1   cron.weekly
1   chs.login
1   default
1   devfsd.conf
1   dhclient.conf
1   dhcpc
1   dhcpd.conf.old
1   dhcpd.conf.template
1   dialogrc
1   fb.modes
1   fdprm
1   fonts
1   fstab
1   ftpusers
1   gettydefs
1   gpm-root.conf
1   gpm-syn.conf
1   gpm-twiddler.conf
1   group
1   group.preqmail
1   host.conf
1   hosts
1   hosts.allow
1   hosts.deny
1   hosts.equiv
1   inittab
1   inputrc
1   isapnp.conf.sample
1   isapnp.gone.sample
1   issue
1   kamchatka
1   ld.so.cache
1   ld.so.conf
1   login.access
1   login.defs
1   logrotate.conf
1   logrotate.d
1   magic
1   magic.mime
1   mediaprm
1   mgetty.inittab
1   minicom.users
1   minirc.dfl
1   modules.devfs
1   motd
1   mtab
1   mtools.conf
1   my-huge.cnf
1   my-large.cnf
1   my-medium.cnf
1   my-small.cnf
1   named.conf
1   networks
1   nntpserver
1   nscd.conf
1   nsswitch.conf
1   passwd
1   passwd-
1   passwd.preqmail
1   pear.conf
1   ppp
1   printcap
1   procmailrc
1   profile
1   profile.d
1   proftpd.conf
1   protocols
1   rc.d
1   resolv.conf
1   rndc.key
1   rpc
1   samba
1   securetty
1   serial.conf
1   services
1   shadow
1   shadow-
1   shells
1   skel
1   slackware-version
1   ssh
1   ssh2
1   ssl
1   stunnel
1   sudoers
1   syslog.conf
1   tcp.opensmtp.cdb
1   tcp.smtp.cdb
1   termcap
1   termcap-BSD
1   termcap-Linux
1   updatedb.conf
1   wgetrc
4   X11
4   codepages
 
Old 03-18-2012, 11:47 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Sorry, let's try that again, from the root dir rather than /etc
 
Old 03-18-2012, 01:00 PM   #5
lennih
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
hehe, sorry.
Code:
1       dev
1       lost+found
1       mnt
1       proc
1       root
1       tmp
2       boot
4       sbin
10      etc
17      lib
652     var
657     home
659     usr
34452   nohup.root
Thanks again. What should I do?
 
Old 03-18-2012, 01:59 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Considering that nohup.root, a single file, consumes 34 GB you may
want to find out what produces it ;}

Look at its content (maybe head -n 30 /nohup.root) ...
Find out which process owns it (lsof | grep nohup.root).


Cheers,
Tink
 
  


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
Disk full but du shows approx 14GB free [SOLVED] ZeroGrav Linux - Newbie 4 06-14-2011 05:55 AM
df -h shows disk full, but it's not the case hypernetics Linux - General 5 11-13-2007 03:05 PM
'df' command shows disk full .... very weird! sharathg786 Slackware 7 03-02-2007 04:48 PM
df shows disk almost full, can't see why mhath Linux - General 6 12-14-2005 08:55 PM
disk shows it is full after installing one cd SDP Linux - Software 1 08-01-2005 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:56 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
Open Source Consulting | Domain Registration