Cannot mount USB drive with "wrong fs type, bad option, bad superblock" error message

51,314

The USB drive seems to be partitioned. Do not mount the device directly, but the partition /dev/sdb1 instead:

mount /dev/sdb1 /mnt
Share:
51,314

Related videos on Youtube

MikiBelavista
Author by

MikiBelavista

Updated on September 18, 2022

Comments

  • MikiBelavista
    MikiBelavista almost 2 years
    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    
        lsblk
            sda      8:0    0 931,5G  0 disk 
            ├─sda1   8:1    0   100M  0 part 
            ├─sda2   8:2    0 150,3G  0 part 
            ├─sda3   8:3    0 558,5G  0 part 
            ├─sda4   8:4    0     1K  0 part 
            ├─sda5   8:5    0 220,7G  0 part /
            └─sda6   8:6    0     2G  0 part [SWAP]
            sdb      8:16   1   7,5G  0 disk 
            └─sdb1   8:17   1   7,5G  0 part 
            sr0     11:0    1  1024M  0 rom 
    

    And when I try

     mount /dev/sdb /mnt
    mount: wrong fs type, bad option, bad superblock on /dev/sdb,
           missing codepage or helper program, or other error
    

    With dmesg -tail

    dmesg | tail
    [ 1059.082039] usbcore: registered new interface driver usb-storage
    [ 1059.109149] usbcore: registered new interface driver uas
    [ 1060.081502] scsi 6:0:0:0: Direct-Access     JetFlash Transcend 8GB    8.07 PQ: 0 ANSI: 4
    [ 1060.081841] sd 6:0:0:0: Attached scsi generic sg2 type 0
    [ 1060.083326] sd 6:0:0:0: [sdb] 15679488 512-byte logical blocks: (8.02 GB/7.47 GiB)
    [ 1060.085260] sd 6:0:0:0: [sdb] Write Protect is off
    [ 1060.085264] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
    [ 1060.086416] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [ 1060.092027]  sdb: sdb1
    [ 1060.096224] sd 6:0:0:0: [sdb] Attached SCSI removable disk
    
    parted /dev/sdb
    GNU Parted 3.2
    Using /dev/sdb
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) p                                                                
    Model: JetFlash Transcend 8GB (scsi)
    Disk /dev/sdb: 8028MB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    Disk Flags: 
    
    Number  Start  End     Size    Type     File system  Flags
     1      131kB  8028MB  8028MB  primary
    

    How to solve this?

  • MikiBelavista
    MikiBelavista over 8 years
    No,the same as before! mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
  • Jens Erat
    Jens Erat over 8 years
    You might be missing support for the file system in use. How is the partition formatted? You should be able to get some more information with parted /dev/sdb, then run the p command (p as in "print").
  • MikiBelavista
    MikiBelavista over 8 years
    W95 FAT32 is partition type
  • Jens Erat
    Jens Erat over 8 years
    Try enfording FAT32 as file system: mount -t msdos /dev/sdb1 /mnt. If this still doesn't work, look at the dmesg output if any error message appears while mounting the partition.
  • Jens Erat
    Jens Erat over 8 years
    The file system seems broken. If you don't have any important files on that drive, considering reformatting. You might be able to use fsck to repair the file system and/or use some data recovery tools to recover files. If there's anything important on it, make sure to create a full image (for example using dd) before doing any work with the broken file system.
  • MikiBelavista
    MikiBelavista over 8 years
    Thanks a lot. I do not have important files on disk.
  • goo
    goo over 8 years
    Start with sudo file -s /dev/sdb1 to do a low-level query. (man file).
  • MikiBelavista
    MikiBelavista over 8 years
    @waltinator /dev/sdb1: data
  • John Smith Optional
    John Smith Optional about 7 years
    @Jean Erat : thanks, adding the -t msdos option did the trick for me
  • Damian T.
    Damian T. over 2 years
    Can you provide details on how to achieve the end state, such as specific terminal commands? Is a total erasure necessary after partitioning? If so, why?
  • David
    David over 2 years
    @Damian T You really think the OP will answer on a 6 year old question?
  • Damian T.
    Damian T. over 2 years
    @David The comment was to libertyrogue who posted the answer yesterday, not to OP.