如何完全删除Ubuntu / Grub并将其替换为Windows 7引导程序?

我使用acpi=offnolapic成功安装了Ubuntu。 当我启动到已安装的操作系统时,屏幕显示的是几个多色条(这一定是我的第10,000次安装尝试。)

我决定通过简单地删除分区并将其重新分区为空白驱动器来摆脱Ubuntu。 这导致启动时出错。

 error: unknown filesystem. grub rescue> 

我重新安装了Ubuntu,所以我可以让Grub再次工作并启动进入Windows 7,但我想要grub和Ubuntu一路走好。

我正在运行MSI GT683DX

  • IntelCore i7-2670QM
  • NVIDIA GTX 570m / 1.5 GDDR5
  • 750GB硬盘7200转
  • 12GB DDR3内存

我还多次运行Windows启动修复工具。 我无法访问我的完整Ubuntu安装(虽然我可以通过实时USB访问终端,但我更愿意在Windows中解决这个问题)。

我试着运行sudo apt-get install boot-info-script但是我得到了

 $ sudo apt-get install boot-info-script Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package boot-info-script 

 $ sudo fdisk -l Disk /dev/sda: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x9401091d Device Boot Start End Blocks Id System /dev/sda1 2048 23207935 11602944 27 Hidden NTFS WinRE /dev/sda2 * 23207936 23412735 102400 27 Hidden NTFS WinRE /dev/sda3 23412736 888453119 432520192 7 HPFS/NTFS/exFAT /dev/sda4 1449523198 1465147391 7812097 5 Extended Partition 4 does not start on physical sector boundary. /dev/sda5 1449523200 1465147391 7812096 83 Linux Disk /dev/sdb: 16.0 GB, 16008609792 bytes 255 heads, 63 sectors/track, 1946 cylinders, total 31266816 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: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 * 32 31266815 15633392 c W95 FAT32 (LBA) 

分区4是276gb的未分配空间。 sda5显然是ubuntu安装。 我没有使用交换空间分区,因为我只安装了ubuntu所以我可以启动到Windows。

sda1是我相信的恢复。

使用风险自负! 与mbr混淆可能导致硬盘损坏。 在开始之前备份您的数据。

  1. 在光盘驱动器中引导Windows Vista或Windows 7安装光盘。
  2. 出现提示时按键。
  3. 选择语言,时间,货币,键盘或输入法,然后单击“下一步”。
  4. 单击修复计算机。
  5. 单击要修复的操作系统,然后单击“下一步”。
  6. 在“系统恢复选项”对话框中,单击“命令提示符”。

如果您成功生成了cmd,请运行以下命令:

 1. bcdedit /export C:\BCD_Backup 2. c: (use the letter of your DVD drive) 3. cd boot 4. attrib bcd -s -h -r 5. ren c:\boot\bcd bcd.old 6. bootrec /RebuildBcd