Can no longer boot from Sabayon installed on USB stick

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Can no longer boot from Sabayon installed on USB stick

Postby phd7 » Wed Oct 10, 2012 22:40

I installed a version of Sabayon onto a USB stick so I can use it for a couple of games. This version is from sabayon 8 before the upgrade where I had to remove the propietary drivers from AMD as the games dont work after switching to the open source driver

On sda1, I have only kernel 3.5.0 installed (sabayon 10.64bit KDE..up to date)
on a USB stick, I only have kernel 3.4.0 installed (sabayon 8 KDE 64-bit)
Upon booting , I select the entry for the USB stick. This, however, always loads sda1 as root....with kernel 3.4 running , acording to uname-a:

Code: Select all
sabayon@sabayon ~/Documents $ uname -a
Linux sabayon 3.4.0-sabayon #1 SMP Tue Jun 19 16:26:07 UTC 2012 x86_64 Intel(R) Core(TM)2 Quad CPU Q8300 @ 2.50GHz GenuineIntel GNU/Linux

sabayon@sabayon ~/Documents $ eselect kernel list
Available kernel symlink targets:
  [1]   linux-3.5.0-sabayon *


Some items like network manager and sound do not work in this setup.

When I check the partition manager after booting via the usb stick entry in grub, it shows sda 1+2 mounted and sdb not

I used to be able to load the USB stick until I messed around with UUIDs, changing one of them , as sda1 previously matched the partition on the USB stick...and also changing the grub.cfg + fstab to match.

I could try changing it back but am trying to understand what is happening first and see if there is a different solution.

--------------------------

BLKID (with irrelevant distros removed)

Code: Select all
/dev/sda1: LABEL="sabayon 10" UUID="3c35d6dc-510e-4d79-b958-7cf951fc9f49" TYPE="ext4"
/dev/sda2: LABEL="Sabayon Home" UUID="bf67cbd6-088b-4304-84bd-0b5999aa6dd6"
/dev/sda5: UUID="cc5bb819-9336-47cd-a178-d270e18ab01f" TYPE="swap"
 
/dev/sdg1: UUID="fd9a4fc5-4b26-414b-af77-e0e884f7019c" TYPE="swap"
/dev/sdg2: LABEL="sabayon 8" UUID="d8b9ec7e-0ff0-11e2-874d-8f9db29e3273" TYPE="ext4"


(The path to the USB stick partitions change to /dev/sdb1 + sdb2 when I boot via the usb entry in grub.)

Any idea what's happening here?
--------------------------
From USB stick:
fstab:

Code: Select all
# /etc/fstab
# Created by anaconda on Mon Apr  2 22:03:59 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=d8b9ec7e-0ff0-11e2-874d-8f9db29e3273 /                       ext4    defaults        1 1
#UUID=82ba0bb3-10f9-4699-a51d-d35345134162 /                       ext4    defaults        1 1
UUID=fd9a4fc5-4b26-414b-af77-e0e884f7019c swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0


------------------------------

/media/sabayon8/boot/grub/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_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
}

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

insmod part_msdos
insmod ext2
set root='hd1,msdos3'
search --no-floppy --fs-uuid --set=root d8b9ec7e-0ff0-11e2-874d-8f9db29e3273
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  load_video
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='hd1,msdos3'
  search --no-floppy --fs-uuid --set=root d8b9ec7e-0ff0-11e2-874d-8f9db29e3273
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if sleep --interruptible 0 ; then
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_distro_theme ###
insmod part_msdos
insmod ext2
set root='hd1,msdos3'
search --no-floppy --fs-uuid --set=root d8b9ec7e-0ff0-11e2-874d-8f9db29e3273
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_64-3.4.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd1,msdos3'
   search --no-floppy --fs-uuid --set=root d8b9ec7e-0ff0-11e2-874d-8f9db29e3273
   echo   'Loading Linux x86_64-3.4.0-sabayon ...'
   linux   /boot/kernel-genkernel-x86_64-3.4.0-sabayon ro  init=/linuxrc splash=silent,theme:sabayon console=tty1 quiet domdadm resume=swap:UUID=cdcf3429-8ece-4f3c-b497-143d216f430b real_resume=UUID=cdcf3429-8ece-4f3c-b497-143d216f430b root=UUID=d8b9ec7e-0ff0-11e2-874d-8f9db29e3273 docrypt
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initramfs-genkernel-x86_64-3.4.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.4.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd1,msdos3'
   search --no-floppy --fs-uuid --set=root d8b9ec7e-0ff0-11e2-874d-8f9db29e3273
   echo   'Loading Linux x86_64-3.4.0-sabayon ...'
   linux   /boot/kernel-genkernel-x86_64-3.4.0-sabayon ro single init_opts=single  init=/linuxrc splash=verbose,theme:sabayon console=tty1 quiet domdadm resume=swap:UUID=cdcf3429-8ece-4f3c-b497-143d216f430b real_resume=UUID=cdcf3429-8ece-4f3c-b497-143d216f430b root=UUID=d8b9ec7e-0ff0-11e2-874d-8f9db29e3273 docrypt
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initramfs-genkernel-x86_64-3.4.0-sabayon
}
### 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 ###

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



-----------------------------
From sda1:
fstab

Code: Select all
# /etc/fstab
# Created by anaconda on Mon Apr  2 22:03:59 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=3c35d6dc-510e-4d79-b958-7cf951fc9f49 /                       ext4    defaults        1 1
UUID=cc5bb819-9336-47cd-a178-d270e18ab01f swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
# (identifier)  (location, eg sda5)   (format, eg ext3 or ext4)      (some settings)
UUID=bf67cbd6-088b-4304-84bd-0b5999aa6dd6   /home    ext2          nodev,nosuid       0       2


----------------------------------

/boot/grub/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_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 [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1'  3c35d6dc-510e-4d79-b958-7cf951fc9f49
else
  search --no-floppy --fs-uuid --set=root 3c35d6dc-510e-4d79-b958-7cf951fc9f49
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x768
  load_video
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
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 --hint='hd0,msdos1'  3c35d6dc-510e-4d79-b958-7cf951fc9f49
else
  search --no-floppy --fs-uuid --set=root 3c35d6dc-510e-4d79-b958-7cf951fc9f49
fi
insmod png
background_image -m stretch /boot/grub/default-splash.png
if sleep --interruptible 0 ; then
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Sabayon GNU/Linux' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3c35d6dc-510e-4d79-b958-7cf951fc9f49' {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   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 --hint='hd0,msdos1'  3c35d6dc-510e-4d79-b958-7cf951fc9f49
   else
     search --no-floppy --fs-uuid --set=root 3c35d6dc-510e-4d79-b958-7cf951fc9f49
   fi
   echo   'Loading Linux x86_64-3.5.0-sabayon ...'
   linux   /boot/kernel-genkernel-x86_64-3.5.0-sabayon ro  init=/linuxrc theme:sabayon domdadm resume=swap:UUID=cdcf3429-8ece-4f3c-b497-143d216f430b real_resume=UUID=cdcf3429-8ece-4f3c-b497-143d216f430b root=UUID=3c35d6dc-510e-4d79-b958-7cf951fc9f49 docrypt radeon.modeset=1
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initramfs-genkernel-x86_64-3.5.0-sabayon
}
submenu 'Advanced options for Sabayon GNU/Linux' $menuentry_id_option 'gnulinux-advanced-3c35d6dc-510e-4d79-b958-7cf951fc9f49' {
   menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.5.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.5.0-sabayon-advanced-3c35d6dc-510e-4d79-b958-7cf951fc9f49' {
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      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 --hint='hd0,msdos1'  3c35d6dc-510e-4d79-b958-7cf951fc9f49
      else
        search --no-floppy --fs-uuid --set=root 3c35d6dc-510e-4d79-b958-7cf951fc9f49
      fi
      echo   'Loading Linux x86_64-3.5.0-sabayon ...'
      linux   /boot/kernel-genkernel-x86_64-3.5.0-sabayon ro  init=/linuxrc theme:sabayon domdadm resume=swap:UUID=cdcf3429-8ece-4f3c-b497-143d216f430b real_resume=UUID=cdcf3429-8ece-4f3c-b497-143d216f430b root=UUID=3c35d6dc-510e-4d79-b958-7cf951fc9f49 docrypt radeon.modeset=1
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initramfs-genkernel-x86_64-3.5.0-sabayon
   }
   menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.5.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-x86_64-3.5.0-sabayon-recovery-3c35d6dc-510e-4d79-b958-7cf951fc9f49' {
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      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 --hint='hd0,msdos1'  3c35d6dc-510e-4d79-b958-7cf951fc9f49
      else
        search --no-floppy --fs-uuid --set=root 3c35d6dc-510e-4d79-b958-7cf951fc9f49
      fi
      echo   'Loading Linux x86_64-3.5.0-sabayon ...'
      linux   /boot/kernel-genkernel-x86_64-3.5.0-sabayon ro single init_opts=single  init=/linuxrc theme:sabayon domdadm resume=swap:UUID=cdcf3429-8ece-4f3c-b497-143d216f430b real_resume=UUID=cdcf3429-8ece-4f3c-b497-143d216f430b root=UUID=3c35d6dc-510e-4d79-b958-7cf951fc9f49 docrypt
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initramfs-genkernel-x86_64-3.5.0-sabayon

### 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 ###
   
}
submenu 'Advanced options for Gentoo Base System release 2.1' $menuentry_id_option 'osprober-gnulinux-advanced-d8b9ec7e-0ff0-11e2-874d-8f9db29e3273' {
   menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.4.0-sabayon (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-3.4.0-sabayon--d8b9ec7e-0ff0-11e2-874d-8f9db29e3273' {
      insmod part_msdos
      insmod ext2
      set root='hd1,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  d8b9ec7e-0ff0-11e2-874d-8f9db29e3273
      else
        search --no-floppy --fs-uuid --set=root d8b9ec7e-0ff0-11e2-874d-8f9db29e3273
      fi
      linux /boot/kernel-genkernel-x86_64-3.4.0-sabayon ro init=/linuxrc splash=silent,theme:sabayon console=tty1 quiet domdadm resume=swap:UUID=cdcf3429-8ece-4f3c-b497-143d216f430b real_resume=UUID=cdcf3429-8ece-4f3c-b497-143d216f430b root=UUID=3c35d6dc-510e-4d79-b958-7cf951fc9f49 docrypt
      initrd /boot/initramfs-genkernel-x86_64-3.4.0-sabayon
   }
   menuentry 'Sabayon GNU/Linux, with Linux x86_64-3.4.0-sabayon (recovery mode) (on /dev/sdb2)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-genkernel-x86_64-3.4.0-sabayon-ro single init_opts=single init=/linuxrc splash=verbose,theme:sabayon console=tty1 quiet domdadm resume=swap:UUID=cdcf3429-8ece-4f3c-b497-143d216f430b real_resume=UUID=cdcf3429-8ece-4f3c-b497-143d216f430b root=UUID=3c35d6dc-510e-4d79-b958-7cf951fc9f49 docrypt-d8b9ec7e-0ff0-11e2-874d-8f9db29e3273' {
      insmod part_msdos
      insmod ext2
      set root='hd1,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  d8b9ec7e-0ff0-11e2-874d-8f9db29e3273
      else
        search --no-floppy --fs-uuid --set=root d8b9ec7e-0ff0-11e2-874d-8f9db29e3273
      fi
      linux /boot/kernel-genkernel-x86_64-3.4.0-sabayon ro single init_opts=single init=/linuxrc splash=verbose,theme:sabayon console=tty1 quiet domdadm resume=swap:UUID=cdcf3429-8ece-4f3c-b497-143d216f430b real_resume=UUID=cdcf3429-8ece-4f3c-b497-143d216f430b root=UUID=3c35d6dc-510e-4d79-b958-7cf951fc9f49 docrypt
      initrd /boot/initramfs-genkernel-x86_64-3.4.0-sabayon
   }
}

### 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  ${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 ###
phd7
Baby Hen
 
Posts: 18
Joined: Sun Apr 01, 2012 23:30

Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 2 guests