修复 grub 的程序?

修复 grub 的程序?

我曾使用 Windows 8 和 Ubuntu 13.04 双启动,运行良好(使用 EasyBCD),我为 Ubuntu 创建了正好 20GB 的分区。一段时间后,在从未使用过 Ubuntu 后,我进入 Windows 的分区工具并删除了我的 Ubuntu 分区。它说它删除了上面的所有内容。然后我将这 20GB 添加到我的硬盘/Windows8 分区上。我还删除了 Easy BCD。一切都很顺利。那天晚上我关掉了电脑,今天早上它说

 'windows failed to start. A recent hardware or software change might be the cause'
   File:\NSTAutoNeoGrub1.mbr
   status: 0xc000000fI

我从 USB 重新安装了 Ubuntu,我的所有数据和 Windows 系统文件都在那里,但我还是无法运行 ubuntu。我认为我需要做的就是找到“windows8.exe”文件并从中启动。有人可以帮忙吗?

我的启动修复错误报告是:http://paste.ubuntu.com/6426199/ 我还尝试使用以下方法更新 grub:

- sudo update-grub, but:Generating grub.cfg ... Found linux image:   
   /boot/vmlinuz-3.11.0-13-generic Found initrd image:   
   /boot/initrd.img-3.11.0-13-generic Found linux image:   
   /boot/vmlinuz-3.11.0-12-generic Found initrd image:   
   /boot/initrd.img-3.11.0-12-generic Found memtest86+ image:   
   /boot/memtest86+.bin Found Windows 8 (loader) on /dev/sda1 Found   
   Windows 7 (loader) on /dev/sda2 Adding Aptosid   
   2010-02-keres-kde-lite-amd64-201009132215 on /dev/sda5 proc sysfs   
   none none none none udev devpts tmpfs none none none none systemd   
   gvfsd-fuse gvfsd-fuse /dev/sda2 Aptosid   
   2010-02-keres-kde-lite-amd64-201009132215 on /dev/sda5 proc sysfs   
   none none none none udev devpts tmpfs none none none none systemd   
   gvfsd-fuse gvfsd-fuse /dev/sda2 Aptosid   
   2010-02-keres-kde-lite-amd64-201009132215 on /dev/sda5 proc sysfs   
   none none none none udev devpts tmpfs none none none none systemd   
   gvfsd-fuse gvfsd-fuse /dev/sda2 Aptosid   
   2010-02-keres-kde-lite-amd64-201009132215 on /dev/sda5 proc sysfs   
   none none none none udev devpts tmpfs none none none none systemd   
   gvfsd-fuse gvfsd-fuse /dev/sda2 error: syntax error. error: Incorrect
   command. error: syntax error. Syntax error at line 296 Syntax errors 
   are detected in generated GRUB config file. Ensure that there are no 
   errors in /etc/default/grub and /etc/grub.d/* files or please file a 
   bug report with /boot/grub/grub.cfg.new file attached.done

我的 grub 文件是:

 If you change this file, run 'update-grub' afterwards to update
 /boot/grub/grub.cfg.
 For full documentation of the options in this file, see:
   info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
 Uncomment to enable BadRAM filtering, modify to suit your needs
 This works with Linux (no patch required) and with any kernel that obtains
 the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
 Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=console
 The resolution used on graphical terminal
 note that you can use only modes which your graphic card supports via VBE
 you can see them in real GRUB with the command `vbeinfo'
 Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID=true
 Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"
 Uncomment to get a beep at grub start
GRUB_INIT_TUNE="480 440 1"
   GRUB_GFXMODE=1366x768

答案1

启动 Windows 安装光盘,然后单击Repair your computer启动选项。然后选择command prompt选项。在其上运行以下命令,

bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd

相关内容