LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > sumeet inani
User Name
Password

Notices

Rate this Entry

changing order in grub2

Posted 06-13-2011 at 04:50 AM by sumeet inani
Updated 06-13-2011 at 04:54 AM by sumeet inani

i have ubuntu 10.04(lucid)
Code:
grub-install -v
grub-install (GNU GRUB 1.98-1ubuntu5)
I tried

(1)
Code:
cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=4#Did not help ?
#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=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
sudo update-grub
(2)
Code:
[color=red]grep menuentry /boot/grub/grub.cfg[color]
menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
menuentry "Memory test (memtest86+)" {
menuentry "Memory test (memtest86+, serial console 115200)" {
menuentry "Microsoft Windows XP Professional (on /dev/sdb1)" {
sudo  grub-set-default 4;sudo update-grub
Still the default entry that boots is not windows xp !!!


Finally I copied 30_os-prober to 07_custom in same folder (/etc/grub.d) & made 30_os-prober non executable followed by 'sudo update-grub' to have xp as default boot.
Posted in Uncategorized
Views 687 Comments 1
« Prev     Main     Next »
Total Comments 1

Comments

  1. Old Comment
    Now I have debian 6.0.2 in which I played with file "30_otheros"
    Posted 11-26-2011 at 08:16 AM by sumeet inani sumeet inani is offline
 

  



All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement

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