在 Linux 下讀取 EFI GPT 格式的硬碟分割表資訊
You install Linux on EFI-based machine, the hard disk will be converted to GPT format.The partition table information can't be get from the command 'fdisk', you should use command 'parted' instead.
root@twanubt01:~# fdisk -l /dev/sda
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 1953525167 976762583+ ee GPT
Partition 1 does not start on physical sector boundary.
root@twanubt01:~# parted /dev/sda print
Model: ATA WDC WD10EZEX-00K (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 200MB 199MB fat32 boot
2 200MB 456MB 256MB ext2
3 456MB 1000GB 1000GB lvm