Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In order to create a contiguous space for my file system to grow, I created a new EFI System partition at sda1 so that I can migrate it from the current partition at sda5. The move itself has been successful except for a warning which says:

kernel: FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

I didn't notice the warning which has been there for two days when I first created the EFI partition. I unmounted the file system and performed a file system check as follows:

# umount /dev/sda1
# fsck -V /dev/sda1
fsck from util-linux 2.24
[/sbin/fsck.vfat (1) -- /boot/efi] fsck.vfat /dev/sda1 
fsck.fat 3.0.24 (2013-11-23)
0x25: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 1
Leaving filesystem unchanged.
/dev/sda1: 14 files, 2435/51145 clusters

I thought removing the dirty bit would resolve this. But it didn't. What should actually be done?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

This is stupid. I find myself answering my own question again. It says,

Leaving filesystem unchanged.

suggesting that nothing is changed. This actually mean that typing 1 followed by pressing enter inside the fsck prompt did not work. Anyway, the following does work:

# fsck.vfat -v -a -w /dev/sda1

The above command automatically write changes to disk. It would be great if anyone can tell me whether this is a bug in fsck or it is due to something else.

share|improve this answer
The man page for fsck.vfat explains that it only does a dry-run and changes nothing, unless you give either the -a or -r options. The same is true of the check tools for other filesystem types, though the specific options may vary. –  Michael Hampton Feb 1 at 12:52
@MichaelHampton, yes indeed. The sneaky footnote says Note: If -a and -r are absent, the filesystem is only checked, but not repaired.. Those looking at man fsck would never find out :p –  Question Overflow Feb 1 at 14:13
Actually, -a and -r are both mentioned in fsck man page. –  Michael Hampton Feb 1 at 14:15
@MichaelHampton, yeah, but nothing is mentioned about the dry-run. –  Question Overflow Feb 2 at 1:55

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.