Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a USB pen drive, of which Nautilus says when it tries to mount it:
Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Dmesg in turn says:
[38224.159693] sd 9:0:0:0: [sdc] Asking for cache data failed
[38224.159704] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[38224.163780] sd 9:0:0:0: [sdc] Asking for cache data failed
[38224.163793] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[38224.431331] sdc: sdc1
[38224.434886] sd 9:0:0:0: [sdc] Asking for cache data failed
[38224.434897] sd 9:0:0:0: [sdc] Assuming drive cache: write through
[38224.434906] sd 9:0:0:0: [sdc] Attached SCSI removable disk
[38224.997304] FAT-fs (sdc1): bogus number of reserved sectors
[38224.997313] FAT-fs (sdc1): Can't find a valid FAT filesystem
It turned out this way after - for reasons that are unclear - the drive became read-only with part of its contents corrupted and unreadable. So I thought trying formatting it (based on instructions I can't find on the net anymore, sorry), but the above is the end result.
Is the something that can be done? I guess it's possible the drive's just gone bad to begin with, with the corrupted unreadable data there already before I started messing around with it.
It is simple enough to put a new filesystem on any block device. First:
Code:
man mkfs
then
Code:
mkfs -t <filesystemtype> /dev/devicePartition
In your case that probably should be
Code:
mkfs -t vfat /dev/sdc1
Note that there is nothing to say that USB flash drives must be formatted with DOS filesystems, nor that they must have one giant partition. Most, if not all USB flash drives are factory formatted that way for compatibility with Windows. If the device is actually broken, you have nothing to lose by trying to reformat it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.