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
OR
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.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop







![Repairing Linux ext2 or ext3 or ext4 File System [ fsck ]](http://s13.cyberciti.org/images/shared/rp/3/19.jpg)




{ 4 comments… read them below or add one }
when does it use the commands
How do you find the alternate superblocks to use?
Use following syntax:
mount sb=alternative superblock. /dev/sdaX /mnt
OR
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
use dumpe2fs |grep -i superblock