I'm using the master/slave pins on the back of the hard drive in conjunction with a couple DPDT switches to "set" the OS before starting the computer. So each hard drive can be set Master or Slave from the front of the computer BEFORE turning the computer on.
Be sure not to flip the switches while the computer is running... could be a bad thing :D
Remove these ads by
Signing Up





































Visit Our Store »
Go Pro Today »




Ted sez...
I tried with a boot floppy once that just had a copy of GRUB with the opposite boot order to the copy on the hard drive, so disk in = Windows, disk out = Linux, but couldn't make it actually boot from the floppy.
Here
You might have seen it before.
The final step was to take an assembly language MBR boot loader program and modify it to read the state of the tilt switch
Disassembling a boot loader and writing in a routine to poll hardware through the COM port (which I don't think I even have) in assembly language? Yecch. I may be crazy but I'm not that crazy- my love for assembly language stops at writing trivial demonstration programs on an ARM, thank you. The idea of hand coding CISC gives me the shivers. You're welcome to try it out if you want, here are the docos for 80x86 instruction set :)