linux ext4 挂载
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.
要安装备用超级块,我们将列出超级块和备用块。
$ dumpe2fs /dev/vda1 |grep -i superblock
To run dumpe2fs command we need root privileges. We grep only superblock related line of the output.
要运行dumpe2fs命令,我们需要root特权。 我们只grep输出的与超级块相关的行。
挂载文件系统 (Mount File System)
We will mount the file system regular mount command by providing different arguments like below
我们将通过提供以下类似的参数来挂载文件系统常规的挂载命令
$ mount sb=32768 /dev/vda1 /mnt
Or we can use by providing as an option
或者我们可以通过提供
$ mount -o sb=32768 /dev/vda1 /mnt
Mount command uses by default block 1. However, we have defined different superblock number with an option parameter
安装命令默认使用块1。但是,我们使用选项参数定义了不同的超级块编号
翻译自: https://www.poftut.com/mount-ext4-alternative-super-block-linux/
linux ext4 挂载