Submitted by mborn on Thu, 27/01/2005 - 11:48.
( categories: Distributions )

Assalam Alikum,

I use $reboot to reboot my box and then wait for it to do this them from Grub, I choose the OS I want. My question is; Is there a possibility that I can pass my OS to which I want to reboot to the command line so it can reboot directly to the OS I want?

Thank you,

M B


Submitted by habdin on Thu, 27/01/2005 - 12:31.

Salamo 3alaikom,

I didn't get what you mean exactly. Do you mean that you want to pass the command directly from the virtual console to reboot directly to any OS you want? I don't know if that is possible since booting between different OSes is a boot loader job not an OS job. I have read the Power to bash howto. It didn't include that possibility. May be I am mistaken.

Salam.

Submitted by mborn on Thu, 27/01/2005 - 18:13.

Yes, that's what I meant.

Thank you for ur time,

M B

ShErbO's picture
Submitted by ShErbO on Fri, 28/01/2005 - 00:20.

When you (restart/cold boot/whatever), BIOS takes over. It than starts your bootloader (lilo/grub) which then lets you choose the OS. See? problem is it's the BIOS that takes control of the PC, then the bootloader !

There's no direct way to do it. You can write a win_boot.sh script which makes windows the default operating system and restarts. but then you're stuck with windows unless you manually choose linux ! (get what I mean ?? it's a closed circle)

IMO it's a nice idea, maybe someone would hack lilo to include this feature.. maybe by placing a dummy file called (boot_win), which when seen by lilo, boots to windows.

Short answer: If you're not into programming, don't think about it..


Submitted by mborn on Fri, 28/01/2005 - 03:20.

I got it Sherbo!

Thank you for ur time,

M B

Alaa's picture
Submitted by Alaa on Fri, 28/01/2005 - 10:12.

it is possible already, at least with lilo.

in MDKKDM (dunno if its in stock kdm too), if you click on reboot it gives you your lilo menu and you can choose which entry to boot to immediatly.

its a very silly features IMO.

cheers, Alaa


http://www.manalaa.net "i`m feeling for the 2nd time like alice in wonderland reading el wafd"


Submitted by POSIX on Fri, 28/01/2005 - 03:20.

assume u have 2 OS windows and linux

u do 2 scripts 1st chnage the file grub.conf and make the windows the dfult one and reboot ur pc

2nd chnage grub.conf and make linux ur defuelt on and rebot ur pc ps: when u be on windows u can use ltools to chnage the grub.conf it can be easily done may be some one can give better solution peace

Submitted by mborn on Fri, 28/01/2005 - 08:33.

Thanks, I was hoping of getting something like $reboot grub > FreeBSD (where I have this package on my box to take a look at it) anyway thanks a lot

Thank you for ur time,

M B

Submitted by mborn on Fri, 28/01/2005 - 08:43.

Assalam Alikum, I had it, it si a work around but I think it is nice! I can write two patch files one for each system with a sed command to change the default system in grub.conf. they can be initiated as a su, then after the change, reboot!!! What do you think?

PS. How may I write a patch file!? I know it begins with !#bin/sh, umm I will try....

Thank you for ur time,

M B

mhlmi's picture
Submitted by mhlmi on Mon, 31/01/2005 - 01:53.

maybe you would find this useful as you're using kde (iirc) and grub ; http://kde-look.org/content/show.php?content=12140


Submitted by mborn on Mon, 31/01/2005 - 04:42.

Assalam Alikum,

This is Great, it is just great!

Thank you for ur time,

M B

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.