admin管理员组文章数量:1667457
当磁盘分区进行后,必须对系统分区开展恢复出厂设置。
应用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)发布,不代表移动通讯网立场,转载联系作者并注明出处:
版权声明:本文标题:Linux中分区的格式化命令,linux格式化命令是多少?Linux分区格式化的命令汇总 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1730104349a1222855.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论