enorbet |
12-06-2013 03:47 PM |
Quote:
Originally Posted by yancek
(Post 5076291)
Why would you assume that? You can manually edit grub.cfg to make changes. The reason the message at the top says not to is because no changes you make will remain if you update grub unless you put the changes in the /etc/grub.d/40_custom file. If you don't run grub-mkconfig, the changes will remain in the grub.cfg.
|
Yes, that's what I had thought, and to be honest assumed I was wrong since the changes I made over a year ago (and now very vague to me) did not succeed in remaining persistent. I will attempt this again, thank you.
Quote:
Originally Posted by yancek
(Post 5076291)
Since you haven't posted your grub.cfg file or, at least the line (337) in question, there is way for anyone to do more than guess.
You might also review the files mentioned in the grub error output or post them here.
|
Well as you might imagine with 337 plus lines it is not tiny, so I will delete as much as I think I can and still keep context, as well as line 337, and hope it isn't any kind of spamming. For ease I have put notes in BOLD, so anyone who wishes can just scroll to line 337.
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
#-#-#
#-NOTE - I deleted this section for brevity as it should be the most basic and correct, superfluous here
#-#-#
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'openSUSE 12.2' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-71809429-d5b3-4036-916f-297cb5b278a2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 --hint='hd0,msdos8' 71809429-d5b3-4036-916f-297cb5b278a2
else
search --no-floppy --fs-uuid --set=root 71809429-d5b3-4036-916f-297cb5b278a2
fi
echo 'Loading Linux 3.7.2new ...'
linux /boot/vmlinuz-3.7.2new root=UUID=71809429-d5b3-4036-916f-297cb5b278a2 video=1280x1024 resume=/dev/disk/by-id/ata-ST31000528AS_9VP1EHSQ-part3 splash=silent quiet showopts
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.7.2new
}
submenu 'Advanced options for openSUSE 12.2' $menuentry_id_option 'gnulinux-advanced-71809429-d5b3-4036-916f-297cb5b278a2' {
menuentry 'openSUSE 12.2, with Linux 3.7.2new' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.7.2new-advanced-71809429-d5b3-4036-916f-297cb5b278a2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 --hint='hd0,msdos8' 71809429-d5b3-4036-916f-297cb5b278a2
else
search --no-floppy --fs-uuid --set=root 71809429-d5b3-4036-916f-297cb5b278a2
fi
echo 'Loading Linux 3.7.2new ...'
linux /boot/vmlinuz-3.7.2new root=UUID=71809429-d5b3-4036-916f-297cb5b278a2 video=1280x1024 resume=/dev/disk/by-id/ata-ST31000528AS_9VP1EHSQ-part3 splash=silent quiet showopts
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.7.2new
}
menuentry 'openSUSE 12.2, with Linux 3.7.2new (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.7.2new-recovery-71809429-d5b3-4036-916f-297cb5b278a2' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 --hint='hd0,msdos8' 71809429-d5b3-4036-916f-297cb5b278a2
else
search --no-floppy --fs-uuid --set=root 71809429-d5b3-4036-916f-297cb5b278a2
fi
echo 'Loading Linux 3.7.2new ...'
linux /boot/vmlinuz-3.7.2new root=UUID=71809429-d5b3-4036-916f-297cb5b278a2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.7.2new
}
menuentry 'openSUSE 12.2, with Linux 3.4.63-2.44-desktop' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.63-2.44-desktop-advanced-71809429-d5b3-4036-916f-297cb5b278a2' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 --hint='hd0,msdos8' 71809429-d5b3-4036-916f-297cb5b278a2
else
search --no-floppy --fs-uuid --set=root 71809429-d5b3-4036-916f-297cb5b278a2
fi
echo 'Loading Linux 3.4.63-2.44-desktop ...'
linux /boot/vmlinuz-3.4.63-2.44-desktop root=UUID=71809429-d5b3-4036-916f-297cb5b278a2 video=1280x1024 resume=/dev/disk/by-id/ata-ST31000528AS_9VP1EHSQ-part3 splash=silent quiet showopts
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.4.63-2.44-desktop
}
menuentry 'openSUSE 12.2, with Linux 3.4.63-2.44-desktop (recovery mode)' --class opensuse --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.63-2.44-desktop-recovery-71809429-d5b3-4036-916f-297cb5b278a2' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos8 --hint-efi=hd1,msdos8 --hint-baremetal=ahci1,msdos8 --hint='hd0,msdos8' 71809429-d5b3-4036-916f-297cb5b278a2
else
search --no-floppy --fs-uuid --set=root 71809429-d5b3-4036-916f-297cb5b278a2
fi
echo 'Loading Linux 3.4.63-2.44-desktop ...'
linux /boot/vmlinuz-3.4.63-2.44-desktop root=UUID=71809429-d5b3-4036-916f-297cb5b278a2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-3.4.63-2.44-desktop
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-4505-3E99' {
insmod part_msdos
insmod fat
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 4505-3E99
else
search --no-floppy --fs-uuid --set=root 4505-3E99
fi
chainloader +1
}
menuentry 'Microsoft Windows XP Professional (on /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-chain-6A380E7D380E4911' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 6A380E7D380E4911
else
search --no-floppy --fs-uuid --set=root 6A380E7D380E4911
fi
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry 'Ubuntu 13.04 (13.04)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-d02dacdd-9676-4a25-b7aa-8079aed70fb5' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 d02dacdd-9676-4a25-b7aa-8079aed70fb5
else
search --no-floppy --fs-uuid --set=root d02dacdd-9676-4a25-b7aa-8079aed70fb5
fi
linux /boot/vmlinuz-3.8.0-33-lowlatency root=/dev/sda8 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.8.0-33-lowlatency
}
submenu 'Advanced options for Ubuntu 13.04 (13.04)' $menuentry_id_option 'osprober-gnulinux-advanced-d02dacdd-9676-4a25-b7aa-8079aed70fb5' {
menuentry 'Ubuntu'\\'' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '\\''gnulinux-simple-d02dacdd-9676-4a25-b7aa-8079aed70fb5 (on /dev/sda8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.8.0-33-lowlatency--d02dacdd-9676-4a25-b7aa-8079aed70fb5' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 d02dacdd-9676-4a25-b7aa-8079aed70fb5
else
search --no-floppy --fs-uuid --set=root d02dacdd-9676-4a25-b7aa-8079aed70fb5
fi
linux /boot/vmlinuz-3.8.0-33-lowlatency root=/dev/sda8 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.8.0-33-lowlatency
}
menuentry 'Ubuntu, with Linux 3.8.0-33-lowlatency'\\'' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '\\''gnulinux-3.8.0-33-lowlatency-advanced-d02dacdd-9676-4a25-b7aa-8079aed70fb5 (on /dev/sda8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.8.0-33-lowlatency--d02dacdd-9676-4a25-b7aa-8079aed70fb5' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 d02dacdd-9676-4a25-b7aa-8079aed70fb5
else
search --no-floppy --fs-uuid --set=root d02dacdd-9676-4a25-b7aa-8079aed70fb5
fi
linux /boot/vmlinuz-3.8.0-33-lowlatency root=/dev/sda8 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.8.0-33-lowlatency
}
menuentry 'Ubuntu, with Linux 3.8.0-33-lowlatency (recovery mode)'\\'' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '\\''gnulinux-3.8.0-33-lowlatency-recovery-d02dacdd-9676-4a25-b7aa-8079aed70fb5 (on /dev/sda8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.8.0-33-lowlatency--d02dacdd-9676-4a25-b7aa-8079aed70fb5' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 d02dacdd-9676-4a25-b7aa-8079aed70fb5
else
search --no-floppy --fs-uuid --set=root d02dacdd-9676-4a25-b7aa-8079aed70fb5
fi
linux /boot/vmlinuz-3.8.0-33-lowlatency root=/dev/sda8 ro recovery nomodeset
initrd /boot/initrd.img-3.8.0-33-lowlatency
}
menuentry 'Ubuntu, with Linux 3.8.0-33-generic'\\'' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '\\''gnulinux-3.8.0-33-generic-advanced-d02dacdd-9676-4a25-b7aa-8079aed70fb5 (on /dev/sda8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.8.0-33-generic--d02dacdd-9676-4a25-b7aa-8079aed70fb5' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 d02dacdd-9676-4a25-b7aa-8079aed70fb5
else
search --no-floppy --fs-uuid --set=root d02dacdd-9676-4a25-b7aa-8079aed70fb5
fi
linux /boot/vmlinuz-3.8.0-33-generic root=/dev/sda8 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.8.0-33-generic
}
menuentry 'Ubuntu, with Linux 3.8.0-33-generic (recovery mode)'\\'' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '\\''gnulinux-3.8.0-33-generic-recovery-d02dacdd-9676-4a25-b7aa-8079aed70fb5 (on /dev/sda8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.8.0-33-generic--d02dacdd-9676-4a25-b7aa-8079aed70fb5' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 d02dacdd-9676-4a25-b7aa-8079aed70fb5
else
search --no-floppy --fs-uuid --set=root d02dacdd-9676-4a25-b7aa-8079aed70fb5
fi
linux /boot/vmlinuz-3.8.0-33-generic root=/dev/sda8 ro recovery nomodeset
initrd /boot/initrd.img-3.8.0-33-generic
}
menuentry 'Ubuntu, with Linux 3.5.0-37-lowlatency'\\'' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '\\''gnulinux-3.5.0-37-lowlatency-advanced-d02dacdd-9676-4a25-b7aa-8079aed70fb5 (on /dev/sda8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.5.0-37-lowlatency--d02dacdd-9676-4a25-b7aa-8079aed70fb5' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 d02dacdd-9676-4a25-b7aa-8079aed70fb5
else
search --no-floppy --fs-uuid --set=root d02dacdd-9676-4a25-b7aa-8079aed70fb5
fi
linux /boot/vmlinuz-3.5.0-37-lowlatency root=/dev/sda8 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.5.0-37-lowlatency
}
menuentry 'Ubuntu, with Linux 3.5.0-37-lowlatency (recovery mode)'\\'' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option '\\''gnulinux-3.5.0-37-lowlatency-recovery-d02dacdd-9676-4a25-b7aa-8079aed70fb5 (on /dev/sda8)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.5.0-37-lowlatency--d02dacdd-9676-4a25-b7aa-8079aed70fb5' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 d02dacdd-9676-4a25-b7aa-8079aed70fb5
else
search --no-floppy --fs-uuid --set=root d02dacdd-9676-4a25-b7aa-8079aed70fb5
fi
linux /boot/vmlinuz-3.5.0-37-lowlatency root=/dev/sda8 ro recovery nomodeset
initrd /boot/initrd.img-3.5.0-37-lowlatency
}
}
menuentry 'Slackware Linux (Slackware 14.0)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-c6dbab74-939e-413d-861e-b918e96ac3df' {
insmod part_msdos
insmod ext2
set root='hd0,msdos9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 c6dbab74-939e-413d-861e-b918e96ac3df
else
search --no-floppy --fs-uuid --set=root c6dbab74-939e-413d-861e-b918e96ac3df
fi
linux /boot/vmlinuz-custom-3.12 root=/dev/sda9 ro append = "video=640x480 vga = normal
}
submenu 'Advanced options for Slackware Linux (Slackware 14.0)' $menuentry_id_option 'osprober-gnulinux-advanced-c6dbab74-939e-413d-861e-b918e96ac3df' {
menuentry 'Slack13.12 (on /dev/sda9)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-custom-3.12--c6dbab74-939e-413d-861e-b918e96ac3df' {
insmod part_msdos
insmod ext2
set root='hd0,msdos9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos9 --hint-efi=hd0,msdos9 --hint-baremetal=ahci0,msdos9 c6dbab74-939e-413d-861e-b918e96ac3df
else
search --no-floppy --fs-uuid --set=root c6dbab74-939e-413d-861e-b918e96ac3df
fi
linux /boot/vmlinuz-custom-3.12 root=/dev/sda9 ro
}
}
menuentry 'Windows 7 (loader) (on /dev/sdb2)' --class windows --class os $menuentry_id_option 'osprober-chain-121EE4321EE41091' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2 --hint='hd0,msdos2' 121EE4321EE41091
else
search --no-floppy --fs-uuid --set=root 121EE4321EE41091
fi
chainloader +1
}
##-##-##-##
The line immediately preceding this comment, the lone "]" is the infamous "line 337"
##-##-##-##
### 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.
menuentry 'Windows Boot Loader' --class windows {
insmod part_msdos
insmod ntfs
set root='hd0,msdos3'
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/7Ult ###
# 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.
menuentry 'Windows Boot Loader' --class windows {
insmod part_msdos
insmod ntfs
set root='hd0,msdos3'
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/7Ult ###
### BEGIN /etc/grub.d/90_persistent ###
### END /etc/grub.d/90_persistent ###
Quote:
Originally Posted by yancek
(Post 5076291)
If the drive with Slackware on it is attached when you run grub-mkconfig, it should detect Slackware. You don't need to use it and if you don't want it in the menu, delete that menuentry. Also, where did Ubuntu and xp come from? You didn't mention those in your original post and where are they, which drive?
|
Please pay no attention to that man behind the curtain! :) I didn't mention those for brevity and focus as I am unconcerned with those other than removing them. To be clear, I want 2 main entries in my Grub menu - OpenSuse, and Win7.
Quote:
Originally Posted by yancek
(Post 5076291)
If you haven't resolved this, you might try do an online search for bootinfoscript, go to the site and read the instructions then download it to any Linux system and run it after making it executable. It is a bash script and outputs detailed information on boot files, dirves, partitions, uuids, etc.
|
I have partly resolved this by getting Win7 to boot from my 2nd disk bootloader, LilO, from Slackware. I say "partly" because I don't consider this over just because all systems boot now. I want to learn how to get Grub2 to work properly.
Truth be told, this fail has pointed up to me that I have generated considerable cruft in a system that has evolved and been added to for too long, and soon I think I need to relegate these drives to standalone boxes, and make my main box 2 or 3 clean installs.
|