如何彻底删除 Ubuntu/Grub 并将其替换为 Windows 7 引导加载程序?

如何彻底删除 Ubuntu/Grub 并将其替换为 Windows 7 引导加载程序?

我使用acpi=off和成功安装了 Ubuntu nolapic。当我启动到已安装的操作系统时,屏幕上只显示几个彩色条(这应该是我第 10,000 次安装尝试了。)

我决定删除 Ubuntu,只需删除分区并将其重新分区为空白驱动器即可。这导致启动时出现错误。

error: unknown filesystem.
grub rescue>

我重新安装了 Ubuntu,以便可以让 Grub 再次运行并启动 Windows 7,但我希望 grub 和 Ubuntu 永远消失。

我正在运行 MSI GT683DX

  • 英特尔酷睿 i7-2670QM
  • NVIDIA GTX 570m / 1.5 GDDR5
  • 750GB 硬盘 7200 RPM
  • 12GB DDR3 RAM

我还多次运行了 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 是恢复。

答案1

使用时请自担风险!乱用 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

相关内容