我已经尝试了一些方法。这是我的 /etc/default 屏幕。这行不通。它仍然会将我带到 grub 屏幕并停留在那里,直到选择了操作系统。我不想出现那个屏幕。我想直接进入 Windows 7。任何信息都很好。
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda3)"
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# 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'
#GRUB_GFXMODE=640x480
# 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_LINUX_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
答案1
要隐藏 GRUB OS 选择屏幕,请修改:
GRUB_TIMEOUT=0
保存并关闭运行后:
sudo update-grub
到永久删除 GRUB使用 Windows 7 可启动 DVD,如下所示:
- 当您看到安装屏幕时,选择
Repair your computer
选项 - 选择
Command Prompt
选项 - 写下这些命令
bootrec /fixmbr
:bootrec /fixboot
- 重启你的电脑
您将无法启动 Linux。如果您想恢复 Linux,则必须使用 Linux Live CD 来修复 GRUB!