Jump to content



Photo

How to select the bootable OS?


  • Please log in to reply
6 replies to this topic

#1 jebus197

jebus197

    Neowinian

  • Joined: 08-March 07

Posted 12 August 2014 - 21:22

Hi I installed XBMCUbuntu on a partition. I will only use it occasionally. However it's installed on a slightly older laptop (3 years old) which is connected via HDMI to a large screen TV which is several feet away. The lid on the laptop is always closed and as it's ona shelf under the TV its fairly innacessible and impractical to keep getting up to open the lid to select either Windows or XBMC whenever I want to boot into either. Is there therefore any Windows based software and/or any XBMCUbuntu scripts that will allow me to select which OS to boot each time I restart?

 

I can't generally see the bootup screen on my HDTV until half way through boot up of either Windows or XBMCUbuntu, so selecting manually at the grub command line isn't practical either unfortunately.




#2 Haggis

Haggis

    Neowinian Senior

  • Tech Issues Solved: 12
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 13 August 2014 - 07:30

Press Alt+F2, type gksudo gedit /etc/default/grub press Enter and enter your password.

 

You will see the following contents:
 

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

You can change the default from 0 to any number, corresponding to the entry in the Grub bootup menu (first entry is 0, second is 1, etc.)

You can change the "hidden timeout" (no menu); and also display the countdown (TIMEOUT_QUIET=false)

 

You can force the grub menu to show by commenting out the two GRUB_HIDDEN lines with a # at the beginning of the line

And set the grub menu timeout (default is 10 seconds)

Make your changes, press Ctrl-S to save and Ctrl-Q to exit.

Important: Open a terminal with Ctrl-Alt-T and type sudo update-grub to apply the changes you just made.
Reboot and you should see your timeout/default entry change.



#3 OP jebus197

jebus197

    Neowinian

  • Joined: 08-March 07

Posted 14 August 2014 - 02:36

I know you are trying dude and I really appreciate it. I mean honestly I do. But did you even read my post?



#4 Haggis

Haggis

    Neowinian Senior

  • Tech Issues Solved: 12
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 14 August 2014 - 08:01

yes i did

 

you want it to automatically boot a particular OS every time you reboot

 

To do this you need to gegt up and get the laptop out off the shelf, edit the grub line (Which you only need to do ONCE)

 

Them save it all reboot and stick it back on the shelf

 

There is no way the laptop is going to know what OS you want to boot into, it cant read minds so either you boot into one OS all the time or you select it manually

 

I fail to see what i have missed there



#5 sikhwarrior

sikhwarrior

    Neowinian

  • Joined: 13-February 10

Posted 14 August 2014 - 08:10

I am guessing you want something similar to Mac bootcamp option where from windows you can select to boot in to OS X or Windows?



#6 68k

68k

    Neowinian Senior

  • Tech Issues Solved: 4
  • Joined: 20-January 10
  • Location: Australia

Posted 14 August 2014 - 08:44

I am guessing you want something similar to Mac bootcamp option where from windows you can select to boot in to OS X or Windows?

That's what I understood. The trouble seems to be that GRUB will only display on a primary monitor (not clone over VGA/HDMI). A closed laptop lid is the primary monitor in this case. Perhaps there's a BIOS setting to change this?



#7 Haggis

Haggis

    Neowinian Senior

  • Tech Issues Solved: 12
  • Joined: 13-June 07
  • Location: Near Stirling, Scotland
  • OS: Debian 7
  • Phone: Samsung Galaxy S3 LTE (i9305)

Posted 15 August 2014 - 11:49

Have a look at this

 

you can make grub boot to another default only once then revert back at all other boots

 

https://www.gnu.org/...e_002donly.html