LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Grub menu stalls at the selection of slackware (http://www.linuxquestions.org/questions/slackware-14/grub-menu-stalls-at-the-selection-of-slackware-4175459849/)

puru 04-28-2013 04:05 AM

Grub menu stalls at the selection of slackware
 
I have multiple OS on my Dell N5050 and booting using GRUB. When in installed slackware, i skipped the LILO part and added slackware entry to existing GRUB. Below is the GRUB conf.

### BEGIN /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
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root f8d7e7fb-5b9f-4960-b0e6-3c5dc16a9642
if loadfont /boot/grub/unifont.pf2 ; then
set gfxmode=1024x768x16
load_video
insmod gfxterm
fi
terminal_input gfxterm
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root f8d7e7fb-5b9f-4960-b0e6-3c5dc16a9642
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_vectorlinux_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root f8d7e7fb-5b9f-4960-b0e6-3c5dc16a9642
insmod jpeg
if background_image /etc/bootsplash/themes/VL-Clipse/images/silent-1024x768.jpg ; then
set color_normal=white/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_vectorlinux_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "VectorLinux GNU/Linux, Linux 3.0.8" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root f8d7e7fb-5b9f-4960-b0e6-3c5dc16a9642
linux16 /boot/vmlinuz-3.0.8 root=/dev/sda8 ro splash=silent vga=791
initrd16 /boot/initrd
}
menuentry "VectorLinux GNU/Linux, Linux 3.0.8 (TUI)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set=root f8d7e7fb-5b9f-4960-b0e6-3c5dc16a9642
linux16 /boot/vmlinuz-3.0.8 root=/dev/sda8 ro splash=silent vga=791 2
initrd16 /boot/initrd
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda2)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root AC64229C642268F2
chainloader +1
}
menuentry "Ubuntu 12.04.2 LTS (12.04) (on /dev/sda7)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root d99901bc-09c3-4d42-a408-7be4df113ccd
linux16 /boot/vmlinuz-3.2.0-40-generic-pae root=/dev/sda7 splash=silent vga=791
initrd16 /boot/initrd.img-3.2.0-40-generic-pae
}
menuentry "Ubuntu 12.04.2 LTS (12.04) (on /dev/sda7-TUI)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root d99901bc-09c3-4d42-a408-7be4df113ccd
linux16 /boot/vmlinuz-3.2.0-40-generic-pae root=/dev/sda7 2 vga=normal
initrd16 /boot/initrd.img-3.2.0-39-generic-pae
}

menuentry "Slackware 14.4 (on /dev/sda9)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos9)'
search --no-floppy --fs-uuid --set=root 8294952e-7d28-499b-8e08-7ce7b928aac9
linux /boot/vmlinuz root=/dev/sda9 ro vga = 773
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /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 /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Although all the OSes boot properly, sometimes (especially when i reboot or select the OS too quickly) it freezes on slackware selection and doesnot show "decompressing linux..." I need to hard reset to start the system.

I want to know why this happens and what is workaround for it.

Is the grub conf ok or do i need to rectify it?

Thanks in anticipation of the priceless help.

kikinovak 04-28-2013 10:42 AM

No offense, man. But your post could serve as an eloquent explanation why Slackware still sticks with LILO.

hakan56 04-28-2013 02:33 PM

It seems that vga=791 works for the other distributions, I would try that.

Sorry, I misunderstood...I thought it was only Slackware that "freezed", disregard this..

/Håkan ...who also is a grub2 user :)

ReaperX7 04-28-2013 04:59 PM

I've used Grub2 with Slackware without any issues. LILO is used only because it's simpler to setup and use than Grub2 and uses less dependencies. Other than that eLILO, LILO, Grub-legacy, Grub2, and syslinux all work fine to boot your system.


All times are GMT -5. The time now is 12:16 PM.