導航:首頁 > 操作系統 > linux分區無法格式化

linux分區無法格式化

發布時間:2023-02-10 12:04:16

『壹』 linux下ext4無法格式化大分區怎麼辦

1.將硬碟分區(這里就分一個區)
fdisk /dev/cciss/c0d1
交互信息:

點擊(此處)折疊或打開
Command (m for help): n

Command action

e extended

p primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-71798, default 1):

Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-71798, default 71798):

Using default value 71798

Command (m for help): v

315 unallocated sectors

Command (m for help): p

Disk /dev/cciss/c0d2: 299.9 GB, 299966445568 bytes

255 heads, 32 sectors/track, 71798 cylinders

Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System

/dev/cciss/c0d2p1 1 71798 292935824 83 Linux

Command (m for help): w

The partition table has been
2. 格式化分區(mke4fs命令所在rpm包是e4fsprogs,yum install e4fsprogs* 就能找到了)。
mke4fs -L /opt1 /dev/cciss/c0d1p1
如果忘記加卷標,格式化完成後使用如下命令加上卷標。
e4label /dev/cciss/c0d1p1 /opt1
查看分區信息
tune4fs -l /dev/cciss/c0d0p1
3. 修改/etc/fstab 結果如下
head -3 /etc/fstab

點擊(此處)折疊或打開
LABEL=/ / ext3 defaults 1 1
LABEL=/opt /opt ext4 defaults 0 0
LABEL=/opt1 /opt1 ext4 defaults 0 0
4. 創建掛載文件夾
mkdir /opt1
5.掛載
mount -a
6.查看掛載情況
mount
結果如下:
/dev/cciss/c0d1p1 on /opt1 type ext4 (rw)

『貳』 裝過linux的硬碟格式位ext4不能格式化為ntfs格式求大神

如果你的要求是數據可以不要,那就很好辦了,你可以使用軟體diskgenius,如下:
利用diskgenius軟體將ext4分區全部刪除,容納後重新建立分區即可。
一、先選擇要刪除的分區,然後點擊工具欄按鈕「刪除分區」,或點擊菜單「分區 -

刪除當前分區」項,也可以在要刪除的分區上點擊滑鼠右鍵並在彈出菜單中選擇「刪除當前分區」項。程序將顯示下面的警告信息:《Linux就該這么學》中的Linux命令大去查看
點擊「是」即可刪除當前選擇的分區。
二、快速分區
1、點擊「快速分區」按鈕。後面的過程就是分區,基本沒有什麼變化。

『叄』 Linux中格式化失敗,沒有找到命令

如果沒有正確分區,那麼磁碟格式化就會失敗。
linux格式化命令,Linux下有一條mkfs命令,相當於format,可以對磁碟進行文件系統製作操作(或者說格式化)。

閱讀全文

與linux分區無法格式化相關的資料

熱點內容
python數組分片 瀏覽:251
linux圖形化編程 瀏覽:175
阿里國際站app端怎麼裝修 瀏覽:528
微信小程序雲開發簡單搭建源碼 瀏覽:851
以後缺程序員嗎 瀏覽:293
jsp源碼不能運行 瀏覽:363
淘客助手源碼下載 瀏覽:733
如何使用app記賬報稅 瀏覽:562
python線程捕捉鍵盤 瀏覽:25
地推統計圖app怎麼做 瀏覽:162
android文件夾不能用了 瀏覽:857
加密軟體的日誌 瀏覽:892
腎病pdf 瀏覽:230
網站怎麼用本地伺服器 瀏覽:120
javadoc導入android 瀏覽:517
文件掃描成pdf 瀏覽:696
涼山火災救援命令 瀏覽:54
壓縮機三相檢測 瀏覽:861
linux怎麼安裝光碟 瀏覽:799
寬頻伺服器無響應是為什麼 瀏覽:226