3. 删除老硬盘分区(hdc1,hdc2,hdc5,hdc6)
Command (m for help): d
Partition number (1-6): 6
4. 保存修改信息
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
5. 检查保存情况,直到所有老分区都删除
[root@web root]# fdisk -l /dev/hdc
Disk /dev/hdc: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc2 3922 9964 48540397+ f Win95 Ext'd (LBA)
/dev/hdc5 3922 7840 31479336 7 HPFS/NTFS
6. 重新创建硬盘分区
[root@web root]# fdisk -l /dev/hdc
Disk /dev/hdc: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): d
No partition is defined yet!
Command (m for help): n
Command action
e extended
p primary partition (1-4)
7. 选择主分区(?)
p
8. 选择硬盘分区号(hdc1中的1)
Partition number (1-4): 1
9. 选择硬盘分区的第一柱面(从第2个开始,从1开始不安全(?))
First cylinder (1-9964, default 1): 2
10. 选择硬盘分区结束柱面
Last cylinder or +size or +sizeM or +sizeK (2-9964, default 9964): 5000
11. 保存修改信息
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
12. 创建hdc2
[root@web root]# fdisk /dev/hdc
The number of cylinders for this disk is set to 9964.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (1-9964, default 1): 5001
Last cylinder or +size or +sizeM or +sizeK (5001-9964, default 9964):
Using default value 9964
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
