Yet another GRUB issue after installing Sabayon 5.3 [Solved]

Installer Issues via Installer -- Not for global upgrades or upgrading individual packages -- ONLY ISSUES WITH INSTALLATION OF THE OS -- Can't get Sabayon installed, than post here, otherwise use correct forums

Moderator: Moderators

Yet another GRUB issue after installing Sabayon 5.3 [Solved]

Postby wingnux » Wed Jun 23, 2010 6:56

I've just installed Sabayon 5.3 on my primary sata disk, I used to run ubuntu on this partition setup: 15gb ext4 root / 150gb ext4 home / 512mb swap.

On Sabayon I used the same partition, just reformatting the root one, install went fine but when I boot from my hard drive I get a "no such device=d39457bb-bafb-410a-9ff4-0f9c7d02ab58" error and a "grub rescue>" prompt and I just don't know what to do.

As you can see, I don't have any disk drive with such UUID:

sabayon grub # blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="e1d76a60-9f80-4ed3-a13e-7aa4d0591836" TYPE="ext4"
/dev/sda5: UUID="29c9bae1-e43f-45d2-93b5-fd59c266bde8" TYPE="swap"
/dev/sda6: UUID="295ecd0e-8f54-43c4-9f56-53a0b4ca74bb" TYPE="ext4"
/dev/sdb1: LABEL="MP3" UUID="54174DAD1EC023BB" TYPE="ntfs"



Here's the contents of my grub.cfg, read from the live cd:

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

### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="${saved_entry}"
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 ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 657c09e9-3883-401e-bed7-3a9ab0dfc79f
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
# vga= is deprecated, grub2 handles this just fine
# making grub2 res == linux fb res
set gfxpayload=keep
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if sleep --interruptible 0 ; then
set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_distro_theme ###
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 657c09e9-3883-401e-bed7-3a9ab0dfc79f
insmod png
if background_image /boot/grub/default-splash.png ; 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_distro_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Sabayon GNU/Linux, with Linux x86-2.6.34-sabayon" --class sabayon --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 657c09e9-3883-401e-bed7-3a9ab0dfc79f
echo Loading Linux x86-2.6.34-sabayon ...
linux /boot/kernel-genkernel-x86-2.6.34-sabayon ro init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:UUID=29c9bae1-e43f-45d2-93b5-fd59c266bde8 real_resume=UUID=29c9bae1-e43f-45d2-93b5-fd59c266bde8 root=/dev/ram0 ramdisk=8192 real_root=UUID=657c09e9-3883-401e-bed7-3a9ab0dfc79f docrypt
echo Loading initial ramdisk ...
initrd /boot/initramfs-genkernel-x86-2.6.34-sabayon
}
menuentry "Sabayon GNU/Linux, with Linux x86-2.6.34-sabayon (recovery mode)" --class sabayon --class gnu-linux --class gnu --class os {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 657c09e9-3883-401e-bed7-3a9ab0dfc79f
echo Loading Linux x86-2.6.34-sabayon ...
linux /boot/kernel-genkernel-x86-2.6.34-sabayon ro single init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:UUID=29c9bae1-e43f-45d2-93b5-fd59c266bde8 real_resume=UUID=29c9bae1-e43f-45d2-93b5-fd59c266bde8 root=/dev/ram0 ramdisk=8192 real_root=UUID=657c09e9-3883-401e-bed7-3a9ab0dfc79f docrypt
echo Loading initial ramdisk ...
initrd /boot/initramfs-genkernel-x86-2.6.34-sabayon
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###


The UUID "657c09e9-3883-401e-bed7-3a9ab0dfc79f" is correct, according to the mounted partition on the live-cdL

sabayon media # ls
657c09e9-3883-401e-bed7-3a9ab0dfc79f floppy


sabayon sabayonuser # fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009fac0

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1829 14691411 83 Linux
/dev/sda2 1830 19457 141596879+ 5 Extended
/dev/sda5 1830 1891 497983+ 82 Linux swap / Solaris
/dev/sda6 1892 19457 141098863+ 83 Linux

Disk /dev/sdb: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x822585ed

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 7297 58613121 7 HPFS/NTFS




Any help? Thanks in advance!
wingnux
Baby Hen
 
Posts: 5
Joined: Wed Jun 23, 2010 4:48

Re: Yet another GRUB issue after installing Sabayon 5.3...

Postby Fitzcarraldo » Wed Jun 23, 2010 10:05

Boot up the LiveDVD, chroot into the HDD installation and try to fix Grub2 as explained in the SL wiki article HOWTO: Restore Grub2.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Yet another GRUB issue after installing Sabayon 5.3...

Postby wingnux » Wed Jun 23, 2010 10:43

It didn't work, same error :(

I get this error when following the grub2 tutorial:

(chroot) sabayon / # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found background image: default-splash.png
Found linux image: /boot/kernel-genkernel-x86-2.6.34-sabayon
Found initrd image: /boot/initramfs-genkernel-x86-2.6.34-sabayon
Cannot find list of partitions!
done


EDIT: Ok, I got it to work, I had to install grub2 to /dev/sdb instead of /dev/sda. I don't know why since /dev/sda is my sata linux disk but it works now.

Thanks for the help!
Last edited by wingnux on Wed Jun 23, 2010 11:12, edited 1 time in total.
wingnux
Baby Hen
 
Posts: 5
Joined: Wed Jun 23, 2010 4:48

Re: Yet another GRUB issue after installing Sabayon 5.3...

Postby Fitzcarraldo » Wed Jun 23, 2010 11:03

It's finding your Sabayon kernel image, so that error message could just relate to other OSs installed on your HDD(s). Despite the error message when running grub-mkconfig, does it still not boot afterwards?

You could try chrooting and editing grub.cfg manually (despite what the header of the file says). Here's mine as an example:

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

### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"
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 ext2
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 9db2f668-a682-4d6f-abc5-ed6f6c515b95
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 597e8c88-8d50-443f-ae19-f510844f5d4e
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
if sleep --interruptible 0 ; then
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_distro_theme ###
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 597e8c88-8d50-443f-ae19-f510844f5d4e
insmod png
if background_image /grub/default-splash.png ; 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_distro_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Sabayon GNU/Linux, with Linux x86_64-2.6.34-sabayon" --class sabayon --class gnu-linux --class gnu --class os {
        insmod ext2
        set root='(hd0,3)'
        search --no-floppy --fs-uuid --set 597e8c88-8d50-443f-ae19-f510844f5d4e
        echo    Loading Linux x86_64-2.6.34-sabayon ...
        linux   /kernel-genkernel-x86_64-2.6.34-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.34-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.34-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.33-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.33-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5
        echo    Loading initial ramdisk ...
        initrd  /initramfs-genkernel-x86_64-2.6.34-sabayon
}
menuentry "Sabayon GNU/Linux, with Linux x86_64-2.6.34-sabayon (recovery mode)" --class sabayon --class gnu-linux --class gnu --class os {
        insmod ext2
        set root='(hd0,3)'
        search --no-floppy --fs-uuid --set 597e8c88-8d50-443f-ae19-f510844f5d4e
        echo    Loading Linux x86_64-2.6.34-sabayon ...
        linux   /kernel-genkernel-x86_64-2.6.34-sabayon ro single BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.34-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.34-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.33-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.33-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5
        echo    Loading initial ramdisk ...
        initrd  /initramfs-genkernel-x86_64-2.6.34-sabayon
}
menuentry "Sabayon GNU/Linux, with Linux x86_64-2.6.33-sabayon" --class sabayon --class gnu-linux --class gnu --class os {
        insmod ext2
        set root='(hd0,3)'
        search --no-floppy --fs-uuid --set 597e8c88-8d50-443f-ae19-f510844f5d4e
        echo    Loading Linux x86_64-2.6.33-sabayon ...
        linux   /kernel-genkernel-x86_64-2.6.33-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.34-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.34-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.33-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.33-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5
        echo    Loading initial ramdisk ...
        initrd  /initramfs-genkernel-x86_64-2.6.33-sabayon
}
menuentry "Sabayon GNU/Linux, with Linux x86_64-2.6.33-sabayon (recovery mode)" --class sabayon --class gnu-linux --class gnu --class os {
        insmod ext2
        set root='(hd0,3)'
        search --no-floppy --fs-uuid --set 597e8c88-8d50-443f-ae19-f510844f5d4e
        echo    Loading Linux x86_64-2.6.33-sabayon ...
        linux   /kernel-genkernel-x86_64-2.6.33-sabayon ro single BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.34-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.34-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.33-sabayon ro BOOT_IMAGE=/kernel-genkernel-x86_64-2.6.33-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc splash=silent,theme:sabayon vga=791 console=tty1 quiet resume=swap:/dev/sda5 real_resume=/dev/sda5
        echo    Loading initial ramdisk ...
        initrd  /initramfs-genkernel-x86_64-2.6.33-sabayon
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
        insmod ntfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set a6863e9f863e7043
        chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" {
        insmod ntfs
        set root='(hd0,2)'
        search --no-floppy --fs-uuid --set a2243da8243d7ff9
        chainloader +1
}
### 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 ###


Code: Select all
# blkid /dev/sda*
/dev/sda1: LABEL="Win_RE" UUID="A6863E9F863E7043" TYPE="ntfs"
/dev/sda2: LABEL="Windows7" UUID="A2243DA8243D7FF9" TYPE="ntfs"
/dev/sda3: LABEL="BOOT" UUID="597e8c88-8d50-443f-ae19-f510844f5d4e" TYPE="ext4"
/dev/sda6: LABEL="ROOT" UUID="9db2f668-a682-4d6f-abc5-ed6f6c515b95" TYPE="ext4"
/dev/sda7: LABEL="HOME" UUID="f4796e21-00d7-4577-b905-a61f76507666" TYPE="ext4"
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Yet another GRUB issue after installing Sabayon 5.3...

Postby Fitzcarraldo » Wed Jun 23, 2010 14:52

wingnux wrote:EDIT: Ok, I got it to work, I had to install grub2 to /dev/sdb instead of /dev/sda. I don't know why since /dev/sda is my sata linux disk but it works now.

Thanks for the help!

You're welcome.

When you have solved your problem, please mark the thread solved. To do this click on the EDIT button in the first post and append " [Solved]" to the Subject text. Thanks. I'll do it for you this time.

:arrow: Why, and how to add "[Solved]" to your post. Please read.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Installer Issues - Calamares **Not for Package Manager Stuff**

Who is online

Users browsing this forum: No registered users and 0 guests