Wednesday, April 15, 2009

Nifty USB Drive Tool

Hey, found this nifty tool that you can use when your usb stick starts acting up. Yesterday, when I tried using my usb stick to move my avi files, I keep getting these "read-only filesystem" messages, even when I manually and forcibly mount the usb stick in rw mode. Did a cursory check on the /var/log/messages, turns out that vfat filesystem used by usb stick have been clobbered (plugging the usb in and out have finally taken it's toll)

Anyways, quickie solution would be to run the fsck.vfat utility.

# fsck.vfat <usb>

Where <usb> is the usb device file name (depending on your fdisk -l output). What fsck.vfat does is repair FAT32 filesystem used in your usb sticks.

No comments: