LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-05-2003, 03:14 AM   #1
bbusse
LQ Newbie
 
Registered: Mar 2003
Location: Omaha, NE
Posts: 3

Rep: Reputation: 0
Question 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?



System specs:
AMD Athlon XP 1700+
2 WD 40gb 7200 drives (one for linux)
256mb pc2700 DDR RAM
WindowsXP Pro/Mandrake 9 dual boot.
 
Old 03-05-2003, 06:19 AM   #2
Silent Bob
Member
 
Registered: Feb 2003
Location: Ireland
Distribution: Debian
Posts: 56

Rep: Reputation: 15
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
 
Old 03-05-2003, 01:51 PM   #3
bbusse
LQ Newbie
 
Registered: Mar 2003
Location: Omaha, NE
Posts: 3

Original Poster
Rep: Reputation: 0
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
------------------------------------------------------------

Last edited by bbusse; 03-05-2003 at 01:56 PM.
 
Old 03-05-2003, 03:53 PM   #4
Silent Bob
Member
 
Registered: Feb 2003
Location: Ireland
Distribution: Debian
Posts: 56

Rep: Reputation: 15
Quote:
Originally posted by bbusse
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!!!!
Glad to be of help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux under Windows - to use USB devices, not affect / reboot Windows, etc? pianoplayer88key General 2 12-01-2005 07:17 PM
reboot when "reboot" command not responding? neocookie Linux - General 1 08-30-2005 04:59 AM
Anyone know a command to remotely reboot a Windows box? xwil Linux - Software 6 04-20-2005 11:57 AM
urpmi shell command and cheap place to buy mandrake 10 power pack ronss Mandriva 5 11-05-2004 07:30 AM
make a windows host dial-up isp from a linux shell command? Phantomas Linux - Networking 3 08-23-2003 07:09 PM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration