Corrupted filesystem FAT16 on USB stick. It mounts read-only.
Hi all. I have a 2Gb USB stick formatted as FAT16. For some unknown reason I cannot mount it r/w anymore. dmesg reports the following error:
Code:
FAT: Filesystem error (dev sdb1) Code:
# fsck -a /dev/sdb1 |
you should umount before fsck. you can also try fdisk.
|
Quote:
|
I'm assuming you've tried to wipe the partition table, make it something totally different; like ext2 and then create a new file system for it? What does fdisk get you?
|
Quote:
|
Code:
# fdisk /dev/sdb Code:
Disk /dev/sdb: 2001 MB, 2001076224 bytes |
|
Quote:
|
If it's really important to you, there's always grab the source for fdisk and remove the checks which dis-allow writing of the partition table.
I took a look and the version I found did not have that particular error verbiage in it, fdisk.c. Another option is to boot to single user mode in command line so that when you plug in that thumbstick, it never gets attempted to be mounted, but I'm guessing that you've already done that. My thinking there is that it won't have tried to do anything with it and the system might consider it to be a fresh disk which once you do fdisk and just say re-partition. I think you're already past that though. |
Quote:
Code:
Cannot format. This volume is write protected. |
Quote:
Code:
Unable to write /dev/sdb Edit: I've just tried to compile fdisk, but I cannot find the part of code containing the error message. I give up now! Thank you for the support. |
Just because I'm interested how it can happen: http://superuser.com/questions/40268...w-can-i-fix-it (probably you have seen it already).
|
Quote:
|
http://sosfakeflash.wordpress.com/20...-flash-drives/
man that is really disgusting that companies would do such horrid bait and switch tactics and still be able to get away with it. |
Try running as root and mount it then. Click on the drive's properties and change its permissions to read/write using either a terminal or one of the many graphical tools. Be sure to make these changes applicable to all files and subfolders in all directories.
If you can still read what's on there, you should be able to copy and paste all data to another hard drive or file system. Then use it normally. Running as root makes this process easier, one reason to not disable the root's account gui. Just use a really strong password and take it offline whenever possible. |
All times are GMT -5. The time now is 11:12 PM. |