Last login: Wed Feb 27 13:37:04 on ttys000
localhost:~ o2$ fdisk
usage: fdisk [-ieu] [-f mbrboot] [-c cyl -h head -s sect] [-S size] [-r] [-a style] disk
-i: initialize disk with new MBR
-u: update MBR code, preserve partition table
-e: edit MBRs on disk interactively
-f: specify non-standard MBR template
-chs: specify disk geometry
-S: specify disk size
-r: read partition specs from stdin (implies -i)
-a: auto-partition with the given style
-d: dump partition table
-y: don't ask any questions
-t: test if disk is partitioned
`disk' is of the form /dev/rdisk0.
auto-partition styles:
boothfs 8Mb boot plus HFS+ root partition (default)
hfs Entire disk as one HFS+ partition
dos Entire disk as one DOS partition
raid Entire disk as one 0xAC partition
localhost:~ o2$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *128.0 GB disk0
1: Windows_NTFS Windows7 104.9 MB disk0s1
2: Apple_HFS machd 127.9 GB disk0s2
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *1.0 TB disk1
1: Windows_NTFS win7 129.9 GB disk1s1
2: Windows_NTFS DiskD 352.3 GB disk1s2
3: Apple_HFS Disk1S5 518.0 GB disk1s5
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *640.0 GB disk2
1: Windows_NTFS DiskE 640.0 GB disk2s1
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *15.5 GB disk3
1: Windows_FAT_32 老毛桃U盘 15.1 GB disk3s1
localhost:~ o