You are not logged in.

#1 2009-06-22 22:42:02

s3kt0r
Member
Registered: 2009-01-20
Posts: 208

[Solved] Grub not selecting default option

cat /boot/grub/menu.lst

# Config file for GRUB - The GNU GRand Unified Bootloader
# /boot/grub/menu.lst

# DEVICE NAME CONVERSIONS 
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,1)
#  /dev/sda3       (hd0,2)
#

#  FRAMEBUFFER RESOLUTION SETTINGS
#     +-------------------------------------------------+
#          | 640x480    800x600    1024x768   1280x1024
#      ----+--------------------------------------------
#      256 | 0x301=769  0x303=771  0x305=773   0x307=775
#      32K | 0x310=784  0x313=787  0x316=790   0x319=793
#      64K | 0x311=785  0x314=788  0x317=791   0x31A=794
#      16M | 0x312=786  0x315=789  0x318=792   0x31B=795
#     +-------------------------------------------------+
#  for more details and different resolutions see
#  http://wiki.archlinux.org/index.php/GRUB#Framebuffer_Resolution 

# general configuration:
timeout   5
default   3
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

# (0) Arch Linux
title  Arch Linux 2.6.29-3
root   (hd0,1)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/e4f3fc7d-f7c3-4ca1-8eb8-76bde4fca5d9 ro vga=9
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,1)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/e4f3fc7d-f7c3-4ca1-8eb8-76bde4fca5d9 ro
initrd /boot/kernel26-fallback.img

# (2) Windows
#title Windows
#rootnoverify (hd0,0)
#makeactive
#chainloader +1

# (3) Arch 2.6.30-custom
title Arch 2.6.30-custom-intelmod
root (hd0,1)
kernel /boot/vmlinuz26-custom root=/dev/disk/by-uuid/e4f3fc7d-f7c3-4ca1-8eb8-76bde4fca5d9 ro
initrd /boot/kernel26-custom.img

Well, I want option 3 to be default when grub loads, and set that in 'default' option to 3, it should work right? It isn't. It always goes to 2.6.29. There's something i don't really understand the meaning of "implicitly numbered from 0 in order of appearance.". Does this mean that 0 is the default option (always?). grub is 0.97-15. I guess that's it. Let me know if something else is needed to work this out.

p.s. yeah I forgot, I'm using nano to edit the file, should I use vim? (i remember that sudoers file has to be edited in vim, not sure for what reason).

edit: entry (2) was commented. Would someone just point me to a good eye doctor?

Last edited by s3kt0r (2009-06-23 00:41:52)


box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle

Offline

#2 2009-06-22 23:18:37

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: [Solved] Grub not selecting default option

You're going to kick yourself...

your (2) is commented out, so you don't actually have a fourth entry (entry 3).  Grub therefore defaults to 0.

wrt Vim, you're supposed to use the visudo command to edit the sudoers file, which I think uses the EDITOR variable or something like that...  menu.lst has no such restrictions, you can edit it however you want.

Offline

#3 2009-06-23 00:39:33

s3kt0r
Member
Registered: 2009-01-20
Posts: 208

Re: [Solved] Grub not selecting default option

I feel so embarressed. Although I thought I didn't matter. Thanks Trent.


box1: Arch (linux-3.17-rc5)
box2: Gentoo (linux-3.17-rc5)
wm: subtle

Offline

Board footer

Powered by FluxBB