The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 6 04-04-2009 02:52 AM
/tmp: File system full, swap space limit exceeded frustrated1 SUN Solaris 5 03-18-2007 04:38 PM
disk full msuheel UNIX for Advanced & Expert Users 2 06-21-2006 06:09 PM
rm: Unable to remove directory xxxx/xxxx: File exists deejay UNIX for Dummies Questions & Answers 1 11-07-2005 12:17 AM
file system is full : But df -k shows space available geraldwilson Filesystems, Disks and Memory 4 07-26-2002 12:29 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 3.50 average. Display Modes
  #1 (permalink)  
Old 06-18-2008
Pankajakshan Pankajakshan is offline
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
  #2 (permalink)  
Old 06-18-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
try:
Code:
mv debug.out22621 /tmp
rm -f /tmp/debug.out22621
  #3 (permalink)  
Old 06-18-2008
Pankajakshan Pankajakshan is offline
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
  #4 (permalink)  
Old 06-18-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
Didn't -f switch work ? Else, try looking for the inode number with -i and then remove it.
  #5 (permalink)  
Old 06-19-2008
Pankajakshan Pankajakshan is offline
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?
  #6 (permalink)  
Old 06-19-2008
johnf johnf is offline
Registered User
  
 

Join Date: May 2006
Location: England
Posts: 284
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.
  #7 (permalink)  
Old 06-19-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0