国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統(tǒng) > Linux > 正文

Linux 格式化擴展分區(qū)(Extended)

2024-06-28 13:21:06
字體:
供稿:網(wǎng)友
linux 格式化擴展分區(qū)(Extended) 2015-04-14 00:40 by 瀟湘隱者, ... 閱讀, ... 評論, 收藏, 編輯

如果你在Linux系統(tǒng)中格式化磁盤時遇到如下錯誤,那么表示你正在格式化一個擴展分區(qū)。

[root@GETTestLNX06 ~]# mkfs.ext4 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: inode_size (128) * inodes_count (0) too big for a
filesystem with 0 blocks, specify higher inode_ratio (-i)
or lower inode count (-N).

clip_image001

直接格式化擴展分區(qū)是不允許的,只能格式化主分區(qū)和邏輯分區(qū)。那么那么應(yīng)該如何格式化一個擴展分區(qū)呢,我們要么刪除該擴展分區(qū),創(chuàng)建一個主分區(qū);要么在擴展分區(qū)上創(chuàng)建邏輯分區(qū),如下操作所示

1: 創(chuàng)建邏輯分區(qū)

[root@GETTestLNX06 ~]# fdisk /dev/sdb
WARNING: DOS-compatible mode is dePRecated. It's strongly recommended to
 switch off the mode (command 'c') and change display units to
 sectors (command 'u').
Command (m for help): p
Disk /dev/sdb: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd61351c9
 Device Boot Start End Blocks Id System
/dev/sdb1 1 13054 104856223+ 5 Extended
Command (m for help): n
Command action
 l logical (5 or over)
 p primary partition (1-4)
l
First cylinder (1-13054, default 1): 1
Last cylinder, +cylinders or +size{K,M,G} (1-13054, default 13054): 
Using default value 13054
Command (m for help): p
Disk /dev/sdb: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd61351c9
 Device Boot Start End Blocks Id System
/dev/sdb1 1 13054 104856223+ 5 Extended
/dev/sdb5 1 13054 104856192 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.

clip_image002

2:格式化邏輯分區(qū)

[root@GETTestLNX06 ~]# mkfs.ext4 /dev/sdb5
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
6553600 inodes, 26214048 blocks
1310702 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
800 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
 4096000, 7962624, 11239424, 20480000, 23887872
Writing inode tables: done 

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 永昌县| 泽州县| 十堰市| 镇安县| 天全县| 清远市| 营山县| 余姚市| 湘阴县| 成武县| 罗平县| 临武县| 汕尾市| 唐海县| 常宁市| 高雄县| 五河县| 嘉兴市| 鸡西市| 台前县| 周至县| 平南县| 临海市| 阜新| 陆河县| 呼和浩特市| 崇义县| 曲阳县| 渑池县| 石阡县| 上杭县| 松潘县| 洪江市| 长沙市| 灵宝市| 裕民县| 禹城市| 杭州市| 扎鲁特旗| 和田县| 灌云县|