Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-976, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-976, default 976): +1300M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (661-976, default 661):
Using default value 661
Last cylinder, +cylinders or +size{K,M,G} (661-976, default 976): +200M
Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Partition number (1-4): 3
First cylinder (763-976, default 763):
Using default value 763
Last cylinder, +cylinders or +size{K,M,G} (763-976, default 976): +300M
Command (m for help): p
Disk /dev/sdb: 2014 MB, 2014838784 bytes
64 heads, 63 sectors/track, 976 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
所用裝置 Boot Start End Blocks Id System
/dev/sdb1 1 661 1331551+ 83 Linux
/dev/sdb2 661 763 205632 83 Linux
/dev/sdb3 763 915 306432 5 延伸的
Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
l
First cylinder (764-915, default 764):
Using default value 764
Last cylinder, +cylinders or +size{K,M,G} (764-915, default 915): +150M
Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
l
First cylinder (841-915, default 841):
Using default value 841
Last cylinder, +cylinders or +size{K,M,G} (841-915, default 915): +150M
Value out of range.
Last cylinder, +cylinders or +size{K,M,G} (841-915, default 915):
Using default value 915
Command (m for help): p
Disk /dev/sdb: 2014 MB, 2014838784 bytes
64 heads, 63 sectors/track, 976 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
所用裝置 Boot Start End Blocks Id System
/dev/sdb1 1 661 1331551+ 83 Linux
/dev/sdb2 661 763 205632 83 Linux
/dev/sdb3 763 915 306432 5 延伸的
/dev/sdb5 764 840 154208 83 Linux
/dev/sdb6 841 915 150175+ 83 Linux
Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
p
Selected partition 4
First cylinder (915-976, default 915):
Using default value 915
Last cylinder, +cylinders or +size{K,M,G} (915-976, default 976):
Using default value 976
Command (m for help): p
Disk /dev/sdb: 2014 MB, 2014838784 bytes
64 heads, 63 sectors/track, 976 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
所用裝置 Boot Start End Blocks Id System
/dev/sdb1 1 661 1331551+ 83 Linux
/dev/sdb2 661 763 205632 83 Linux
/dev/sdb3 763 915 306432 5 延伸的
/dev/sdb4 915 976 122976+ 83 Linux
/dev/sdb5 764 840 154208 83 Linux
/dev/sdb6 841 915 150175+ 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
2 則留言:
# mkfs.vfat /dev/sdb1
# mkfs.ext3 /dev/sdb2
# mkfs.ext3 /dev/sdb4
# mkfs.ext3 /dev/sdb5
# mkfs.ext3 /dev/sdb6
割完之後
再把第一個刪掉
d
1
n
p
+20M (一開始shift 20M)
以防止寫入sdb1時把uboot, uImage and uramdisk覆蓋掉
w
張貼留言