[ 2009/03/29 13:26 | by askwan ]
Linux早可以支持大于2T的块设备(Large Block Device),但是分区的时候却不能用常见的fdisk工具了,一定要用的话,会有下面的警告信息:
引用
[root@host2001 data]# fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 33 265041 83 Linux
/dev/sda2 34 12781 102398310 83 Linux
/dev/sda3 12782 14056 10241437+ 82 Linux swap / Solaris
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 2500.1 GB, 2500140728320 bytes
255 heads, 63 sectors/track, 303958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
上面提示fdisk工具不支持GPT,得使用另一个GNU发布的强大分区工具parted官方链接:http://www.gnu.org/software/parted/index.shtml若强制用fdisk分区,最后大于2T的部分系统会不能认出来!
而GPT,比较权威的解释是:
引用
In computer hardware, GUID Partition Table (GPT) is a standard for the layout of the partition table on a physical hard disk. It is a part of the Extensible Firmware Interface (EFI) standard proposed by Intel as a replacement for the PC BIOS, one of the few remaining parts of the original IBM PC. EFI uses GPT whereas BIOS uses a Master Boot Record (MBR)
下面的图说明了其结构:
要详细了解这家伙,这篇文章或许可以帮助你:http://developer.apple.com/technotes/tn2006/tn2166.html
关于parted的用法和信息可以参看GUN专门文档:http://www.gnu.org/software/parted/manual/parted.html就不演示了。今天正好碰到一客户遇到的这个问题,记下来给准备使用大于2T块设备的l网友一点提示。
[@more@]