|
发表于 2004-9-19 13:52:13
|
显示全部楼层
以 root 用户执行 fdisk /dev/sda
输入 p 看一下当前哪个是活动分区,假设是 /dev/sda1,像这样:
[code:1]kitty root # fdisk /dev/sda
The number of cylinders for this disk is set to 2231.
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): p
Disk /dev/sda: 18.3 GB, 18351959040 bytes
255 heads, 63 sectors/track, 2231 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 208813+ 83 Linux
/dev/sda2 27 1024 8016435 83 Linux
/dev/sda3 1025 2198 9430155 83 Linux
/dev/sda4 2199 2231 265072+ 82 Linux swap
Command (m for help):
[/code:1]
输入 a 回车
输入 1 回车
这时即取消了 /dev/sda1 的活动标志。
然后输入 a 回车
输入 3 回车
这时即设置了 /dev/sda3 的活动标志。
输入 p 回车看一下,应该变成这个样子:
[code:1]Command (m for help): a
Partition number (1-4): 1
Command (m for help): a
Partition number (1-4): 3
Command (m for help): p
Disk /dev/sda: 18.3 GB, 18351959040 bytes
255 heads, 63 sectors/track, 2231 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 26 208813+ 83 Linux
/dev/sda2 27 1024 8016435 83 Linux
/dev/sda3 * 1025 2198 9430155 83 Linux
/dev/sda4 2199 2231 265072+ 82 Linux swap
Command (m for help):
[/code:1]
确保只有一个分区有“*”即活动分区标志。
最后输入 w 回车存盘退出,重新启动系统。[/code] |
|