[SOLVED] Salix and Grub2

You have a problem with Salix? Post here and we'll do what we can to help.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Salix and Grub2

Post by Shador »

Did you update your grub.cfg (as I said update-grub or whatever) before trying to boot Salix? Is the initrd loaded by the bootloader? Can you post your grub.cfg?
Image
fran
Posts: 18
Joined: 21. Jun 2012, 17:15

Re: Salix and Grub2

Post by fran »

Shador wrote:Did you update your grub.cfg (as I said update-grub or whatever) before trying to boot Salix? I
I did it via Grub Customizer, that I've in main OS. Anyway I made an upgrade via terminal, too.
Shador wrote:Is the initrd loaded by the bootloader?
I can see Slackware input on the list I have when PC boot, offering OSs available. I don't know if this is expected response or if I misinterpreted the question
Shador wrote:Can you post your grub.cfg?

Code: Select all

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  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 recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set becc3759-5b33-494f-b1ad-42cfda035866
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set becc3759-5b33-494f-b1ad-42cfda035866
set locale_dir=($root)/boot/grub/locale
set lang=it
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=7
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set becc3759-5b33-494f-b1ad-42cfda035866
insmod png
if background_image /boot/grub/linuxmint.png ; then
  set color_normal=white/black
  set color_highlight=white/light-gray
else
  set menu_color_normal=white/black
  set menu_color_highlight=white/light-gray
fi
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux_proxy ###
menuentry 'Linux Mint 10, 2.6.35-30-generic (/dev/sda1)' --class linuxmint --class gnu-linux --class gnu --class os {
	recordfail
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set becc3759-5b33-494f-b1ad-42cfda035866
	linux	/boot/vmlinuz-2.6.35-30-generic root=UUID=becc3759-5b33-494f-b1ad-42cfda035866 ro   
	initrd	/boot/initrd.img-2.6.35-30-generic
}
menuentry 'Linux Mint 10, 2.6.35-30-generic (/dev/sda1) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os {
	recordfail
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set becc3759-5b33-494f-b1ad-42cfda035866
	echo	'Loading Linux 2.6.35-30-generic ...'
	linux	/boot/vmlinuz-2.6.35-30-generic root=UUID=becc3759-5b33-494f-b1ad-42cfda035866 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-30-generic
}
### END /etc/grub.d/10_linux_proxy ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

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

### BEGIN /etc/grub.d/20_memtest86+_proxy ###
### END /etc/grub.d/20_memtest86+_proxy ###

### BEGIN /etc/grub.d/30_os-prober_proxy ###
menuentry "LinuxMint GNU/Linux, con Linux 3.2.0-2-486 (on /dev/sdb1)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set 3cd8bf6d-d5be-40db-983a-17fdb08a6416
	linux /boot/vmlinuz-3.2.0-2-486 root=UUID=3cd8bf6d-d5be-40db-983a-17fdb08a6416 ro quiet
	initrd /boot/initrd.img-3.2.0-2-486
}
menuentry "LinuxMint GNU/Linux, con Linux 3.2.0-2-486 (modalità ripristino) (on /dev/sdb1)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set 3cd8bf6d-d5be-40db-983a-17fdb08a6416
	linux /boot/vmlinuz-3.2.0-2-486 root=UUID=3cd8bf6d-d5be-40db-983a-17fdb08a6416 ro single
	initrd /boot/initrd.img-3.2.0-2-486
}
menuentry "Ubuntu, with Linux 3.2.0-24-generic (on /dev/sdb3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos3)'
	search --no-floppy --fs-uuid --set 2c9c1cd6-c1c6-4e8c-bd6c-649abc43d422
	linux /boot/vmlinuz-3.2.0-24-generic root=UUID=2c9c1cd6-c1c6-4e8c-bd6c-649abc43d422 ro quiet splash $vt_handoff
	initrd /boot/initrd.img-3.2.0-24-generic
}
menuentry "Ubuntu, with Linux 3.2.0-24-generic (recovery mode) (on /dev/sdb3)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos3)'
	search --no-floppy --fs-uuid --set 2c9c1cd6-c1c6-4e8c-bd6c-649abc43d422
	linux /boot/vmlinuz-3.2.0-24-generic root=UUID=2c9c1cd6-c1c6-4e8c-bd6c-649abc43d422 ro recovery nomodeset
	initrd /boot/initrd.img-3.2.0-24-generic
}
menuentry "Chakra Linux, with Standard-Kernel (on /dev/sdb9)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos9)'
	search --no-floppy --fs-uuid --set add6f2db-81a4-4de4-8a06-8d23989f7c37
	linux /boot/vmlinuz-linux resume=/dev/disk/by-uuid/d4b4cca0-70d5-4811-ba7f-452295b82b3b root=/dev/disk/by-uuid/add6f2db-81a4-4de4-8a06-8d23989f7c37 ro quiet
	initrd /boot/initramfs-linux.img
}
menuentry "Chakra Linux, with Standard-Kernel (recovery mode) (on /dev/sdb9)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos9)'
	search --no-floppy --fs-uuid --set add6f2db-81a4-4de4-8a06-8d23989f7c37
	linux /boot/vmlinuz-linux resume=/dev/disk/by-uuid/d4b4cca0-70d5-4811-ba7f-452295b82b3b root=/dev/disk/by-uuid/add6f2db-81a4-4de4-8a06-8d23989f7c37 ro single
	initrd /boot/initramfs-linux-fallback.img
}
menuentry "Asturix, con Linux 3.0.0-19-generic (on /dev/sdb11)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos11)'
	search --no-floppy --fs-uuid --set c142d2e6-9b70-48bd-8822-407cae1b128c
	linux /boot/vmlinuz-3.0.0-19-generic root=UUID=c142d2e6-9b70-48bd-8822-407cae1b128c ro quiet splash vt.handoff=7
	initrd /boot/initrd.img-3.0.0-19-generic
}
menuentry "Asturix, con Linux 3.0.0-19-generic (modalità ripristino) (on /dev/sdb11)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos11)'
	search --no-floppy --fs-uuid --set c142d2e6-9b70-48bd-8822-407cae1b128c
	linux /boot/vmlinuz-3.0.0-19-generic root=UUID=c142d2e6-9b70-48bd-8822-407cae1b128c ro recovery nomodeset
	initrd /boot/initrd.img-3.0.0-19-generic
}
menuentry "openSUSE 12.1 - 3.1.10-1.9 (on /dev/sdb13)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos13)'
	search --no-floppy --fs-uuid --set 6f9ea862-bad9-4181-b182-11646190772e
	linux /boot/vmlinuz-3.1.10-1.9-default root=/dev/disk/by-label/OpenSuseGn3 resume=/dev/disk/by-id/ata-ST3500320AS_5QM2JXJD-part10 splash=silent quiet showopts
	initrd /boot/initrd-3.1.10-1.9-default
}
menuentry "Failsafe -- openSUSE 12.1 - 3.1.10-1.9 (on /dev/sdb13)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos13)'
	search --no-floppy --fs-uuid --set 6f9ea862-bad9-4181-b182-11646190772e
	linux /boot/vmlinuz-3.1.10-1.9-default root=/dev/disk/by-label/OpenSuseGn3 showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe
	initrd /boot/initrd-3.1.10-1.9-default
}
menuentry "Fuduntu 2012 (Punny Name Serious Distro) (on /dev/sdb14)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos14)'
	search --no-floppy --fs-uuid --set a0810cc8-4fbd-4a5d-9178-df2785980447
	linux /boot/vmlinuz-3.4.4-1.fu2012.i686 root=/dev/sdb14
	initrd /boot/initramfs-3.4.4-1.fu2012.i686.img
}
menuentry "Fedora release 17 (Beefy Miracle) (on /dev/sdb15)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos15)'
	search --no-floppy --fs-uuid --set 5f397138-f29a-49b5-9c3e-72c538ce9146
	linux /boot/vmlinuz-3.3.4-5.fc17.i686 root=/dev/sdb15
	initrd /boot/initramfs-3.3.4-5.fc17.i686.img
}
menuentry "Linux Mint 12 32-bit, 3.0.0-13-generic (/dev/sdb16) (on /dev/sdb16)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos16)'
	search --no-floppy --fs-uuid --set 1a4af39e-2c90-4509-a41f-5a4424f9cb6f
	linux /boot/vmlinuz-3.0.0-13-generic root=UUID=1a4af39e-2c90-4509-a41f-5a4424f9cb6f ro quiet splash vt.handoff=7
	initrd /boot/initrd.img-3.0.0-13-generic
}
menuentry "Linux Mint 12 32-bit, 3.0.0-13-generic (/dev/sdb16) -- recovery mode (on /dev/sdb16)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos16)'
	search --no-floppy --fs-uuid --set 1a4af39e-2c90-4509-a41f-5a4424f9cb6f
	linux /boot/vmlinuz-3.0.0-13-generic root=UUID=1a4af39e-2c90-4509-a41f-5a4424f9cb6f ro recovery nomodeset
	initrd /boot/initrd.img-3.0.0-13-generic
}
menuentry "Slackware Linux (Slackware 13.37.0) (on /dev/sdb17)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos17)'
	search --no-floppy --fs-uuid --set 33951f88-eb1d-421a-a13f-33aa79f7eaaf
	linux /boot/vmlinuz-huge-2.6.37.6 root=/dev/sdb17
}
menuentry "Kubuntu, con Linux 3.2.0-25-generic-pae (on /dev/sdb18)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos18)'
	search --no-floppy --fs-uuid --set 33754e7b-5217-42e3-96e4-bfa1c6deaf40
	linux /boot/vmlinuz-3.2.0-25-generic-pae root=UUID=33754e7b-5217-42e3-96e4-bfa1c6deaf40 ro quiet splash $vt_handoff
	initrd /boot/initrd.img-3.2.0-25-generic-pae
}
menuentry "Kubuntu, con Linux 3.2.0-25-generic-pae (modalità ripristino) (on /dev/sdb18)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos18)'
	search --no-floppy --fs-uuid --set 33754e7b-5217-42e3-96e4-bfa1c6deaf40
	linux /boot/vmlinuz-3.2.0-25-generic-pae root=UUID=33754e7b-5217-42e3-96e4-bfa1c6deaf40 ro recovery nomodeset
	initrd /boot/initrd.img-3.2.0-25-generic-pae
}
menuentry "Arch (on /dev/sdb19)" {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos19)'
	search --no-floppy --fs-uuid --set 4978882a-3ea4-4c37-a410-260a5e1ea609
	linux /boot/vmlinuz-linux root=/dev/sdb19
	initrd /boot/initramfs-linux.img
}
### END /etc/grub.d/30_os-prober_proxy ###

### 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 ###
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Salix and Grub2

Post by Shador »

OK, the initrd still hasn't been picked up. While the initrd name as it is now should have been fine for grub itself, it's not fine for os-prober/linux-boot-proper on which grub relies for probing third-party OS. Rename the initrd file (/boot/initrd-2.6.37.6) to 'initrd-huge-2.6.37.6'. My testing showed that this should be correctly picked up and I'm fairly certain once we get the initrd actually used by your bootloader it's going to work.

For the future use this command to generate the initrd:

Code: Select all

mkinitrd -c -k 2.6.37.6 -u -m ehci_hcd:uhci_hcd:ohci_hcd:xhci-hcd:usb-storage -w 10 -f ext4 -r /dev/sdb17  -o /boot/initrd-huge-2.6.37.6
You need to rerun that command after upgrading your kernel for example and use the new kernel version (i.e. replace 2.6.37.6 with the version of the upgraded kernel). Should you decide to change your root fs from ext4 or put your system on another partition you need to rerun that command with the necessary adaptions too.
Image
fran
Posts: 18
Joined: 21. Jun 2012, 17:15

Re: Salix and Grub2

Post by fran »

:lol: :lol: :lol: :lol: Wow. It works at the end!
Congratulations Shador. Great job.
It will be a pleasure for me to test Salix directly on my PC.
It was a pleasure for me to meet you. :D
Fran
Post Reply