Jef*_* F. 16 windows-7 grub ubuntu
我在电脑上做了很多远程工作,我的家用电脑有 2 个操作系统:Ubuntu 和 Windows 7。我希望能够偶尔切换到 Windows,但这不可能不失去以后重新启动到 Ubuntu 的能力。
基本上我希望能够启动一次到 Windows 然后在下次重新启动时回到 Ubuntu,有什么办法可以做到这一点?
编辑:我目前正在使用 EXT4,我不想恢复到 EXT3。
Tim*_*Tim 12
从 Ubuntu 你可以调用grub-reboot
$ grub-reboot --help
Usage: /usr/sbin/grub-reboot [OPTION] entry
Set the default boot entry for GRUB, for the next boot only.
-h, --help print this message and exit
-v, --version print the version information and exit
--root-directory=DIR expect GRUB images under the directory DIR
instead of the root directory
ENTRY is a number or a menu item title.
Report bugs to <bug-grub@gnu.org>.
$ grub-reboot 12
Run Code Online (Sandbox Code Playgroud)
在下次引导时引导到 Grub 选项 12,之后它将恢复为默认值。
第一个条目将为 0。然而,使用名称可能更安全,因为当您更新内核时,grub 菜单列表偶尔会添加新项目。
| 归档时间: |
|
| 查看次数: |
5730 次 |
| 最近记录: |