在 Linux 建立 GPT table
現在 MAC OS X 都用 GPT Table 取代傳統的 partiton table...網路上很多這些資料,廢話不說啦...重點是我想在Linxu上面做,作法如下:
sudo parted /dev/sdb
[sudo] password for user:
GNU Parted 1.8.8
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel
Warning: The existing disk label on /dev/sdb will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? Yes
New disk label type? [msdos]? gpt
(parted) mkpart
Partition name? []? boot
File system type? [ext2]? hfs+
Start? 0
End? -1
(parted) print
Model: ChipsBnk SD/MMCReader (scsi)
Disk /dev/sdb: 2008MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 2008MB 2008MB boot
(parted) q
Information: You may need to update /etc/fstab.
thomas@T17:\~/Desktop\$ sudo fdisk -l /dev/sdb
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 2008 MB, 2008023040 bytes
255 heads, 63 sectors/track, 244 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 245 1960959+ ee GPT
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 1) logical=(0, 0, 2)
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(244, 32, 44)
thomas@T17:\~/Desktop\$
convert from Thomas blog post id 494 old convert log: ./182630/tag%3E2009%2005%20linux)
@2009 @05 @linux
Comments