Linux wrong-fs-typeMedium

How to Fix 'wrong fs type' Error in Linux

The 'wrong fs type' error blocks disk access due to mismatch of the specified filesystem type or lack of kernel support. Solution: check filesystem type, install modules, and correct fstab.

Updated at February 23, 2026
10-15 minutes
Medium
FixPedia Team
Применимо к:Linux (any distribution)Linux kernel 4.x and above

'Wrong fs type' Error in Linux: Quick Fix

The wrong fs type (or wrong-fs-type) error occurs when the Linux kernel cannot recognize the file system on a device. The system displays the message:

mount: /dev/sdb1: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or other error

This error blocks access to data and appears both during manual mounting with mount and automatically at boot due to issues in /etc/fstab. You can fix it within 10–15 minutes by identifying the actual file system type, loading the kernel module, or checking disk integrity.

Why the wrong-fs-type Error Occurs

Main causes:

  1. Incorrect file system type in the mount -t command or in fstab. For example, specifying ext4 for an NTFS partition.
  2. Missing kernel module for the file system (common for exfat, ntfs in minimal installations).
  3. Corrupted superblock or an unformatted device.
  4. Outdated mount options for a specific file system type.
  5. Device already mounted elsewhere (rare, but possible).

How to Fix: Step-by-Step Guide

Step 1: Determine the Actual File System Type

First, check what is actually on the device.

sudo blkid /dev/sdb1

Example output:

/dev/sdb1: UUID="1234-ABCD" TYPE="ntfs"

Alternative:

sudo file -sL /dev/sdb1

Output: /dev/sdb1: NTFS volume ...

Note the TYPE value (e.g., ntfs, exfat, ext4).

Step 2: Specify the Correct Type in mount or fstab

If the type in the blkid output doesn't match what you specified:

  • For manual mounting:
    sudo mount -t ntfs /dev/sdb1 /mnt
    

    Replace ntfs with your type.
  • For fstab open the file:
    sudo nano /etc/fstab
    

    Find the line for this device and correct the 4th field (file system type). It's best to use UUID instead of /dev/sdb1:
    UUID=1234-ABCD  /mnt  ntfs  defaults  0  0
    
Editing the fstab file in the vi/nano text editor with UUID and file system type specified

Example of a correct fstab entry with UUID and file system type

Step 3: Load the Kernel Module for the File System

If the file system type is correct but the module isn't loaded.

  1. Check if the module exists:
    lsmod | grep -E "(ntfs|exfat|vfat)"
    

    If the output is empty — the module is not active.
  2. Install support packages (if needed):
    • NTFS (full write support):
      sudo apt install ntfs-3g        # Debian/Ubuntu
      sudo yum install ntfs-3g        # RHEL/CentOS
      
    • exFAT:
      sudo apt install exfat-fuse exfat-utils
      sudo yum install exfat-utils fuse-exfat
      
  3. Load the module:
    sudo modprobe ntfs    # for NTFS
    sudo modprobe exfat   # for exFAT
    
  4. Retry mounting.

Step 4: Check File System Integrity

A corrupted superblock can cause the error.

  • For ext2/3/4:
    sudo umount /dev/sdb1  # if mounted
    sudo fsck -y /dev/sdb1
    
  • For NTFS (requires ntfs-3g):
    sudo umount /dev/sdb1
    sudo ntfsfix /dev/sdb1
    
  • For FAT32:
    sudo umount /dev/sdb1
    sudo fsck.vfat -a /dev/sdb1
    
  • For exFAT:
    sudo umount /dev/sdb1
    sudo fsck.exfat /dev/sdb1
    

⚠️ Important: Do not run fsck on a mounted device. This can destroy data.

Step 5: Validate and Correct fstab

Boot errors often relate to fstab.

  1. Check syntax:
    sudo mount -a
    

    If there are no errors — the configuration is correct.
  2. Ensure fstab has 6 fields, separated by spaces/tabs:
    <device>  <mount_point>  <fs_type>  <options>  <dump>  <pass>
    
    • In the <fs_type> field, use auto for auto-detection or the exact type.
    • Use UUID (from blkid) instead of /dev/sdb1.
    • For non-critical partitions, add nofail to options so the system doesn't hang on error.

    Example:
    UUID=1234-ABCD  /mnt  auto  defaults,nofail  0  0
    

Step 6: Use Auto-Detection

If you're unsure of the file system type:

  • For manual mounting omit -t:
    sudo mount /dev/sdb1 /mnt
    
  • In fstab specify auto:
    /dev/sdb1  /mnt  auto  defaults  0  0
    

⚠️ Limitation: Auto-detection may fail for exfat without the module or with a corrupted superblock.

Preventing the wrong-fs-type Error

  1. Always check the file system type before mounting using blkid or lsblk -f.
  2. Use UUID in fstab — device names (/dev/sdb1) can change.
  3. Update the kernel and file system support packages (ntfs-3g, exfat-utils).
  4. Create backups before disk operations (fsck, formatting).
  5. Test fstab with sudo mount -a before rebooting.

These steps reduce the risk of data loss and ensure stable mounting.

F.A.Q.

What does the wrong-fs-type error mean when mounting?
How to find out the exact filesystem type on a device?
Can a partition be mounted without specifying the filesystem type?
What to do if the filesystem module is missing from the kernel?

Hints

Determine the actual filesystem type
Specify the correct type in the mount command or fstab
Load the kernel module for the filesystem
Check the filesystem integrity
Validate the fstab configuration
Use autodetection or the 'auto' option

Did this article help you solve the problem?

FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community