人妖在线一区,国产日韩欧美一区二区综合在线,国产啪精品视频网站免费,欧美内射深插日本少妇

新聞動(dòng)態(tài)

Linux分區(qū)格式化的命令

發(fā)布日期:2022-03-30 16:31 | 文章來源:站長(zhǎng)之家

當(dāng)硬盤分區(qū)完成后,需要對(duì)分區(qū)進(jìn)行格式化。

使用mkfs工具對(duì)硬盤分區(qū)進(jìn)行格式化,支持MBR和GPT兩種分區(qū)表。

命令1:格式化sdb1分區(qū)為ext3格式

mkfs.ext3 /dev/sdb1

mke2fs 1.41.12 (17-May-2010)
文件系統(tǒng)標(biāo)簽=
操作系統(tǒng):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
第一個(gè)數(shù)據(jù)塊=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:格式化sdb5分區(qū)為ext4格式

mkfs -t ext4 /dev/sdb5

mke2fs 1.41.12 (17-May-2010)
文件系統(tǒng)標(biāo)簽=
操作系統(tǒng):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
第一個(gè)數(shù)據(jù)塊=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分區(qū)表磁盤中的擴(kuò)展分區(qū)不能格式化,即只能格式化主分區(qū)和邏輯分區(qū);
格式化操作是即時(shí)生效的,不需要重啟Linux系統(tǒng),但此時(shí)用df命令并不能查看到磁盤的文件系統(tǒng)和類型,原因是還沒有進(jìn)行掛載。

df -hT /dev/sdb1
Filesystem   Type Size Used Avail Use% Mounted on
-       -   492M 260K 491M  1% /dev

總結(jié)

以上所述是小編給大家介紹的Linux分區(qū)格式化的命令,希望對(duì)大家有所幫助,如果大家有任何疑問歡迎給我留言,小編會(huì)及時(shí)回復(fù)大家的,如果大家有任何疑問歡迎給我留言,小編會(huì)及時(shí)回復(fù)大家的!

版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。

相關(guān)文章

實(shí)時(shí)開通

自選配置、實(shí)時(shí)開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問服務(wù)

1對(duì)1客戶咨詢顧問

在線
客服

在線客服:7*24小時(shí)在線

客服
熱線

400-630-3752
7*24小時(shí)客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部