The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find a file whick is consuming larger disk space in file system lokeshpashine UNIX for Dummies Questions & Answers 3 01-04-2008 01:26 PM
/tmp: File system full, swap space limit exceeded frustrated1 SUN Solaris 5 03-18-2007 12:38 PM
disk full msuheel UNIX for Advanced & Expert Users 2 06-21-2006 03:09 PM
rm: Unable to remove directory xxxx/xxxx: File exists deejay UNIX for Dummies Questions & Answers 1 11-06-2005 08:17 PM
file system is full : But df -k shows space available geraldwilson Filesystems, Disks and Memory 4 07-25-2002 09:29 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-18-2008
Registered User
 

Join Date: Mar 2008
Posts: 11
Unable to remove file using rm: Disk space is full

Hi all,

My disk space is 100% full.

df -k <dir> -> 100%

One of my debug files consume huge amount of space and i want to remove the same to start off fresh debugs.

However i'm unable to remove the file giving out the following error message:

rm -f debug.out22621
rm: cannot remove `debug.out22621': No space left on device


Could you all help me out?


Thanks

Anoop
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-18-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,493
try:
Code:
mv debug.out22621 /tmp
rm -f /tmp/debug.out22621
Reply With Quote
  #3 (permalink)  
Old 06-18-2008
Registered User
 

Join Date: Mar 2008
Posts: 11
Quote:
Originally Posted by jim mcnamara View Post
try:
Code:
mv debug.out22621 /tmp
rm -f /tmp/debug.out22621
I guess its not allowing any of the operations:

mv debug.out22621 /tmp
mv: writing `/tmp/debug.out22621': No space left on device
Reply With Quote
  #4 (permalink)  
Old 06-18-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,128
Didn't -f switch work ? Else, try looking for the inode number with -i and then remove it.
Reply With Quote
  #5 (permalink)  
Old 06-18-2008
Registered User
 

Join Date: Mar 2008
Posts: 11
Quote:
Originally Posted by sysgate View Post
Didn't -f switch work ? Else, try looking for the inode number with -i and then remove it.
Hi Sysgate,

I tried out the same:

ls -li debug.out22621

22308 debug.out22621


find . -inum 22308 -exec rm -i {} \;
rm: remove regular file `./debug.out22621'? yes
rm: cannot remove `./debug.out22621': No space left on device


Am i doing anything wrong here?
Reply With Quote
  #6 (permalink)  
Old 06-19-2008
Registered User
 

Join Date: May 2006
Location: England
Posts: 256
Quote:
Originally Posted by Pankajakshan View Post
Hi Sysgate,

I tried out the same:

ls -li debug.out22621

22308 debug.out22621


find . -inum 22308 -exec rm -i {} \;
rm: remove regular file `./debug.out22621'? yes
rm: cannot remove `./debug.out22621': No space left on device


Am i doing anything wrong here?
Please run the df command and post the result here. I believe that the problem is one of the file systems other than /tmp but cannot tell you without looking at the result of this command.
Reply With Quote
  #7 (permalink)  
Old 06-19-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,493
It looks like every directory is mounted on the same physical device or disk parititon.
Is there any other paritition in use by your system? One that is not loaded? try mv-ing a file to someplace on the other partition to free up disk space. The df command will show you where all of your mountpoints are.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:25 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0