Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a transcend USB flash 16gb which does not mount anymore in Ubuntu. fsck prints the following output, do you have any clue what could it be?

fsck -y /dev/sdb
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
share|improve this question
    
It reports a corrupted file system. Try running sudo e2fsck -b 8193 -y /dev/sdb, and if that doesn't work, try formatting it. –  mikewhatever Mar 9 '13 at 12:52
    
The correct usage is fsck -y /dev/sdb1, because you must specify a partition not the whole drive. Is the filesystem really ext2? Usualy USB flash drives are formatted as FAT32. Try running sudo fsck.vfat /dev/sdb1. –  Eric Carvalho Mar 9 '13 at 13:34
    
Thanks, formatting worked! –  goun Mar 10 '13 at 13:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.