Mandrake 9 - How to reboot into windows from shell command
Hey,
I've been messing with Mandrake 9.0 for about a week now, and have so far figured out everything I want to figure out, including getting VNC server to start up when the machine boots. Anyways.. I've noticed that with KDE (runlevel 5) when I logout of KDE, it takes me to the graphical login. Then if I choose Shutdown, it gives me a choice for "reboot" and then a dropdown list of choices (Linux, Windows, failsafe, etc..) If I choose windows, the machine will reboot, and completely bypass lilo.. and just start loading windows. Linux is the default option in the graphical version of LILO. So if I were to reboot my windows partition, it would reboot into linux. I need to be able to VNC into my machine and tell it to reboot into windows if I want to. just like the graphical KDE does. Catch is.. I need to be able to do this from a shell prompt. I've already got pcAnywhere for the windows side, just need a way to get BACK to it remotely if I reboot my machine. Thanks guys! I'm a quick learner. Anyone got any suggestions? :Pengy: System specs: AMD Athlon XP 1700+ 2 WD 40gb 7200 drives (one for linux) 256mb pc2700 DDR RAM WindowsXP Pro/Mandrake 9 dual boot. |
As root (or using 'sudo') run /sbin/lilo -R <windows>
where <windows> is replaced by the label of the windows stanza from /etc/lilo.conf. This command tells LILO to assume you gave it the boot option for Windows the next time you reboot (and only for the next time you reboot). Then all you need to do is reboot the machine. If you post your /etc/lilo.conf I can tell you what to replace <windows> with. Hope this helps |
Here are the contents of /etc/lilo.conf: Windows is listed at the bottom. Which part of that do I need to include in the command you gave me? Thanks!
/UPDATE: Actually, I figured it out. I just typed in: /sbin/lilo -R windows (cuz that's the image "label") THANKS GUYS!!!! ------------------------------------------------- boot=/dev/hda map=/boot/map default=linux keytable=/boot/us.klt prompt nowarn timeout=100 message=/boot/message menu-scheme=wb:bw:wb:bw ignore-table image=/boot/vmlinuz label=linux root=/dev/hdb1 initrd=/boot/initrd.img append="devfs=mount quiet" vga=788 read-only image=/boot/vmlinuz label=linux-nonfb root=/dev/hdb1 initrd=/boot/initrd.img append="devfs=mount" read-only image=/boot/vmlinuz label=failsafe root=/dev/hdb1 initrd=/boot/initrd.img append="devfs=nomount failsafe" read-only other=/dev/hda1 label=windows table=/dev/hda other=/dev/fd0 label=floppy unsafe ------------------------------------------------------------ |
Quote:
|
All times are GMT -5. The time now is 06:13 AM. |