New answers tagged fsck
There used to be an option to check ext2 filesystems at mount time, but that is no longer supported. Nowadays boot scripts check filesystems before mounting them, and your scripts should do so too. Mounting a filesystem does still check things to make sure it's safe to mount the filesystem; but it won't fix anything (beyond replaying the journal on ext3 or ...
There is not a -o force mount option for (v)FAT. A safe alternative is to image the sdcard and then do an fsck on the image. dd if=/dev/sdb1 of=~/sdcard.image dosfsck -l -w -a -r -v -t ~/sdcard.image mount -t vfat -o loop,ro ~/sdcard.image /mnt/sdcard
Top 50 recent answers are included