首页 > 编程知识 正文

linux格式化硬盘命令,linux磁盘分区格式化

时间:2023-05-03 22:21:40 阅读:120111 作者:1301

创建磁盘分区后,必须将系统分区恢复为出厂设置。

使用mkfs专用工具恢复磁盘分区的出厂设置,并应用MBR和GPT两种类型的分区表。

指令1 :将出厂设定的sdb1系统分区恢复为ext3文件格式

mkfs.ext3 /dev/sdb1

me2fs1. 41.12 (17天- 2010 ) )。

系统文件id=

电脑:Linux

块大小=4096(log=2) )

图层大小=4096(log=2) ) )

Stride=0 blocks,Stripe width=0 blocks

131072 inodes,524288区块

26214blocks(5.00% )保留的for the super user

第一个数据块=0

maximumfilesystemblocks=536870912

16区块组

32768块per组,32768帧per组

8192索引组

superblockbackupsstoredonblocks :

3768、98304、163840、229376、294912

已加载inode表:

创建日志(16384块) :进度

在writingsuperblocksandfilesystemaccountinginformation :上进行

thisfilesystemwillbeautomaticallycheckedevery 24 mounts or

180 days,whichevercomesfirst.use tune2fs-cor-ITO override。

指令2 :将出厂设定的sdb分区恢复为ext4文件格式

mkfs -t ext4 /dev/sdb5

me2fs1. 41.12 (17天- 2010 ) )。

系统文件id=

电脑:Linux

块大小=4096(log=2) )

图层大小=4096(log=2) ) )

Stride=0 blocks,Stripe width=0 blocks

131072 inodes,524288区块

26214blocks(5.00% )保留的for the super user

第一个数据块=0

maximumfilesystemblocks=536870912

16区块组

32768块per组,32768帧per组

8192索引组

superblockbackupsstoredonblocks :

3768、98304、163840、229376、294912

已加载inode表:

创建日志(16384块) :进度

在writingsuperblocksandfilesystemaccountinginformation :上进行

thisfilesystemwillbeautomaticallycheckedevery 20 mounts or

180 days,whichevercomesfirst.use tune2fs-cor-ITO override。

普尔。

MBR分区表硬盘中的扩展分区不能恢复为出厂设置。 也就是说,只有恢复出厂设置的主分区和逻辑分区。

恢复出厂设置的实际操作立即生效,不需要重新启动Linux系统软件,但此时无法使用df命令检查硬盘的系统文件和类型。 这是因为还没有进行初始化。

df -hT /dev/sdb1

filesystemtypesizeusedavailuse % mounted on

- - 492M 260K 491M 1% /dev

本文由移动通信网(http://www.meinvpo.com)发布,不代表移动通信网立场,转载作者联系,注明出处。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。