Mounting with an alternative superblock

by nixcraft · 3 comments

Asked by Steve Rowse

Q. After reading your tip about superblock I am just wondering How do I mount file system with an alternative superblock (Linux ext3 file system).

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

mount sb=alternative superblock. /dev/sdaX /mnt

OR

mount sb=alternative superblock. /dev/hdaX /mnt

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

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

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 3 comments… read them below or add one }

1 franklin 08.04.08 at 10:10 am

when does it use the commands

2 shadowmancer 09.06.08 at 1:12 am

How do you find the alternate superblocks to use?

3 Arun Khan 01.19.09 at 9:07 am

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

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: