当磁盘分区进行后,必须对系统分区开展恢复出厂设置。
应用mkfs专用工具对磁盘分区开展恢复出厂设置,适用MBR和GPT二种分区表。
指令1:恢复出厂设置sdb1系统分区为ext3文件格式
mkfs.ext3 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
系统文件标识=
电脑操作系统:Linux
块尺寸=4096 (log=2)
分层尺寸=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
131072 inodes, 524288 blocks
26214 blocks (5.00%) reserved for the super user
第一个数据信息块=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
已经载入inode表: 进行
Creating journal (16384 blocks): 进行
Writing superblocks and filesystem accounting information: 进行
This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
指令2:恢复出厂设置sdb五分区为ext4文件格式
mkfs -t ext4 /dev/sdb5
mke2fs 1.41.12 (17-May-2010)
系统文件标识=
电脑操作系统:Linux
块尺寸=4096 (log=2)
分层尺寸=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
131072 inodes, 524288 blocks
26214 blocks (5.00%) reserved for the super user
第一个数据信息块=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
已经载入inode表: 进行
Creating journal (16384 blocks): 进行
Writing superblocks and filesystem accounting information: 进行
This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
p.s.
MBR分区表硬盘中的扩展分区不可以恢复出厂设置,即只有恢复出厂设置主分区和逻辑分区;
恢复出厂设置实际操作是即时生效的,不用重新启动Linux系统软件,但这时用df命令并不可以查询到硬盘的系统文件和种类,缘故是都还没开展初始化。
df -hT /dev/sdb1
Filesystem Type Size Used Avail Use% Mounted on
- - 492M 260K 491M 1% /dev
本文由移动通讯网( http://www.meinvpo.com)发布,不代表移动通讯网立场,转载联系作者并注明出处: