How To Mount Ext4 With Alternative Super Block In Linux? – POFTUT

How To Mount Ext4 With Alternative Super Block In Linux?

We have a detailed file system, blocks and superblocks int this post. We will try to mount an alternate superblock. As we know super blocks hold information about the file system. If our primary superblock is corrupted or unusable we can use alternative superblocks.

List Super Blocks

To mount with an alternative superblock we will list superblocks and alternatives.

List Super Blocks

List Super Blocks

To run dumpe2fs command we need root privileges. We grep only superblock related line of the output.

Mount File System

We will mount the file system regular mount command by providing different arguments like below

Or we can use by providing as an option

Mount command uses by default block 1. However, we have defined different superblock number with an option parameter

LEARN MORE  Creating File Systems In Linux With mkfs

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)