What's new

how to fsck a FAT32 usb drive on Merlin firmware?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

chiwalfrm

Regular Contributor
I know I can fsck (filesystem check) a USB drive formatted with Linux partition with the e2fsck command, but what if the drive is FAT32?

On Linux, there is a dosfsck program that comes with dosfstools package. But there is no dosfsck binary in the Merlin firmware and dosfstools isn't available in Entware repo.
 
The command is /usr/sbin/fsck_msdos on AC56/AC68/AC87. I don't remember under N16/N66/AC66, check what's available under /usr/sbin/.
 
Thanks for the reply! This is for RT-N16:

admin@RT-N16:/tmp/home/root# ls -1 /usr/sbin | grep -i fsck
app_fsck.sh
app_fsck_all.sh
e2fsck
fsck.ext2
fsck.ext3

So there is no /usr/sbin/fsck_msdos. Can you upload this program and make it available on your mediafire website? Thank you very much.
 
Thanks for the reply! This is for RT-N16:

admin@RT-N16:/tmp/home/root# ls -1 /usr/sbin | grep -i fsck
app_fsck.sh
app_fsck_all.sh
e2fsck
fsck.ext2
fsck.ext3

So there is no /usr/sbin/fsck_msdos. Can you upload this program and make it available on your mediafire website? Thank you very much.

No, because this program only works on ARM routers, and only if you are using the Tuxera driver - which the MIPS routers don't. That's why I specified the router models that used that particular command.

I checked the code, and looks like dosfsck is no longer included in the firmware for MIPS-based routers. I will have to check in past merges if there's a reason why it has been removed from the Makefile (could have been the result of a past GPL merge). In the mean time, just plug the disk to any standard Windows PC to run a filesystem check.
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top