All of lore.kernel.org
 help / color / mirror / Atom feed
* Issues with grub.cfg
@ 2011-04-12  6:48 Harshit Jain
  2011-04-12  7:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-04-12  7:10 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 2 replies; 9+ messages in thread
From: Harshit Jain @ 2011-04-12  6:48 UTC (permalink / raw)
  To: grub-devel


[-- Attachment #1.1: Type: text/plain, Size: 805 bytes --]

Hi,
I have a desktop having 250GB internal HD and 1TB external HD. Attached is
the output of boot_info_script055.sh and grub.cfg. I have GRUB 1.99-rc1
installed on Ubuntu 10.10.
Following are the issues with my grub.cfg :-

1) GRUB shell is able to detect the label 'rpool' for booting Openindiana.
However, on selecting menuentry named 'Solaris' computer reboots without
giving any output.

2) I used 'grub-mkconfig' to create grub.cfg. In menuentry "GNU/Linux, with
Linux 2.6.35-22-generic (on /dev/sdb1)'', there is bug in line using 'linux'
command (line no. 122) where the UUID=9170712c-b76f-4363-b993-76c90d50b997
(installed on internal HD) is used instead of
UUID=67af37cd-7a2d-4472-99f9-4ecdd8f0e591 (installed on external HD).  Imho,
there is some in grub-mkconfig script.

regards,
Harshit Jain

[-- Attachment #1.2: Type: text/html, Size: 912 bytes --]

[-- Attachment #2: RESULTS1.txt --]
[-- Type: text/plain, Size: 22810 bytes --]

                Boot Info Script 0.55    dated February 15th, 2010                    

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

 => Grub 2 is installed in the MBR of /dev/sda and looks for cfsyn.
 => Grub 2 is installed in the MBR of /dev/sdb and looks for cfd.

sda1: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files/dirs:   /bootmgr /Boot/BCD /Windows/System32/winload.exe /grldr

sda2: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  According to the info in the boot sector, sda2 has 
                       122881184 sectors, but according to the info from 
                       fdisk, it has 122093999 sectors.
    Mounting failed:
Failed to read last sector (122881184): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Failed to read last sector (122881184): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

sda3: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:   

sda4: _________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info:  

sda5: _________________________________________________________________________

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

sda6: _________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu 10.10
    Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdb1: _________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Ubuntu 10.10
    Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdb2: _________________________________________________________________________

    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info:  

sdb5: _________________________________________________________________________

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

sdb6: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:   

sdb3: _________________________________________________________________________

    File system:       
    Boot sector type:  Grub
    Boot sector info:  Grub 0.97 is installed in the boot sector of sdb3 and 
                       looks at sector 125837195 of the same hard drive for 
                       the stage2 file. A stage2 file is at this location on 
                       /dev/sdb. Stage2 looks on partition #3 for 
                       /boot/grub/menu.lst.
    Mounting failed:
Failed to read last sector (122881184): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Failed to read last sector (122881184): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda2': Invalid argument
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
mount: unknown filesystem type ''

sdb4: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:   

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sda1                  63    61,432,559    61,432,497   7 HPFS/NTFS
/dev/sda2          61,432,560   183,526,559   122,094,000  bf Solaris
/dev/sda3         184,313,745   317,428,334   133,114,590   7 HPFS/NTFS
/dev/sda4         317,429,758   488,392,064   170,962,307   5 Extended
/dev/sda5         486,303,678   488,392,064     2,088,387  82 Linux swap / Solaris
/dev/sda6    *    317,429,760   399,341,567    81,911,808  83 Linux


Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 1000.2 GB, 1000204885504 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525167 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sdb1               2,048   125,837,144   125,835,097  83 Linux
/dev/sdb2         793,133,054 1,953,523,711 1,160,390,658   5 Extended
/dev/sdb5         793,133,056   797,327,359     4,194,304  82 Linux swap / Solaris
/dev/sdb6         797,329,408 1,953,523,711 1,156,194,304   7 HPFS/NTFS
/dev/sdb3    *    125,837,145   230,692,863   104,855,719  bf Solaris
/dev/sdb4         230,692,864   793,131,007   562,438,144   7 HPFS/NTFS


blkid -c /dev/null: ____________________________________________________________

Device           UUID                                   TYPE       LABEL                         

/dev/sda1        199C2D9325B6AF71                       ntfs                                     
/dev/sda2        4A54CF0B70C6EE96                       ntfs       Music                         
/dev/sda3        3BDDF4457C3C405A                       ntfs       Software                      
/dev/sda4: PTTYPE="dos" 
/dev/sda5        a5444972-2dea-4bfe-aec7-b48426994250   swap                                     
/dev/sda6        9170712c-b76f-4363-b993-76c90d50b997   ext4       Ubuntu 10.10                  
/dev/sda7        4A54CF0B70C6EE96                       ntfs       Music                         
/dev/sda: PTTYPE="dos" 
/dev/sdb1        67af37cd-7a2d-4472-99f9-4ecdd8f0e591   ext4       HD-Ubuntu                     
/dev/sdb2: PTTYPE="dos" 
/dev/sdb3: PTTYPE="dos" 
/dev/sdb4        2FC50B747BFF0872                       ntfs       HD-Storage                    
/dev/sdb5        8e716eeb-78c9-488b-a915-5e6a447c16c9   swap                                     
/dev/sdb6        4320F04C2F74781C                       ntfs       HD-Harshit                    
/dev/sdb7                                               zfs                                      
/dev/sdb: PTTYPE="dos" 
error: /dev/sdc: No medium found

============================ "mount | grep ^/dev  output: ===========================

Device           Mount_Point              Type       Options

/dev/sda6        /                        ext4       (rw,errors=remount-ro,commit=0)
/dev/sdb1        /media/HD-Ubuntu         ext4       (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb4        /media/HD-Storage        fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sdb6        /media/HD-Harshit        fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)


=========================== sda6/boot/grub/grub.cfg: ===========================

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

### BEGIN /usr/local/etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  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 load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
if loadfont /usr/local/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
set locale_dir=($root)/boot/grub/locale
set lang=en_IN
insmod gettext
set timeout=5
### END /usr/local/etc/grub.d/00_header ###

### BEGIN /usr/local/etc/grub.d/10_linux ###
menuentry 'GNU/Linux, with Linux 2.6.35-24-generic' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-24-generic ...'
	linux	/boot/vmlinuz-2.6.35-24-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro  
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-24-generic
}
menuentry 'GNU/Linux, with Linux 2.6.35-24-generic (recovery mode)' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-24-generic ...'
	linux	/boot/vmlinuz-2.6.35-24-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-24-generic
}
menuentry 'GNU/Linux, with Linux 2.6.35-22-generic' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-22-generic ...'
	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro  
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-22-generic
}
menuentry 'GNU/Linux, with Linux 2.6.35-22-generic (recovery mode)' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-22-generic ...'
	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-22-generic
}
### END /usr/local/etc/grub.d/10_linux ###

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

### BEGIN /usr/local/etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
	insmod part_msdos
	insmod ntfs
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 199C2D9325B6AF71
	chainloader +1
}
menuentry "GNU/Linux, with Linux 2.6.35-22-generic (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root 67af37cd-7a2d-4472-99f9-4ecdd8f0e591
	linux /boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro
	initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "GNU/Linux, with Linux 2.6.35-22-generic (recovery mode) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root 67af37cd-7a2d-4472-99f9-4ecdd8f0e591
	linux /boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro single
	initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "Solaris" {
      insmod zfs
      insmod part_sunpc
      search --label rpool --set=root
      if cpuid -l ; then
         ISADIR=amd64;
      else
         ISADIR=
      fi
      zfs-bootfs /ROOT/openindiana/@/ ZFS_BOOTFS
      multiboot /ROOT/openindiana/@/platform/i86pc/kernel/$ISADIR/unix /platform/i86pc/kernel/$ISADIR/unix -B $ZFS_BOOTFS,console=graphics
      module /ROOT/openindiana/@/platform/i86pc/$ISADIR/boot_archive /platform/i86pc/$ISADIR/boot_archive
}
### END /usr/local/etc/grub.d/30_os-prober ###

### BEGIN /usr/local/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 /usr/local/etc/grub.d/40_custom ###

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

=============================== sda6/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/dev/sda6       /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=a5444972-2dea-4bfe-aec7-b48426994250 none            swap    sw              0       0

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


 194.8GB: boot/grub/core.img
 165.8GB: boot/grub/grub.cfg
 167.5GB: boot/initrd.img-2.6.35-22-generic
 175.8GB: boot/initrd.img-2.6.35-24-generic
 194.8GB: boot/vmlinuz-2.6.35-22-generic
 194.8GB: boot/vmlinuz-2.6.35-24-generic
 175.8GB: initrd.img
 167.5GB: initrd.img.old
 194.8GB: vmlinuz
 194.8GB: vmlinuz.old

=========================== sdb1/boot/grub/grub.cfg: ===========================

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

### BEGIN /usr/local/etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  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 load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
if loadfont /usr/local/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
set locale_dir=($root)/boot/grub/locale
set lang=en_IN
insmod gettext
set timeout=5
### END /usr/local/etc/grub.d/00_header ###

### BEGIN /usr/local/etc/grub.d/10_linux ###
menuentry 'GNU/Linux, with Linux 2.6.35-24-generic' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-24-generic ...'
	linux	/boot/vmlinuz-2.6.35-24-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro  
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-24-generic
}
menuentry 'GNU/Linux, with Linux 2.6.35-24-generic (recovery mode)' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-24-generic ...'
	linux	/boot/vmlinuz-2.6.35-24-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-24-generic
}
menuentry 'GNU/Linux, with Linux 2.6.35-22-generic' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-22-generic ...'
	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro  
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-22-generic
}
menuentry 'GNU/Linux, with Linux 2.6.35-22-generic (recovery mode)' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-22-generic ...'
	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-22-generic
}
### END /usr/local/etc/grub.d/10_linux ###

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

### BEGIN /usr/local/etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
	insmod part_msdos
	insmod ntfs
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 199C2D9325B6AF71
	chainloader +1
}
menuentry "GNU/Linux, with Linux 2.6.35-22-generic (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root 67af37cd-7a2d-4472-99f9-4ecdd8f0e591
	linux /boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro
	initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "GNU/Linux, with Linux 2.6.35-22-generic (recovery mode) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root 67af37cd-7a2d-4472-99f9-4ecdd8f0e591
	linux /boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro single
	initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "Openindiana" {
      insmod zfs
      insmod part_sunpc
      search --label rpool --set=root
      if cpuid -l ; then
         ISADIR=amd64;
      else
         ISADIR=
      fi
      zfs-bootfs /ROOT/openindiana/@/ ZFS_BOOTFS
      multiboot /ROOT/openindiana/@/platform/i86pc/kernel/$ISADIR/unix /platform/i86pc/kernel/$ISADIR/unix -B $ZFS_BOOTFS,console=graphics
      module /ROOT/openindiana/@/platform/i86pc/$ISADIR/boot_archive /platform/i86pc/$ISADIR/boot_archive
}
### END /usr/local/etc/grub.d/30_os-prober ###

### BEGIN /usr/local/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 /usr/local/etc/grub.d/40_custom ###

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

=============================== sdb1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sdd1 during installation
UUID=67af37cd-7a2d-4472-99f9-4ecdd8f0e591 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=a5444972-2dea-4bfe-aec7-b48426994250 none            swap    sw              0       0
# swap was on /dev/sdd5 during installation
UUID=8e716eeb-78c9-488b-a915-5e6a447c16c9 none            swap    sw              0       0

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


  10.9GB: boot/grub/core.img
  11.0GB: boot/grub/grub.cfg
    .3GB: boot/initrd.img-2.6.35-22-generic
  11.0GB: boot/vmlinuz-2.6.35-22-generic
    .3GB: initrd.img
  11.0GB: vmlinuz
=======Devices which don't seem to have a corresponding hard drive==============

sdc 

[-- Attachment #3: grub.cfg --]
[-- Type: application/octet-stream, Size: 5336 bytes --]

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

### BEGIN /usr/local/etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  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 load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
if loadfont /usr/local/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
set locale_dir=($root)/boot/grub/locale
set lang=en_IN
insmod gettext
set timeout=5
### END /usr/local/etc/grub.d/00_header ###

### BEGIN /usr/local/etc/grub.d/10_linux ###
menuentry 'GNU/Linux, with Linux 2.6.35-24-generic' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-24-generic ...'
	linux	/boot/vmlinuz-2.6.35-24-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro  
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-24-generic
}
menuentry 'GNU/Linux, with Linux 2.6.35-24-generic (recovery mode)' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-24-generic ...'
	linux	/boot/vmlinuz-2.6.35-24-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-24-generic
}
menuentry 'GNU/Linux, with Linux 2.6.35-22-generic' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-22-generic ...'
	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro  
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-22-generic
}
menuentry 'GNU/Linux, with Linux 2.6.35-22-generic (recovery mode)' --class gnu-linux --class gnu --class os {
	load_video
	set gfxpayload=keep
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos6)'
	search --no-floppy --fs-uuid --set=root 9170712c-b76f-4363-b993-76c90d50b997
	echo	'Loading Linux 2.6.35-22-generic ...'
	linux	/boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.35-22-generic
}
### END /usr/local/etc/grub.d/10_linux ###

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

### BEGIN /usr/local/etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
	insmod part_msdos
	insmod ntfs
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root 199C2D9325B6AF71
	chainloader +1
}
menuentry "GNU/Linux, with Linux 2.6.35-22-generic (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root 67af37cd-7a2d-4472-99f9-4ecdd8f0e591
	linux /boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro
	initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "GNU/Linux, with Linux 2.6.35-22-generic (recovery mode) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root 67af37cd-7a2d-4472-99f9-4ecdd8f0e591
	linux /boot/vmlinuz-2.6.35-22-generic root=UUID=9170712c-b76f-4363-b993-76c90d50b997 ro single
	initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry "Solaris" {
      insmod zfs
      insmod part_sunpc
      search --label rpool --set=root
      if cpuid -l ; then
         ISADIR=amd64;
      else
         ISADIR=
      fi
      zfs-bootfs /ROOT/openindiana/@/ ZFS_BOOTFS
      multiboot /ROOT/openindiana/@/platform/i86pc/kernel/$ISADIR/unix /platform/i86pc/kernel/$ISADIR/unix -B $ZFS_BOOTFS,console=graphics
      module /ROOT/openindiana/@/platform/i86pc/$ISADIR/boot_archive /platform/i86pc/$ISADIR/boot_archive
}
### END /usr/local/etc/grub.d/30_os-prober ###

### BEGIN /usr/local/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 /usr/local/etc/grub.d/40_custom ###

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Issues with grub.cfg
  2011-04-12  6:48 Issues with grub.cfg Harshit Jain
@ 2011-04-12  7:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-04-12  8:38   ` Harshit Jain
  2011-04-12 23:41   ` Seth Goldberg
  2011-04-12  7:10 ` Vladimir 'φ-coder/phcoder' Serbinenko
  1 sibling, 2 replies; 9+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-04-12  7:05 UTC (permalink / raw)
  To: grub-devel; +Cc: Seth Goldberg

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

On 12.04.2011 08:48, Harshit Jain wrote:
>
> 1) GRUB shell is able to detect the label 'rpool' for booting
> Openindiana. However, on selecting menuentry named 'Solaris' computer
> reboots without giving any output.
This one is because of the bug in 32-bit Opensolaris kernel. I thought
they already fixed it. Following patch will ignore bogus values in
multiboot header:

=== modified file 'grub-core/loader/i386/multiboot_mbi.c'
--- grub-core/loader/i386/multiboot_mbi.c       2010-09-29 21:51:12 +0000
+++ grub-core/loader/i386/multiboot_mbi.c       2010-12-18 13:31:58 +0000
@@ -101,7 +101,7 @@
                         "unsupported flag: 0x%x", header->flags);
     }
 
-  if (header->flags & MULTIBOOT_AOUT_KLUDGE)
+  if (0)//(header->flags & MULTIBOOT_AOUT_KLUDGE)
     {
       int offset = ((char *) header - buffer -
                    (header->header_addr - header->load_addr));



-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Issues with grub.cfg
  2011-04-12  6:48 Issues with grub.cfg Harshit Jain
  2011-04-12  7:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-04-12  7:10 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-04-12  7:29   ` Harshit Jain
  1 sibling, 1 reply; 9+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-04-12  7:10 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 562 bytes --]

On 12.04.2011 08:48, Harshit Jain wrote:
> 2) I used 'grub-mkconfig' to create grub.cfg. In menuentry "GNU/Linux,
> with Linux 2.6.35-22-generic (on /dev/sdb1)'', there is bug in line
> using 'linux' command (line no. 122) where the
> UUID=9170712c-b76f-4363-b993-76c90d50b997 (installed on internal HD)
> is used instead of UUID=67af37cd-7a2d-4472-99f9-4ecdd8f0e591
> (installed on external HD).  Imho, there is some in grub-mkconfig script.
What's the output of linux-boot-prober /dev/sdb1 ?

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Issues with grub.cfg
  2011-04-12  7:10 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-04-12  7:29   ` Harshit Jain
  2011-04-12  7:33     ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 9+ messages in thread
From: Harshit Jain @ 2011-04-12  7:29 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 1341 bytes --]

/dev/sdb1:/dev/sdb1:GNU/Linux, with Linux
2.6.35-22-generic:/boot/vmlinuz-2.6.35-22-generic:/boot/initrd.img-2.6.35-22-generic:root=UUID=9170712c-b76f-4363-b993-76c90d50b997
ro
/dev/sdb1:/dev/sdb1:GNU/Linux, with Linux 2.6.35-22-generic (recovery
mode):/boot/vmlinuz-2.6.35-22-generic:/boot/initrd.img-2.6.35-22-generic:root=UUID=9170712c-b76f-4363-b993-76c90d50b997
ro single

2011/4/12 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>

> On 12.04.2011 08:48, Harshit Jain wrote:
> > 2) I used 'grub-mkconfig' to create grub.cfg. In menuentry "GNU/Linux,
> > with Linux 2.6.35-22-generic (on /dev/sdb1)'', there is bug in line
> > using 'linux' command (line no. 122) where the
> > UUID=9170712c-b76f-4363-b993-76c90d50b997 (installed on internal HD)
> > is used instead of UUID=67af37cd-7a2d-4472-99f9-4ecdd8f0e591
> > (installed on external HD).  Imho, there is some in grub-mkconfig script.
> What's the output of linux-boot-prober /dev/sdb1 ?
>
> --
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>


-- 
Harshit Jain,
B.Tech Part IV,
Computer Science and Engineering,
IT-BHU, Varanasi.
Work Email: harshit.jain.cse07@itbhu.ac.in

[-- Attachment #2: Type: text/html, Size: 1979 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Issues with grub.cfg
  2011-04-12  7:29   ` Harshit Jain
@ 2011-04-12  7:33     ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 0 replies; 9+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-04-12  7:33 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 597 bytes --]

On 12.04.2011 09:29, Harshit Jain wrote:
> /dev/sdb1:/dev/sdb1:GNU/Linux, with Linux
> 2.6.35-22-generic:/boot/vmlinuz-2.6.35-22-generic:/boot/initrd.img-2.6.35-22-generic:root=UUID=9170712c-b76f-4363-b993-76c90d50b997
> ro
> /dev/sdb1:/dev/sdb1:GNU/Linux, with Linux 2.6.35-22-generic (recovery
> mode):/boot/vmlinuz-2.6.35-22-generic:/boot/initrd.img-2.6.35-22-generic:root=UUID=9170712c-b76f-4363-b993-76c90d50b997
> ro single
This output is obviously wrong. linux-boot-prober isn't maintained by us
but by debian-boot team.

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Issues with grub.cfg
  2011-04-12  7:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-04-12  8:38   ` Harshit Jain
  2011-04-12 23:41   ` Seth Goldberg
  1 sibling, 0 replies; 9+ messages in thread
From: Harshit Jain @ 2011-04-12  8:38 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 1507 bytes --]

2011/4/12 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>

> On 12.04.2011 08:48, Harshit Jain wrote:
> >
> > 1) GRUB shell is able to detect the label 'rpool' for booting
> > Openindiana. However, on selecting menuentry named 'Solaris' computer
> > reboots without giving any output.
> This one is because of the bug in 32-bit Opensolaris kernel. I thought
> they already fixed it. Following patch will ignore bogus values in
> multiboot header:
>
> === modified file 'grub-core/loader/i386/multiboot_mbi.c'
> --- grub-core/loader/i386/multiboot_mbi.c       2010-09-29 21:51:12 +0000
> +++ grub-core/loader/i386/multiboot_mbi.c       2010-12-18 13:31:58 +0000
> @@ -101,7 +101,7 @@
>                         "unsupported flag: 0x%x", header->flags);
>     }
>
> -  if (header->flags & MULTIBOOT_AOUT_KLUDGE)
> +  if (0)//(header->flags & MULTIBOOT_AOUT_KLUDGE)
>     {
>       int offset = ((char *) header - buffer -
>                    (header->header_addr - header->load_addr));
>
> Now, I am getting following error :
error: out of memory
error: you need to load the multiboot kernel first

>
>
> --
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>
>


-- 
Harshit Jain,
B.Tech Part IV,
Computer Science and Engineering,
IT-BHU, Varanasi.
Work Email: harshit.jain.cse07@itbhu.ac.in

[-- Attachment #2: Type: text/html, Size: 2402 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Issues with grub.cfg
  2011-04-12  7:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-04-12  8:38   ` Harshit Jain
@ 2011-04-12 23:41   ` Seth Goldberg
  2011-04-13  8:27     ` Vladimir 'φ-coder/phcoder' Serbinenko
  1 sibling, 1 reply; 9+ messages in thread
From: Seth Goldberg @ 2011-04-12 23:41 UTC (permalink / raw)
  To: The development of GNU GRUB; +Cc: grub-devel@gnu.org

It has been fixed and should boot fine with the latest opensolaris release.

On Apr 11, 2011, at 9:05 PM, Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com> wrote:

> On 12.04.2011 08:48, Harshit Jain wrote:
>> 
>> 1) GRUB shell is able to detect the label 'rpool' for booting
>> Openindiana. However, on selecting menuentry named 'Solaris' computer
>> reboots without giving any output.
> This one is because of the bug in 32-bit Opensolaris kernel. I thought
> they already fixed it. Following patch will ignore bogus values in
> multiboot header:
> 
> === modified file 'grub-core/loader/i386/multiboot_mbi.c'
> --- grub-core/loader/i386/multiboot_mbi.c       2010-09-29 21:51:12 +0000
> +++ grub-core/loader/i386/multiboot_mbi.c       2010-12-18 13:31:58 +0000
> @@ -101,7 +101,7 @@
>                         "unsupported flag: 0x%x", header->flags);
>     }
> 
> -  if (header->flags & MULTIBOOT_AOUT_KLUDGE)
> +  if (0)//(header->flags & MULTIBOOT_AOUT_KLUDGE)
>     {
>       int offset = ((char *) header - buffer -
>                    (header->header_addr - header->load_addr));
> 
> 
> 
> -- 
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Issues with grub.cfg
  2011-04-12 23:41   ` Seth Goldberg
@ 2011-04-13  8:27     ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-04-22 21:01       ` Seth Goldberg
  0 siblings, 1 reply; 9+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-04-13  8:27 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 1791 bytes --]

On 13.04.2011 01:41, Seth Goldberg wrote:
> It has been fixed and should boot fine with the latest opensolaris release.
>
Inspection revealed that this problem was indeed fixed. However trouble
was -B console=graphics. What is expected from GRUB when -B
console=graphics ? 
> On Apr 11, 2011, at 9:05 PM, Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com> wrote:
>
>> On 12.04.2011 08:48, Harshit Jain wrote:
>>> 1) GRUB shell is able to detect the label 'rpool' for booting
>>> Openindiana. However, on selecting menuentry named 'Solaris' computer
>>> reboots without giving any output.
>> This one is because of the bug in 32-bit Opensolaris kernel. I thought
>> they already fixed it. Following patch will ignore bogus values in
>> multiboot header:
>>
>> === modified file 'grub-core/loader/i386/multiboot_mbi.c'
>> --- grub-core/loader/i386/multiboot_mbi.c       2010-09-29 21:51:12 +0000
>> +++ grub-core/loader/i386/multiboot_mbi.c       2010-12-18 13:31:58 +0000
>> @@ -101,7 +101,7 @@
>>                         "unsupported flag: 0x%x", header->flags);
>>     }
>>
>> -  if (header->flags & MULTIBOOT_AOUT_KLUDGE)
>> +  if (0)//(header->flags & MULTIBOOT_AOUT_KLUDGE)
>>     {
>>       int offset = ((char *) header - buffer -
>>                    (header->header_addr - header->load_addr));
>>
>>
>>
>> -- 
>> Regards
>> Vladimir 'φ-coder/phcoder' Serbinenko
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Issues with grub.cfg
  2011-04-13  8:27     ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-04-22 21:01       ` Seth Goldberg
  0 siblings, 0 replies; 9+ messages in thread
From: Seth Goldberg @ 2011-04-22 21:01 UTC (permalink / raw)
  To: The development of GNU GRUB


On Apr 13, 2011, at 1:27 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:

> On 13.04.2011 01:41, Seth Goldberg wrote:
>> It has been fixed and should boot fine with the latest opensolaris release.
>> 
> Inspection revealed that this problem was indeed fixed. However trouble
> was -B console=graphics. What is expected from GRUB when -B
> console=graphics ? 

  That the console be in 640x480x16 and that the requisite video info be filled into the mbi1.

 --S

>> On Apr 11, 2011, at 9:05 PM, Vladimir 'φ-coder/phcoder' Serbinenko<phcoder@gmail.com> wrote:
>> 
>>> On 12.04.2011 08:48, Harshit Jain wrote:
>>>> 1) GRUB shell is able to detect the label 'rpool' for booting
>>>> Openindiana. However, on selecting menuentry named 'Solaris' computer
>>>> reboots without giving any output.
>>> This one is because of the bug in 32-bit Opensolaris kernel. I thought
>>> they already fixed it. Following patch will ignore bogus values in
>>> multiboot header:
>>> 
>>> === modified file 'grub-core/loader/i386/multiboot_mbi.c'
>>> --- grub-core/loader/i386/multiboot_mbi.c       2010-09-29 21:51:12 +0000
>>> +++ grub-core/loader/i386/multiboot_mbi.c       2010-12-18 13:31:58 +0000
>>> @@ -101,7 +101,7 @@
>>>                        "unsupported flag: 0x%x", header->flags);
>>>    }
>>> 
>>> -  if (header->flags & MULTIBOOT_AOUT_KLUDGE)
>>> +  if (0)//(header->flags & MULTIBOOT_AOUT_KLUDGE)
>>>    {
>>>      int offset = ((char *) header - buffer -
>>>                   (header->header_addr - header->load_addr));
>>> 
>>> 
>>> 
>>> -- 
>>> Regards
>>> Vladimir 'φ-coder/phcoder' Serbinenko
>>> 
>>> 
>>> _______________________________________________
>>> Grub-devel mailing list
>>> Grub-devel@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/grub-devel
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel
> 
> 
> -- 
> Regards
> Vladimir 'φ-coder/phcoder' Serbinenko
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-04-22 21:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12  6:48 Issues with grub.cfg Harshit Jain
2011-04-12  7:05 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-12  8:38   ` Harshit Jain
2011-04-12 23:41   ` Seth Goldberg
2011-04-13  8:27     ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-22 21:01       ` Seth Goldberg
2011-04-12  7:10 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-12  7:29   ` Harshit Jain
2011-04-12  7:33     ` Vladimir 'φ-coder/phcoder' Serbinenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.