help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot find /etc/default/grub to steer grub-mkconfig - #2


From: k2011gen
Subject: Re: cannot find /etc/default/grub to steer grub-mkconfig - #2
Date: Mon, 10 Jan 2011 09:23:06 -0500


> > After my earlier message pasted below I created a grub file under 
> > /usr/local/etc/default/grub with only this in it
> >
> > GRUB_TIMEOUT="-1"
> > GRUB_DISABLE_LINUX_UUID="true"
> >
> > I presume perhaps erroneously that the above statement is the way 
> > to get kernel arguments in the form of root=/dev/sdx
> >
> >
> > The timout had effect in the grub.cfg file next made by 
> > grub-mkconfig and I changed it several times to be sure. 
> > The second line however seems to have no effect, the kernel 
> > arguments are still root=UUID...
>
> Could you post the complete grub.cfg that grub-mkconfig generated?
> 
> -- 
> Jordan Uggla (Jordan_U on irc.freenode.net)



Thanks for responding, I've now joined the list now because I realize 
that a learning curve is going go be involved here :-)))

I don't remember when this file was made, the last several dozen
attempts all involved only grub-mkimage & grub-setup as I raced 
past this issue.

The file is pasted below. It shows a timeout 5000 as that's the 
number I last used to see if my own created default file 

/usr/local/etc/default/grub

was being read-in. The resulting grub.cfg is for training, the one 
in actual use is below it.







#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/local/sbin/grub-mkconfig using templates
# from /usr/local/etc/grub.d and settings from /usr/local/etc/default/grub
#

### BEGIN /usr/local/etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}
insmod reiserfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1120cb0b-5fb5-4b1c-9239-da1660c90ebd
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
set timeout=5000
### END /usr/local/etc/grub.d/00_header ###

### BEGIN /usr/local/etc/grub.d/10_linux ###
menuentry "GNU/Linux, with Linux 2.6.34.7-0.7-pae.gz" --class gnu-linux --class 
gnu --class os {
        insmod reiserfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 1120cb0b-5fb5-4b1c-9239-da1660c90ebd
        echo    Loading Linux 2.6.34.7-0.7-pae.gz ...
        linux   /boot/vmlinux-2.6.34.7-0.7-pae.gz root=/dev/sda1 ro  
}
menuentry "GNU/Linux, with Linux 2.6.34.7-0.7-pae.gz (recovery mode)" --class 
gnu-linux --class gnu --class os {
        insmod reiserfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 1120cb0b-5fb5-4b1c-9239-da1660c90ebd
        echo    Loading Linux 2.6.34.7-0.7-pae.gz ...
        linux   /boot/vmlinux-2.6.34.7-0.7-pae.gz root=/dev/sda1 ro single 
}
menuentry "GNU/Linux, with Linux 2.6.34.7-0.7-desktop.gz" --class gnu-linux 
--class gnu --class os {
        insmod reiserfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 1120cb0b-5fb5-4b1c-9239-da1660c90ebd
        echo    Loading Linux 2.6.34.7-0.7-desktop.gz ...
        linux   /boot/vmlinux-2.6.34.7-0.7-desktop.gz root=/dev/sda1 ro  
}
menuentry "GNU/Linux, with Linux 2.6.34.7-0.7-desktop.gz (recovery mode)" 
--class gnu-linux --class gnu --class os {
        insmod reiserfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 1120cb0b-5fb5-4b1c-9239-da1660c90ebd
        echo    Loading Linux 2.6.34.7-0.7-desktop.gz ...
        linux   /boot/vmlinux-2.6.34.7-0.7-desktop.gz root=/dev/sda1 ro single 
}
menuentry "GNU/Linux, with Linux 2.6.34.7-0.7-desktop" --class gnu-linux 
--class gnu --class os {
        set gfxpayload=keep
        insmod reiserfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 1120cb0b-5fb5-4b1c-9239-da1660c90ebd
        echo    Loading Linux 2.6.34.7-0.7-desktop ...
        linux   /boot/vmlinuz-2.6.34.7-0.7-desktop 
root=UUID=1120cb0b-5fb5-4b1c-9239-da1660c90ebd ro  
        echo    Loading initial ramdisk ...
        initrd  /boot/initrd-2.6.34.7-0.7-desktop
}
menuentry "GNU/Linux, with Linux 2.6.34.7-0.7-desktop (recovery mode)" --class 
gnu-linux --class gnu --class os {
        set gfxpayload=keep
        insmod reiserfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 1120cb0b-5fb5-4b1c-9239-da1660c90ebd
        echo    Loading Linux 2.6.34.7-0.7-desktop ...
        linux   /boot/vmlinuz-2.6.34.7-0.7-desktop 
root=UUID=1120cb0b-5fb5-4b1c-9239-da1660c90ebd ro single 
        echo    Loading initial ramdisk ...
        initrd  /boot/initrd-2.6.34.7-0.7-desktop
}
menuentry "GNU/Linux, with Linux 2.6.34.7-0.7-default.gz" --class gnu-linux 
--class gnu --class os {
        insmod reiserfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 1120cb0b-5fb5-4b1c-9239-da1660c90ebd
        echo    Loading Linux 2.6.34.7-0.7-default.gz ...
        linux   /boot/vmlinux-2.6.34.7-0.7-default.gz root=/dev/sda1 ro  
}
menuentry "GNU/Linux, with Linux 2.6.34.7-0.7-default.gz (recovery mode)" 
--class gnu-linux --class gnu --class os {
        insmod reiserfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 1120cb0b-5fb5-4b1c-9239-da1660c90ebd
        echo    Loading Linux 2.6.34.7-0.7-default.gz ...
        linux   /boot/vmlinux-2.6.34.7-0.7-default.gz root=/dev/sda1 ro single 
}
### END /usr/local/etc/grub.d/10_linux ###

### BEGIN /usr/local/etc/grub.d/30_os-prober ###
### END /usr/local/etc/grub.d/30_os-prober ###

### BEGIN /usr/local/etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /usr/local/etc/grub.d/40_custom ###

 






#
# Grub2 menu file:  DISK-1 = 0, PART-1 = 1  !!!!!!!!
# Standard path is /boot/grub/grub.cfg
# Custom protected path vfat (hd0,6)/boot/user/grub.boo
#
####     K I S S !    no graphics,    no MM!       #####
#
set default=0    # default is first entry (starts with 0)
set timeout=1200 # autoboot in ... seconds (-1 for none)
set menu_color_normal=white/magenta
set menu_color_highlight=red/white

# this used to work, no longer does
#menuentry "All linux systs: visitor login & password "visit", enter "startx" {
#}

menuentry "Suse-11.3           reiser  part-1" {
        linux   (hd0,1)/boot/vmlinuz root=/dev/sda1  
        initrd  (hd0,1)/boot/initrd
}

menuentry "Windows-7           ntfs    part-2" {
        set root=(hd0,2)
        chainloader (hd0,2)+1
}

menuentry "Windows-XP          fat32   part-3" {
        set root=(hd0,3)
        chainloader (hd0,3)+1
}


menuentry "Debian              reiser  part-9" {
        linux   (hd0,9)/boot/vmlinuz root=/dev/sda9 ro  
        initrd  (hd0,9)/boot/initrd
}






reply via email to

[Prev in Thread] Current Thread [Next in Thread]