LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   grub2: error: no such partition (http://www.linuxquestions.org/questions/fedora-35/grub2-error-no-such-partition-4175419994/)

aongusa 08-02-2012 10:59 AM

grub2: error: no such partition
 
I am trying to dual boot Solaris from grub2. The primary disk is booting Fedora 17 ok and showing the solaris partition labelled "SOLARISBOOT" as sdb1. However an entry similar to a chainloaded windows entry with the partition referred to as hd1,1 comes up with the above error.

Any ideas?

Thanks in advance

yancek 08-02-2012 08:25 PM

Go to the link below and download and run the bootinfoscript after reading the directions. Post it here if you can't figure it out:

http://sourceforge.net/projects/bootinfoscript/

aongusa 08-03-2012 05:13 AM

Hi Yancek,

Thank you for your prompt response. The output is below. As far as I can gather my secondary disk address of hd1,1 should work. What do you think?

Regards,

Tony (aongusa)

Boot Info Script 0.61 [1 April 2012]


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 2048
of the same hard drive for core.img. core.img is at this location and
looks in partition 99 for .
=> Grub Legacy0.95 is installed in the MBR of /dev/sdb and looks at sector
24242 of the same hard drive for the stage2 file. A stage2 file is at
this location on /dev/sdb. Stage2 looks on partition #2 for
/boot/grub/menu.lst..

sda1: __________________________________________________________________________

File system: BIOS Boot partition
Boot sector type: Grub2's core.img
Boot sector info:

sda2: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub2/grub.cfg

sda3: __________________________________________________________________________

File system: LVM2_member
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________________________________

File system: vfat
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (vhar BLKID core_img Error_Log Log Log1
PT sda1 sda2 sda3 sdb1 Tmp_Log Trash
BootProgress_BG_xpm[] = {lf"640 480 14 1",lf" htc
#507085",lf".htc #698CA3",lf"+htc #FDFDFD",lf") is
installed in the boot sector of sdb1 and looks at
sector 4102 of the same hard drive for the stage2
file. A stage2 file is at this location on /dev/sdb.
Stage2 looks on partition #116 for . No errors found
in the Boot Parameter Block.
Operating System:
Boot files: /grub/menu.lst /boot/grub/menu.lst

sdb2: __________________________________________________________________________

File system:
Boot sector type: Grub Legacy
Boot sector info: Grub Legacy (v0.95) is installed in the boot sector
of sdb2 and looks at sector 24242 of the same hard
drive for the stage2 file. A stage2 file is at this
location on /dev/sdb. Stage2 looks on partition #2
for /boot/grub/menu.lst.
Mounting failed: mount: unknown filesystem type ''

vg_compaq1-lv_swap': ___________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''

vg_compaq1-lv_root': ___________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders, total 78165360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 1 78,165,359 78,165,359 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 4,095 2,048 BIOS Boot partition
/dev/sda2 4,096 1,028,095 1,024,000 Data partition (Windows/Linux)
/dev/sda3 1,028,096 78,163,967 77,135,872 Logical Volume Manager (LVM) partition (Linux)

Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 40.1 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders, total 78242976 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 * 2,016 24,191 22,176 be Solaris boot
/dev/sdb2 24,192 78,242,975 78,218,784 bf Solaris


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/mapper/vg_compaq1-lv_root 83c9d878-b3ee-4e84-8b8b-2261c0c18cd1 ext4 _Fedora-17-i686-
/dev/mapper/vg_compaq1-lv_swap b991b096-4f67-48c5-b11f-45b53f66fbcb swap
/dev/sda2 88654d84-7b21-4552-9937-787fc0b41348 ext4
/dev/sda3 LsTQeg-EGAZ-t1wE-PWK4-tbGe-MWHb-92L14c LVM2_member
/dev/sdb1 vfat SOLARISBOOT
/dev/sdb5 ufs
/dev/sdb8 ufs
/dev/sdb9 ufs

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
control
vg_compaq1-lv_root
vg_compaq1-lv_swap

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/mapper/vg_compaq1-lv_root / ext4 (rw,relatime,data=ordered)
/dev/sda2 /boot ext4 (rw,relatime,data=ordered)


============================= sda2/grub2/grub.cfg: =============================

--------------------------------------------------------------------------------
#
# 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 ###
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_gpt
insmod lvm
insmod ext2
set root='lvm/vg_compaq1-lv_root'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvm/vg_compaq1-lv_root' 83c9d878-b3ee-4e84-8b8b-2261c0c18cd1
else
search --no-floppy --fs-uuid --set=root 83c9d878-b3ee-4e84-8b8b-2261c0c18cd1
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_IE
insmod gettext
fi
terminal_output gfxterm
set timeout=30
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora Linux' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-83c9d878-b3ee-4e84-8b8b-2261c0c18cd1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 88654d84-7b21-4552-9937-787fc0b41348
else
search --no-floppy --fs-uuid --set=root 88654d84-7b21-4552-9937-787fc0b41348
fi
echo 'Loading Linux 3.4.4-5.fc17.i686 ...'
linux /vmlinuz-3.4.4-5.fc17.i686 root=/dev/mapper/vg_compaq1-lv_root ro rd.lvm.lv=vg_compaq1/lv_root rd.md=0 rd.dm=0 SYSFONT=True KEYTABLE=uk rd.luks=0 LANG=en_US.UTF-8 rd.lvm.lv=vg_compaq1/lv_swap rhgb quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.4.4-5.fc17.i686.img
}
submenu 'Advanced options for Fedora Linux' $menuentry_id_option 'gnulinux-advanced-83c9d878-b3ee-4e84-8b8b-2261c0c18cd1' {
menuentry 'Fedora Linux, with Linux 3.4.4-5.fc17.i686' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.4-5.fc17.i686-advanced-83c9d878-b3ee-4e84-8b8b-2261c0c18cd1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 88654d84-7b21-4552-9937-787fc0b41348
else
search --no-floppy --fs-uuid --set=root 88654d84-7b21-4552-9937-787fc0b41348
fi
echo 'Loading Linux 3.4.4-5.fc17.i686 ...'
linux /vmlinuz-3.4.4-5.fc17.i686 root=/dev/mapper/vg_compaq1-lv_root ro rd.lvm.lv=vg_compaq1/lv_root rd.md=0 rd.dm=0 SYSFONT=True KEYTABLE=uk rd.luks=0 LANG=en_US.UTF-8 rd.lvm.lv=vg_compaq1/lv_swap rhgb quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.4.4-5.fc17.i686.img
}
menuentry 'Fedora Linux, with Linux 3.4.4-5.fc17.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.4-5.fc17.i686-recovery-83c9d878-b3ee-4e84-8b8b-2261c0c18cd1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 88654d84-7b21-4552-9937-787fc0b41348
else
search --no-floppy --fs-uuid --set=root 88654d84-7b21-4552-9937-787fc0b41348
fi
echo 'Loading Linux 3.4.4-5.fc17.i686 ...'
linux /vmlinuz-3.4.4-5.fc17.i686 root=/dev/mapper/vg_compaq1-lv_root ro single rd.lvm.lv=vg_compaq1/lv_root rd.md=0 rd.dm=0 SYSFONT=True KEYTABLE=uk rd.luks=0 LANG=en_US.UTF-8 rd.lvm.lv=vg_compaq1/lv_swap rhgb quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.4.4-5.fc17.i686.img
}
menuentry 'Fedora Linux, with Linux 3.4.4-3.fc17.i686' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.4-3.fc17.i686-advanced-83c9d878-b3ee-4e84-8b8b-2261c0c18cd1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 88654d84-7b21-4552-9937-787fc0b41348
else
search --no-floppy --fs-uuid --set=root 88654d84-7b21-4552-9937-787fc0b41348
fi
echo 'Loading Linux 3.4.4-3.fc17.i686 ...'
linux /vmlinuz-3.4.4-3.fc17.i686 root=/dev/mapper/vg_compaq1-lv_root ro rd.lvm.lv=vg_compaq1/lv_root rd.md=0 rd.dm=0 SYSFONT=True KEYTABLE=uk rd.luks=0 LANG=en_US.UTF-8 rd.lvm.lv=vg_compaq1/lv_swap rhgb quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.4.4-3.fc17.i686.img
}
menuentry 'Fedora Linux, with Linux 3.4.4-3.fc17.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.4-3.fc17.i686-recovery-83c9d878-b3ee-4e84-8b8b-2261c0c18cd1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 88654d84-7b21-4552-9937-787fc0b41348
else
search --no-floppy --fs-uuid --set=root 88654d84-7b21-4552-9937-787fc0b41348
fi
echo 'Loading Linux 3.4.4-3.fc17.i686 ...'
linux /vmlinuz-3.4.4-3.fc17.i686 root=/dev/mapper/vg_compaq1-lv_root ro single rd.lvm.lv=vg_compaq1/lv_root rd.md=0 rd.dm=0 SYSFONT=True KEYTABLE=uk rd.luks=0 LANG=en_US.UTF-8 rd.lvm.lv=vg_compaq1/lv_swap rhgb quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.4.4-3.fc17.i686.img
}
menuentry 'Fedora Linux, with Linux 3.4.0-1.fc17.i686' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.0-1.fc17.i686-advanced-83c9d878-b3ee-4e84-8b8b-2261c0c18cd1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 88654d84-7b21-4552-9937-787fc0b41348
else
search --no-floppy --fs-uuid --set=root 88654d84-7b21-4552-9937-787fc0b41348
fi
echo 'Loading Linux 3.4.0-1.fc17.i686 ...'
linux /vmlinuz-3.4.0-1.fc17.i686 root=/dev/mapper/vg_compaq1-lv_root ro rd.lvm.lv=vg_compaq1/lv_root rd.md=0 rd.dm=0 SYSFONT=True KEYTABLE=uk rd.luks=0 LANG=en_US.UTF-8 rd.lvm.lv=vg_compaq1/lv_swap rhgb quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.4.0-1.fc17.i686.img
}
menuentry 'Fedora Linux, with Linux 3.4.0-1.fc17.i686 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.4.0-1.fc17.i686-recovery-83c9d878-b3ee-4e84-8b8b-2261c0c18cd1' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 --hint='hd0,gpt2' 88654d84-7b21-4552-9937-787fc0b41348
else
search --no-floppy --fs-uuid --set=root 88654d84-7b21-4552-9937-787fc0b41348
fi
echo 'Loading Linux 3.4.0-1.fc17.i686 ...'
linux /vmlinuz-3.4.0-1.fc17.i686 root=/dev/mapper/vg_compaq1-lv_root ro single rd.lvm.lv=vg_compaq1/lv_root rd.md=0 rd.dm=0 SYSFONT=True KEYTABLE=uk rd.luks=0 LANG=en_US.UTF-8 rd.lvm.lv=vg_compaq1/lv_swap rhgb quiet
echo 'Loading initial ramdisk ...'
initrd /initramfs-3.4.0-1.fc17.i686.img
}
}

### 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 ###
### 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 "Solaris" {
insmod chain
set root=(hd1,1)
chainloader (hd1,1)+1
}
### 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 ###
--------------------------------------------------------------------------------

=================== sda2: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

0.016160011 = 0.017351680 grub2/grub.cfg 1
0.076465607 = 0.082104320 initramfs-3.4.0-1.fc17.i686.img 3
0.099732399 = 0.107086848 initramfs-3.4.4-3.fc17.i686.img 2
0.121232033 = 0.130171904 initramfs-3.4.4-5.fc17.i686.img 1
0.052850723 = 0.056748032 vmlinuz-3.4.0-1.fc17.i686 2
0.080202103 = 0.086116352 vmlinuz-3.4.4-3.fc17.i686 2
0.103639603 = 0.111282176 vmlinuz-3.4.4-5.fc17.i686 2

============================= sdb1/grub/menu.lst: ==============================

--------------------------------------------------------------------------------
#pragma ident "@(#)menu.lst 1.1 05/09/01 SMI"
#
# default menu entry to boot
default 0
#
# menu timeout in second before default OS is booted
# set to -1 to wait for user input
timeout 10
#
# To enable grub serial console to ttya uncomment the following lines
# and comment out the splashimage line below
# WARNING: don't enable grub serial console when BIOS console serial
# redirection is active!!!
# serial --unit=0 --speed=9600
# terminal serial
#
# Uncomment the following line to enable GRUB splashimage on console
splashimage /boot/grub/splash.xpm.gz
#
# To chainload another OS
#
# title Another OS
# root (hd<disk no>,<partition no>)
# chainloader +1
#
# To chainload a Solaris release not based on grub
#
# title Solaris 9
# root (hd<disk no>,<partition no>)
# chainloader +1
# makeactive
#
# To load a Solaris instance based on grub
#
# title Solaris <version>
# root (hd<disk no>,<partition no>,x) --x = Solaris root slice
# kernel /platform/i86pc/multiboot
# module /platform/i86pc/boot_archive
#
# To override Solaris boot args (see kernel(1M)), console device and
# properties set via eeprom(1M) edit the "kernel" line to:
#
# kernel /platform/i86pc/multiboot <boot-args> -B prop1=val1,prop2=val2,...
#
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris 10 11/06 s10x_u3wos_10 X86
root (hd0,1,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
#---------------------END BOOTADM--------------------
--------------------------------------------------------------------------------

=========================== sdb1/boot/grub/menu.lst: ===========================

--------------------------------------------------------------------------------
default 0
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris 10 11/06 s10x_u3wos_10 X86
root (hd1,1,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
#---------------------END BOOTADM--------------------
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris failsafe
root (hd1,1,a)
kernel /boot/multiboot kernel/unix -s
module /boot/x86.miniroot-safe
#---------------------END BOOTADM--------------------
--------------------------------------------------------------------------------

=================== sdb1: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

?? = ?? boot/grub/menu.lst 1
?? = ?? boot/grub/stage2 4
?? = ?? grub/menu.lst 1
?? = ?? grub/stage2 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on vg_compaq1-lv_swap'


Unknown BootLoader on vg_compaq1-lv_root'



=============================== StdErr Messages: ===============================

One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_compaq1-lv_swap': No such file or directory
hexdump: stdin: Bad file descriptor
hexdump: /dev/mapper/vg_compaq1-lv_swap': No such file or directory
hexdump: /dev/mapper/vg_compaq1-lv_swap': Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/vg_compaq1-lv_root': No such file or directory
hexdump: stdin: Bad file descriptor
hexdump: /dev/mapper/vg_compaq1-lv_root': No such file or directory
hexdump: /dev/mapper/vg_compaq1-lv_root': Bad file descriptor
mdadm: No arrays found in config file or automatically

yancek 08-03-2012 11:12 PM

I've never used Solaris so I'm not sure what would work. All of the 'set root' entries in my grub.cfg have single quotes.

Quote:

set root='(/dev/sda,msdos1)'
Don't really see anything else to point out?

aongusa 08-04-2012 06:03 AM

I used set root=(hd1) and got Solaris failsafe going ok. From here is for a Solaris forum.


All times are GMT -5. The time now is 04:33 AM.