Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am unable to create either a file or a directory in a specified path in Linux. I am getting the error "No space left on device". I have checked with df -k and df -i. Free disk space is 28 % and free inodes are 28 %. What else could be the reason?

share|improve this question

migrated from Jun 8 '11 at 7:07

This question came from our site for professional and enthusiast programmers.

What file system? – Nemo Jun 8 '11 at 6:41
where do you want to create ur file/folder? – Stuti Jun 8 '11 at 6:44
@nemo: file system is ext3 – abcd108 Jun 8 '11 at 6:46
@abcd: I have seen this problem with huge (10s of terabytes) file systems on XFS, fixed by the inode64 mount option. But this does not apply to ext3. It is possible your file system is corrupt; have you (a) checked dmesg and (b) run fsck? – Nemo Jun 8 '11 at 6:50
Do you have the correct permissions in that folder? – brandstaetter Jun 8 '11 at 7:10

Probably you are writing to parition that is full or broken. I suggest that you go to single user mode (simplest way to do that is just to write init 1)

So this now..

mount # to get partitioin device
init 1 # to go to single user mode
fsck -y /dev/yourpartitiondevice
share|improve this answer

Although 28% is a pretty large number and it would be very unusual to configure a filesystem like that - but you should check if the remaining space is reserved for root. An ext2 filesystem hat a number of blocks reserved only for the root user. Run

dumpe2fs -h /path/to/blockdevice  | grep -i block

and check if the free block count is above the reserved block count.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.