用Linux Live CD比较方便
复制内容到剪贴板
代码:
#fdisk /dev/hda复制内容到剪贴板
代码:
Command (m for help): p
Device Boot Start End Blocks Id System
/dev/hda1 1 15502 7812976+ 83 Linux
/dev/hda2 15503 31004 7813008 83 Linux
/dev/hda3 31005 31063 29736 83 Linux
/dev/hda4 31064 77545 23426928 5 Extended
/dev/hda5 31064 32056 500440+ 83 Linux
/dev/hda6 32057 55308 11718976+ 83 Linux
/dev/hda7 55309 77545 11207416+ 83 Linux设置分区属性:
复制内容到剪贴板
代码:
Command (m for help): t
Partition number (1-7): 1在fdisk 命令下,有一个b选项,相当于FreeBSD的disklabel命令.
进入FreeBSD区域,进行分区:
复制内容到剪贴板
代码:
Command (m for help): b
Reading disklabel of /dev/hda1 at sector 64.
/dev/hda1 contains no disklabel.
Do you want to create a disklabel? (y/n) y
# /dev/hda1 :
type: ST506
disk:
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 77545
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
4 partitions:
# start end size fstype [fsize bsize cpg]
c: 1* 15502 15501* unused 0 0
d: 1 77545 77545 unused 0 0复制内容到剪贴板
代码:
BSD disklabel command (m for help): n
Partition (a-p): a
First cylinder (1-15502, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-15502, default 15502): +100M
BSD disklabel command (m for help): p
4 partitions:
# start end size fstype [fsize bsize cpg]
a: 1 195 195 unused 0 0
c: 1* 15502 15501* unused 0 0
d: 1 77545 77545 unused 0 0
BSD disklabel command (m for help): t
Partition (a-d): a
Hex code (type L to list codes): L
0 unused 5 4.1BSD 9 4.4LFS d boot
1 swap 6 Eighth Edition a unknown e ADOS
2 Version 6 7 4.2BSD b HPFS f HFS
3 Version 7 8 MS-DOS c ISO-9660 10 AdvFS
4 System V
Hex code (type L to list codes): 7
BSD disklabel command (m for help): p
4 partitions:
# start end size fstype [fsize bsize cpg]
a: 1 195 195 4.2BSD 0 0 0
c: 1* 15502 15501* unused 0 0
d: 1 77545 77545 unused 0 0