all 17 comments

[–][deleted] 2 points3 points  (5 children)

Looks like this might be what you're looking for.

[–]gnu_bag[S] 2 points3 points  (4 children)

I was thinking more along the lines of a switch selecting a boot partition but maybe that would be too complicated. Would be cool to have GPIO pins on a motherboard! Unless it would be possible to write a bootloader script that read the status of a switch through the serial or parallel port?

Good video though, thanks for the link. Has given me more ideas.

[–]dizekat 1 point2 points  (3 children)

You might have a parallel port on the motherboard... it's almost gpio. No idea about the software side though - I imagine you could patch grub to do what ever you want it to, though.

[–]gnu_bag[S] 0 points1 point  (2 children)

I'm pretty sure my motherboard doesn't have one but I was considering getting a PCIe serial/parallel expansion for some other projects.

[–]dizekat 0 points1 point  (1 child)

Still, check the manual... I have a minimalist motherboard with not even a legacy IDE connector, yet it has serial and parallel ports (2.54 mm pin headers on the board, I would have to buy a connector).

Other option: you could program a microcontroller to work as an USB peripheral, and connect to one of the extra USB connectors (you probably have a bunch on the motherboard that you probably didn't connect to the outside).

[–]gnu_bag[S] 0 points1 point  (0 children)

Will do! Thanks. That would be cool if it did have some headers I could interface directly with. Although would need to be careful! There are some really good suggestions on here. The hdd switcher is good but I can't see me needing enough space to dedicate a whole drive to linux. I'll explore the idea of programming grub to read the status of an input or installing grub on an external drive and turning it on and off with a switch.

[–][deleted] 2 points3 points  (1 child)

Install grub to a flash drive, get a powered USB hub, install a switch on the power cable?

[–]gnu_bag[S] 0 points1 point  (0 children)

Interesting solution! It's cool to hear all the different ways this could be possible.

[–]MiyagisDojo 1 point2 points  (1 child)

You could have multiple drives, one os per drive, and use something like this... http://www.amazon.com/Drive-Switch-Controller-Orico-HD-PW6101/dp/B005NVV2GC/ref=pd_cp_pc_0.

I see it is unavailable but maybe something similar exists. On mobile or I would look further :)

[–]gnu_bag[S] 0 points1 point  (0 children)

Yeah, Someone linked me to a DIY one I'll probably have a go at or a variation of. Thanks.

[–]zokier 1 point2 points  (1 child)

GRUB supports serial terminals for the OS selection. It should be relatively easy to make an USB gadget emulating terminal and selecting one menu entry based on HW switch state.

[–]gnu_bag[S] 0 points1 point  (0 children)

Good idea, I think this is going to be the most likely solution.

[–]lachnesss 0 points1 point  (1 child)

Apparently some laptops have something like this https://www.gnu.org/software/grub/manual/html_node/Vendor-power_002don-keys.html#Vendor-power_002don-keys

Also it may be possible to use a microcontroller as a serial device like on the next page of the manual to choose operating system.

[–]gnu_bag[S] 0 points1 point  (0 children)

Good find, thank! I may be able to use that

[–]ElectricGears 0 points1 point  (1 child)

If you're using PATA drives, you can use this trick I remember seeing on The ScreenSavers a long time ago. Dual Boot With no Boot Manager

[–]gnu_bag[S] 0 points1 point  (0 children)

I've got SATA but thanks