linux ext4 挂载_如何在Linux中使用替代超级块挂载Ext4?

本文介绍了如何在Linux上挂载ext4文件系统,特别是在主超级块损坏时如何利用备用超级块进行挂载。通过列出超级块并使用dumpe2fs命令,然后使用mount命令指定不同的超级块参数来实现。
摘要由CSDN通过智能技术生成
linux ext4 挂载

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
List Super Blocks
List Super Blocks
列出超级块

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。但是,我们使用选项参数定义了不同的超级块编号

LEARN MORE  How To Recover Data with ddrescue Command?
了解更多信息如何使用ddrescue命令恢复数据?

翻译自: https://www.poftut.com/mount-ext4-alternative-super-block-linux/

linux ext4 挂载

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值