[Grub2] Determining root device (open)

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

Post Reply
Franchute13
Simple Hen
Posts: 68
Joined: Thu Jun 18, 2009 16:10
Location: Argentina

[Grub2] Determining root device (open)

Post by Franchute13 » Mon Aug 22, 2011 15:32

Hi

After updating my Sabayon, the thing was not well ....
every time it starts, gets to the part of
>> Determining root device ...
! Could not find the root block device in.

and leaves me standing there .... I put / dev/sda2 (where I have my linux) and follow ..

The question is, where should I change to not be put manually adding the / dev/sda2?

Greetings and thank you.

brbrbrb
Baby Hen
Posts: 14
Joined: Sun Aug 21, 2011 10:45

Re: [Grub2] Determining root device (open)

Post by brbrbrb » Mon Aug 22, 2011 16:23

Seems to be related to http://forum.sabayon.org/viewtopic.php?f=86&t=25007

Is Sabayon's root partition on a SSD? Or on a disk with GPT ( https://secure.wikimedia.org/wikipedia/ ... tion_Table )?
Did you use CoreCDX for installation?
Do you have an ASUS P7 Mainboard? Or a mainboard with Intel H55 chipset?

Franchute13
Simple Hen
Posts: 68
Joined: Thu Jun 18, 2009 16:10
Location: Argentina

Re: [Grub2] Determining root device (open)

Post by Franchute13 » Mon Aug 22, 2011 17:47

Hello

It is a notebook with 1 IDE disk partition that has Linux, windows, data

User avatar
Fitzcarraldo
Sagely Hen
Posts: 8094
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: [Grub2] Determining root device (open)

Post by Fitzcarraldo » Tue Aug 23, 2011 14:54

What does /boot/grub/grub.cfg contain?

brbrbrb
Baby Hen
Posts: 14
Joined: Sun Aug 21, 2011 10:45

Re: [Grub2] Determining root device (open)

Post by brbrbrb » Thu Sep 01, 2011 22:40


Franchute13
Simple Hen
Posts: 68
Joined: Thu Jun 18, 2009 16:10
Location: Argentina

Re: [Grub2] Determining root device (open)

Post by Franchute13 » Fri Sep 09, 2011 1:25

Fitzcarraldo wrote:What does /boot/grub/grub.cfg contain?
Srry for the time.....

in 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 {                                                                                                                          
true                                                                                                                                           
}                                                                                                                                              
                                                                                                                                               
insmod part_msdos                                                                                                                              
insmod reiserfs                                                                                                                                
set root='(hd0,msdos2)'                                                                                                                        
search --no-floppy --fs-uuid --set=root 193273c2-3bd1-48ee-8d46-119dec460424                                                                   
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
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 reiserfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 193273c2-3bd1-48ee-8d46-119dec460424
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-3.0.0-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod reiserfs
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set=root 193273c2-3bd1-48ee-8d46-119dec460424
        echo    'Loading Linux x86-3.0.0-sabayon ...'
        linux   /boot/kernel-genkernel-x86-3.0.0-sabayon ro acpi=force irqpoll 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-genkernel-x86-3.0.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86-3.0.0-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod reiserfs
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set=root 193273c2-3bd1-48ee-8d46-119dec460424
        echo    'Loading Linux x86-3.0.0-sabayon ...'
        linux   /boot/kernel-genkernel-x86-3.0.0-sabayon ro single init_opts=single acpi=force irqpoll
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-genkernel-x86-3.0.0-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.38-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod reiserfs
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set=root 193273c2-3bd1-48ee-8d46-119dec460424
        echo    'Loading Linux x86-2.6.38-sabayon ...'
        linux   /boot/kernel-genkernel-x86-2.6.38-sabayon ro acpi=force irqpoll 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-genkernel-x86-2.6.38-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.38-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod reiserfs
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set=root 193273c2-3bd1-48ee-8d46-119dec460424
        echo    'Loading Linux x86-2.6.38-sabayon ...'
        linux   /boot/kernel-genkernel-x86-2.6.38-sabayon ro single init_opts=single acpi=force irqpoll
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-genkernel-x86-2.6.38-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.35-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod reiserfs
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set=root 193273c2-3bd1-48ee-8d46-119dec460424
        echo    'Loading Linux x86-2.6.35-sabayon ...'
        linux   /boot/kernel-genkernel-x86-2.6.35-sabayon ro acpi=force irqpoll 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-genkernel-x86-2.6.35-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.35-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod reiserfs
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set=root 193273c2-3bd1-48ee-8d46-119dec460424
        echo    'Loading Linux x86-2.6.35-sabayon ...'
        linux   /boot/kernel-genkernel-x86-2.6.35-sabayon ro single init_opts=single acpi=force irqpoll
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-genkernel-x86-2.6.35-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.33-sabayon' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod reiserfs
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set=root 193273c2-3bd1-48ee-8d46-119dec460424
        echo    'Loading Linux x86-2.6.33-sabayon ...'
        linux   /boot/kernel-genkernel-x86-2.6.33-sabayon ro acpi=force irqpoll 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-genkernel-x86-2.6.33-sabayon
}
menuentry 'Sabayon GNU/Linux, with Linux x86-2.6.33-sabayon (recovery mode)' --class sabayon --class gnu-linux --class gnu --class os {
        load_video
        insmod gzio
        insmod part_msdos
        insmod reiserfs
        set root='(hd0,msdos2)'
        search --no-floppy --fs-uuid --set=root 193273c2-3bd1-48ee-8d46-119dec460424
        echo    'Loading Linux x86-2.6.33-sabayon ...'
        linux   /boot/kernel-genkernel-x86-2.6.33-sabayon ro single init_opts=single acpi=force irqpoll
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initramfs-genkernel-x86-2.6.33-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 ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 6604F41504F3E649
        drivemap -s (hd0) ${root}
        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 ###

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

Post Reply