Skip to content
ohsudo, Home
Linux

mount "wrong fs type, bad option, bad superblock": find which of the five it is

Fix mount "wrong fs type, bad option, bad superblock": read dmesg, check the device with lsblk -f, install NFS or CIFS helpers, or repair it.

Intermediate4 min readApplies to Ubuntu · Debian · RHEL / Rocky / AlmaLinux · util-linux 2.37+

by OhSudo ·

Checked on real software: Ubuntu 24.04 · November 2026How we check

mount: /mnt/data: wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error.
dmesg(1) may have more information after failed mount system call.

This message is a catch-all. The kernel refused to mount, and mount lists every reason it can think of, because it doesn’t know which one applies. The kernel’s log does know, which is why the message points you to dmesg. Start there, and then it’s usually one of five things.

TL;DR

Terminal window
sudo dmesg | tail -n 5
lsblk -f

lsblk -f shows each partition and its file system. Mount the partition, like /dev/sdb1, not the whole disk, and install the helper for network shares: nfs-common or cifs-utils on Ubuntu, nfs-utils or cifs-utils on RHEL.

1. Read the kernel’s reason

Terminal window
sudo dmesg | tail -n 5
dmesg says Means Go to
Nothing new Often the wrong device, or a missing helper Sections 2 and 3
VFS: Can't find ext4 filesystem Wrong type or wrong device Section 2
Filesystem has duplicate UUID A cloned XFS disk Section 5
bad option, Unrecognized mount option An option the file system doesn’t accept Section 4
Corruption detected, bad superblock Damage Section 6

2. The wrong device

The classic case: mounting the whole disk instead of its partition. /dev/sdb is the disk, and the file system lives on /dev/sdb1. You can try this in the terminal, where a new disk is waiting:

Terminal window
sudo mount /dev/sdb /mnt/data
lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sdb
└─sdb1 ext4 1.0 data 6a1e5c0e-1b2f-4b8e-9c55-2d7f0c3e9a10
Terminal window
sudo mount /dev/sdb1 /mnt/data
findmnt /mnt/data

An empty FSTYPE means there’s no file system at all: a new disk that was never formatted. Format it only if you’re sure it holds nothing:

Terminal window
sudo mkfs.ext4 /dev/sdb1

Cloud disks change names: /dev/sdb on one boot, /dev/nvme1n1 on the next. Use the UUID in /etc/fstab, never the device name. nofail lets the machine boot even if the disk is missing:

Terminal window
sudo blkid /dev/sdb1
echo "UUID=6a1e5c0e-1b2f-4b8e-9c55-2d7f0c3e9a10 /mnt/data ext4 defaults,nofail 0 2" | sudo tee -a /etc/fstab
sudo mount -a

mount -a mounts every fstab entry that isn’t mounted yet, and reports mistakes now, rather than at the next boot.

3. A missing helper, for network shares

NFS and SMB shares need a helper program, and minimal installs don’t have it. You may get a slightly different message, naming it:

mount: /mnt/share: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.
Terminal window
# Ubuntu, Debian
sudo apt install nfs-common cifs-utils
# RHEL, Rocky, AlmaLinux
sudo dnf install nfs-utils cifs-utils

Then mount again. For SMB shares from Windows, credentials and the protocol version matter:

Terminal window
sudo mount -t cifs //fileserver/share /mnt/share -o credentials=/root/.smbcred,vers=3.0,uid=1000,gid=1000

Keep the password in that file, readable only by root, rather than on the command line. A Windows share that refuses access is a different problem: see System error 53.

4. An option the file system doesn’t know

Options differ between file systems. A typo, or an option for another type, gives this error, often from /etc/fstab. Test your fstab before rebooting, as an error there can stop a machine from starting:

Terminal window
sudo findmnt --verify
sudo mount -a

uid= and gid= work for FAT, NTFS and CIFS, which have no Linux owners, and not for ext4 or XFS, which use the files’ own owners. The kernel’s log names the option it refused:

Terminal window
sudo umount /mnt/data
sudo mount -o uid=1000 /dev/sdb1 /mnt/data
sudo dmesg | tail -n 1
EXT4-fs (sdb1): Unrecognized mount option "uid=1000" or missing value

Windows disks. exFAT is supported by recent kernels directly, and on older systems needs the exfatprogs package. For NTFS, recent kernels have the ntfs3 driver: sudo mount -t ntfs3 /dev/sdc1 /mnt/win. A Windows disk that wasn’t shut down cleanly, with Fast Startup on, may be refused. Shut Windows down fully, or turn off Fast Startup.

5. A cloned XFS disk

A snapshot or clone of an XFS disk has the same UUID as the original, and XFS refuses to mount two at once:

XFS (sdc1): Filesystem has duplicate UUID 6a1e5c0e-... - can't mount

Mount it once with nouuid, or give the copy a new UUID, which is permanent:

Terminal window
sudo mount -o nouuid /dev/sdc1 /mnt/copy
sudo xfs_admin -U generate /dev/sdc1

6. A damaged file system

If dmesg reports corruption, check the file system while it’s not mounted:

Terminal window
sudo fsck -n /dev/sdb1 # ext4: look, change nothing
sudo fsck /dev/sdb1 # then repair
sudo xfs_repair -n /dev/sdb1 # XFS: look, change nothing

For ext4, a backup superblock can save a damaged primary one: sudo mke2fs -n /dev/sdb1 lists their positions without formatting, and sudo fsck -b 32768 /dev/sdb1 uses one. Copy the disk first if the data matters, and check its health with sudo smartctl -a /dev/sdb.

Warning

mkfs erases the file system. Don’t run it to “fix” this error until lsblk -f and blkid have shown that there really is nothing on the partition. And mke2fs without -n formats, too, so type that flag.

Shell, we have a problem!

Similar, but different: Read-only file system means it mounted, and was switched to read-only after errors. target is busy is about unmounting. mount point does not exist means the folder is missing: sudo mkdir -p /mnt/data. And at boot, see Unable to mount root fs. Structure needs cleaning comes from a filesystem that mounts, but has damage inside. An NFS server that refuses the client is access denied by server.

$ ./practice.sh

Practice this in the terminal

Open the Terminal Playground with this article’s scenario loaded. It is safe and runs in your browser.

Open the terminal →

Found this useful? Share it.

Found a mistake? Let us know at contact@ohsudo.com.

Tools

Try it yourself

Articles

Related articles