安装 Ubuntu 12.04 后我无法启动 Windows XP,最糟糕的是我没有 Windows XP 安装 CD。
kathy@kathy-HP-Compaq:~$ sudo fdisk -l
[sudo] password for kathy:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc51bc51b
Device Boot Start End Blocks Id System
/dev/sda1 * 63 41957999 20978968+ 7 HPFS/NTFS/exFAT
/dev/sda2 41958061 156301311 57171625+ f W95 Ext'd (LBA)
/dev/sda5 41958063 101887679 29964808+ 7 HPFS/NTFS/exFAT
/dev/sda6 154224640 156301311 1038336 82 Linux swap / Solaris
/dev/sda7 101888000 154222591 26167296 83 Linux
Partition table entries are not in disk order
Disk /dev/mapper/cryptswap1: 1063 MB, 1063256064 bytes
255 heads, 63 sectors/track, 129 cylinders, total 2076672 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x693811c2
Disk /dev/mapper/cryptswap1 doesn't contain a valid partition table
请教我如何做这些事情,因为我对计算机的了解有限,请像你教你的妹妹一样教我。
答案1
只需安装 boot-repair 并尝试恢复 mbr。在终端中输入此命令(CTRL + Alt+T)
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)
或者使用 live ubuntu cd/usb 并通过执行以下操作将等效的 MBR 安装到您的 sda 驱动器(如果一切顺利,它可以帮助您再次直接启动到 Windows):
sudo apt-get install lilo
sudo lilo -M /dev/sda mbr