Mounting with an alternative superblock

How do I mount file system with an alternative superblock under Linux operating systems?

Mount command by default use block 1. However, you can force the mount to use specific superblock. Use the following syntax:

mount -o sb=alternative-superblock /dev/sdaX /mnt
mount sb=alternative-superblock /dev/hdaX /mnt
From the man page:

Instead of block 1, use block n as superblock. This could be
useful when the filesystem has been damaged. (Earlier, copies
of the superblock would be made every 8192 blocks: in block 1,
8193, 16385, … (and one got thousands of copies on a big
filesystem). Since version 1.08, mke2fs has a -s (sparse
superblock) option to reduce the number of backup superblocks,
and since version 1.15 this is the default. Note that this may
mean that ext2 filesystems created by a recent mke2fs cannot be
mounted r/w under Linux 2.0.*.) The block number here uses 1k
units. Thus, if you want to use logical block 32768 on a
filesystem with 4k blocks, use “sb=131072”.

Thus, if you want to use logical block 32768 on a filesystem with 4k blocks, use “sb=131072”, type command as follows:
# mount -o sb=131072 /dev/hda2 /mnt

For more information see Surviving a Linux Filesystem Failures tip to determine alternative superblock.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 4 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
4 comments… add one
  • franklin Aug 4, 2008 @ 10:10

    when does it use the commands

  • shadowmancer Sep 6, 2008 @ 1:12

    How do you find the alternate superblocks to use?

  • Arun Khan Jan 19, 2009 @ 9:07

    Use following syntax:
    mount sb=alternative superblock. /dev/sdaX /mnt
    mount sb=alternative superblock. /dev/hdaX /mnt

    Minor corrections in your examples, the “sb=alternative superblock” is an option in mount and thus it should be prefixed with the “-o” switch.

    e.g. mount -o sb=alternative superblock. /dev/hdaX /mnt

  • Muthukumar.L Jan 14, 2013 @ 19:21

    use dumpe2fs |grep -i superblock

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum