19.3. Replacing Fedora with MS-DOS or legacy versions of Microsoft Windows
在 DOS 和 Windows 系统中,你可以使用 Windows fdisk
工具来创建一个新的带有 undocumented 标志的 MBR:/mbr
。这只重写 MBR 来引导主 DOS 分区。该命令类似:
fdisk /mbr
如果你需要从硬盘驱动器中删除 Linux,并且已经试图用默认的 DOS(Windows)fdisk 来这么做,你将会遇到“分区存在但又不存在”的问题。要删除非 DOS 分区的最好办法是使用一个可以识别 DOS 以外的分区的工具。
To begin, insert the Fedora CD #1 and boot your system. Once you have booted off the CD, a boot prompt appears. At the boot prompt, type: linux rescue
. This starts the rescue mode program.
You are prompted for your keyboard and language requirements. Enter these values as you would during the installation of Fedora.
Next, a screen appears telling you that the program attempts to find a Fedora install to rescue. Select Skip on this screen.
选择了「跳过」之后,将出现一个命令提示,在这里你可以访问要删除的分区。
首先,键入命令 list-harddrives
。这条命令会列出你的系统上所有被安装程序识别的硬盘驱动器,以及它们的大小(以 MB 为单位)。
Warning
请注意,只删除必要的 分区。删除其它分区可能会导致数据丢失或导致系统环境受损。
要删除分区,使用分区工具 parted
。启动 parted
,此处的 /dev/hda
是要删除的分区所在的设备:
parted /dev/hda
使用 print
命令来查看当前的分区表,从而判定要删除的分区的号码:
print
print
命令还可以显示分区的类型(如:linux-swap、ext2、ext3 等等)。了解分区类型有助于你判定是否应该删除该分区。
使用 rm
命令来删除分区。例如,要删除次要号码(minor number)为 3 的分区:
rm 3
Important
只要你按下 [Enter] 键,这些改变就会生效,因此在确定前请反复检查命令。
删除分区后,使用 print
命令来确认它已从分区表中被删除了。
一旦你已经删除了 Linux 分区,并且做完了所有必要的改变,键入 quit
来退出 parted
。
退出 parted
后,在引导提示后键入 exit
来退出救援模式并重新启动系统,而不是继续安装。系统应该自动重启。如果没有重启,你可以用 Control+Alt+Delete 来重启系统。