二、
前边63扇区安装grub,后边的硬盘空间全部只划分一个分区,
fdisk -u -C100 -S63 -H16 hd.img
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x0d508796.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c').
Command (m for help): c <=================
DOS Compatibility flag is not set
Command (m for help): n <=================
Command action
e extended
p primary partition (1-4)
p <=================
Partition number (1-4): 1 <=================
First sector (1-100799, default 1): 63 <=================
Last sector, +sectors or +size{K,M,G} (63-100799, default 100799): <=================回车
Using default value 100799
Command (m for help): w <=================
The partition table has been altered!