Linux下使用fdisk命令将高容量SD卡(SDHC)格成两个分(3)

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
e
Partition number (1-4): 2
First cylinder (95240-189513, default 95240):
Using default value 95240
Last cylinder or +size or +sizeM or +sizeK (95240-189513, default 189513):
Using default value 189513

Command (m for help): t
Partition number (1-5): 2
Hex code (type L to list codes): f
Changed system type of partition 2 to f (W95 Ext'd (LBA))

#以上为创建扩展分区,类型为W95 Ext'd (LBA)

Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
First cylinder (95240-189513, default 95240):
Using default value 95240
Last cylinder or +size or +sizeM or +sizeK (95240-189513, default 189513):
Using default value 189513

Command (m for help): t
Partition number (1-5): 5
Hex code (type L to list codes): c
Changed system type of partition 5 to c (W95 FAT32 (LBA))

#以上为创建逻辑驱动器在扩展分区上,类型为W95 FAT32 (LBA)

Command (m for help): p

Disk /dev/sdb: 4075 MB, 4075290624 bytes
7 heads, 6 sectors/track, 189513 cylinders
Units = cylinders of 42 * 512 = 21504 bytes
Disk identifier: 0x00000000

Device Boot      Start         End      Blocks   Id System
/dev/sdb1               1       95239     2000016    c W95 FAT32 (LBA)
/dev/sdb2           95240      189513     1979754    f W95 Ext'd (LBA)
/dev/sdb5           95240      189513     1979751    c W95 FAT32 (LBA)

Command (m for help): w   #保存
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
The kernel still uses the old table.
The new table will be used at the next reboot.

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/64b7cb45a3b98d5e701048aed9fcaf2f.html