我们有一个临时的要求,有几台运行Ubuntu 9.10的小型PC,在主电源不是很可靠的环境中,全天候运行。 这些机器是在一个偏远的位置,很难去。
我得到的问题是,当权力去,它往往在约30秒的时间内两次失败。
Grub被设置为,如果在启动过程中出现故障,则在下次电源启动时,grub将在grub启动选项屏幕上停止。 有人需要连接一个键盘,然后按回车键才能启动。 我一直在通过grub手册,我无法find如何改变这一点。
我如何设置grub总是select默认选项,不pipe最后一次启动时发生了什么?
提前致谢! 🙂
在与grub-legacy的debian下,你可以使用grub-reboot
# grub-reboot 2 Searching for GRUB installation directory ... found: /boot/grub Probing devices to guess BIOS drives. This may take a long time. GNU GRUB version 0.97 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ] grub> savedefault --once --default=2 grub> quit Do you want to reboot now? [y/N]