手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

一个命令删除Ubuntu的grub

[日期:2010-08-08] 来源:Linux社区  作者:touchsola [字体:大 中 小]

安装完Ubuntu后系统就用grub接管了Windows7的启动选项,但哪天不想用Ubuntu了,除了用wubi安装能够吃后悔药外,用Windows7的安装盘修复只需要一个命令,一眨眼的功夫就能正常用Windows7单启动了。

无论Ubuntu分区是否已经删除,开机出现grub>字符无法启动系统,或者Ubuntu还呆在它的ext4分区中,直接用Windows7光盘启动系统,然后照一下步骤:

1、用Windows7光盘启动系统后会让你选择语言,默认的或者自己随便选一下后按下一步;
2、在下一个界面会提示安装Windows,此时选择左下角的修复计算机;



3、等待系统找到Windows7系统后按下一步;
4、选择最后一个“Command Prompt”;



5、在弹出的命令行对话框中输入“bootrec.exe[空格]/fixmbr",按下回车后就已经删除了grub,很快。。

退出光盘重启计算机后系统就已经自动进入Windows7了

bootrec.exe 的其他参数:
* /FixMbr. Re-writes the master boot record (MBR) of the system partition to start Windows Vista. This won’t overwrite the existing partition table.
* /FixBoot. Writes a boot sector onto the system partition to start Windows Vista.
* /ScanOs. Scans all disks for Windows Vista installations and displays them to you. Oddly, this didn’t work for me, even on a test system that was starting just fine.
* /RebuildBcd. Scans all disks for Windows Vista installations and prompts you to pick the ones you want to add to the BCD.

linux
相关资讯       Ubuntu知识 
本文评论   查看全部评论 (1)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 1 楼
* 周建 发表于 2010/8/8 20:10:57
这个是XP年代有了的命令了!只是在Vista后就改成这样了!