Unable to remove file using rm: Disk space is full | Unix Linux Forums | Linux

  Go Back    


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

Unable to remove file using rm: Disk space is full

Linux


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-18-2008
Pankajakshan Pankajakshan is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 16 March 2011, 6:18 PM EDT
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 06-18-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 15 April 2014, 9:23 PM EDT
Location: NM
Posts: 10,056
Thanks: 250
Thanked 756 Times in 711 Posts
try:

Code:
mv debug.out22621 /tmp
rm -f /tmp/debug.out22621

Sponsored Links
    #3  
Old 06-18-2008
Pankajakshan Pankajakshan is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 16 March 2011, 6:18 PM EDT
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
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  
Old 06-18-2008
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
 
Join Date: Nov 2006
Last Activity: 20 November 2013, 8:29 AM EST
Location: Bulgaria
Posts: 1,419
Thanks: 0
Thanked 6 Times in 6 Posts
Didn't -f switch work ? Else, try looking for the inode number with -i and then remove it.
Sponsored Links
    #5  
Old 06-19-2008
Pankajakshan Pankajakshan is offline
Registered User
 
Join Date: Mar 2008
Last Activity: 16 March 2011, 6:18 PM EDT
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Sponsored Links
    #6  
Old 06-19-2008
johnf johnf is offline
Registered User
 
Join Date: May 2006
Last Activity: 10 April 2014, 6:14 AM EDT
Location: England
Posts: 406
Thanks: 7
Thanked 7 Times in 7 Posts
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.
Sponsored Links
    #7  
Old 06-19-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 15 April 2014, 9:23 PM EDT
Location: NM
Posts: 10,056
Thanks: 250
Thanked 756 Times in 711 Posts
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Disk Space full mohtashims UNIX for Advanced & Expert Users 3 11-26-2011 05:48 PM
Unable to understand disk layout and where are the free space kumarmani Solaris 9 09-09-2009 08:05 AM
how to install new packages when disk space is full tarunicon UNIX for Dummies Questions & Answers 3 04-16-2009 10:15 PM
solaris 8 / disk space almost full itik Solaris 7 03-21-2009 02:57 PM
[Sol10/VMWare] Unable to see new disk space. BOFH Solaris 8 09-09-2008 03:31 PM



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