Using usb to change boot partition
53 minutes ago, Master Disaster said:Why? That's convoluted.
Unplug your Windows drive, install Linux on the second drive then reconnect the Windows drive and use the bios boot menu to choose.
Or
Leave the Windows drive connected, install Linux on the second drive and GRUB will detect Windows and add it to the boot menu so you can choose at boot time.
IIRC some use to do tilt switches/buttons/tags to boot automatically to the OS of choice "seamlessly". No worries. Some people want external buttons (See gamers, sims, etc
).
I think it may be possible with a batch file. But I'm no programmer.
Can(?) be done but is extremely dangerous, as losing the USB will lose your boot!
https://wiki.archlinux.org/index.php/GRUB/Tips_and_tricks#EFI
Much better to have a batch file check for USB plugged in, check for file (say "boot to Linux.txt") and if it finds it, boot to linux, if no usb and no file (say a homework USB instead) boot to Windows.
You can do scripting in Grub... again can be very dangerous!
Ask in the Linux/Github Grub community I guess. ![]()
I just use dual boot, and press "select windows" or "select Linux". If you wish... an easier, and similar option, may be to "hide Grub unless esc/shift" pressed. See the above links for how to change the Grub bootloader to ONLY show if you press on the keyboard.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now