如何从Ubuntu和Windows 7远程切换,反之亦然?
在远程工作时如何从Ubuntu和Windows 7切换(反之亦然)?
实际上,我在MBR上使用Windows加载程序(BCD),我有两个选择:
- Windows 7的
- Ubuntu 14.04 (Trusty Tahr)
如果我正在使用Windows 7并想要启动到Ubuntu,那很简单,因为我将Ubuntu设置为默认值。 所以在重启时,系统直接进入GRUB (超时设置为“0”),Ubuntu就在那里。
但是我怎么能再次回到Windows呢? 有机会吗?
键入时我想知道是否可以解决这个问题,迫使Windows加载程序转到Ubuntu并让GRUB2从不同的系统中进行选择。
可以吗?
很好,你已经解决了从Windows切换到Linux的问题。 另一个方向并不那么难:
有一个命令grub-reboot
可以满足您的需求 – 请参阅下面的详细信息:
如果要引导的系统的grub
菜单条目是“Windows”,则只需执行以下操作:
$ grub-reboot Windows
如果将硬件配置为在电源故障后启动,我认为没有理由计算机无法继续运行。
但如果没有,应该可以通过lan上唤醒(WOL)唤醒它,启动你在关机前配置的系统。 WOL使用无法在本地网络外部路由的“特殊”网络包,因此该网络中需要一个设备,如某些DSL路由器或任何计算机。
来自man 8 grub-reboot
:
GRUB-REBOOT(8) System Administration Utilities GRUB-REBOOT(8) NAME grub-reboot - set the default boot entry for GRUB, for the next boot only SYNOPSIS grub-reboot [OPTION] MENU_ENTRY DESCRIPTION Set the default boot menu entry for GRUB, for the next boot only. [ ... ] --boot-directory=DIR expect GRUB images under the directory DIR/grub instead of the /boot/grub directory MENU_ENTRY is a number, a menu item title or a menu item iden‐ tifier. Please note that menu items in submenus or sub-submenus require specifying the submenu components and then the menu item component. The titles should be separated using the greater-than character (>) with no extra spaces. Depending on your shell some characters including > may need escaping. More information about this is available in the GRUB Manual in the section about the 'default' command. [ ... ]
运行man -k grub
以获取相关命令的列表 – 例如。 grub-set-default
也可以帮到你。