LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-09-2008, 01:12 PM   #1
Jimantha
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Moving a file into a large directory: "No space left on device"


Hi,

I have a large directory with about 7 million small files on an ext3 partition. I'm trying to move one more file into the directory, but I get a "No space left on device" error, even though there is sufficient space (the file is less than 1K):

Filesystem 1K-blocks Used Available Use% Mounted on
1032123136 963056860 37608996 97%

The weird this is that if I rename the file, I can successfully move it (though some filenames don't work -- the length of the filename doesn't seem to make a difference). Perhaps there's some problem related to indexing the directory? Has anyone run into this before?

BTW, there are plenty of i-nodes left for the file system.

-Jimantha
 
Old 09-09-2008, 04:02 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,508

Rep: Reputation: 176Reputation: 176
I think that you should run fsck against the file system to see if the file system is damaged in some way.

----------------------
Steve Stites
 
Old 09-09-2008, 11:40 PM   #3
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 666

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by Jimantha View Post
Hi,

I have a large directory with about 7 million small files on an ext3 partition. I'm trying to move one more file into the directory, but I get a "No space left on device" error, even though there is sufficient space (the file is less than 1K):

Filesystem 1K-blocks Used Available Use% Mounted on
1032123136 963056860 37608996 97%

The weird this is that if I rename the file, I can successfully move it (though some filenames don't work -- the length of the filename doesn't seem to make a difference). Perhaps there's some problem related to indexing the directory? Has anyone run into this before?

BTW, there are plenty of i-nodes left for the file system.

-Jimantha
When you move file from one directory to another both directory should be changed - from the source dir record about the file should be removed and added to the target directory. And adding something to directory may require some space. Your filesystem is almost full. Usually last 5% of the filesystem reserved for root's usage only. Did you try move file as root or as regular user ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"No space left on device" error using SystemV shared memory clalfa Programming 5 07-09-2007 07:34 AM
"no space left on device" error. ekkasit Linux - General 5 07-08-2007 02:50 PM
Getting a "No space left on device" message on a non-full partition... sugar2 Linux - Hardware 12 07-06-2007 01:43 AM
"Cannot create directory: No space left on device" but I have 7.1G available !!!! fr_laz Linux - General 3 12-09-2005 04:44 PM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM


All times are GMT -5. The time now is 10:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration