MrMerry
November 3rd, 2009, 12:21 PM
Hi,
I installed Ubuntu 9.10 (standard edition and Netbook remix) on a multiboot Acer netbook and chose to install the grub2 bootloader to the boot sector of installation partition (sda7) rather than the MBR. I have several distros booting from legacy grub (grub 0.97 installed on the MBR) using 'chainloader +1' method , but for Ubuntu it gives an error 'Invalid or Unsupported executable format'.
I can boot succesfully by copying the vmlinuz and initrd files to my legacy grub /boot partition and using the usual stanza in grub-legacy:
title Ubuntu 9.10
root (hd0,1)
kernel /vmlinuz-2.6.31-14-generic root=/dev/sda7 quiet splash
initrd /initrd.img-2.6.31-14-generic
But I would like to use:
root (hd0,6)
chainloader +1
After boot I tried using grub-setup and grub-install:
root@aaounr:~# grub-setup /dev/sda7 --force
grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.
root@aaounr:~# grub-install /dev/sda7
grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
(hd1) /dev/sdb
But still no luck, I get the same error 'Invalid or Unsupported executable format'.
I found a thread on another forum where the same problem is encountered on earlier alpha version of Ubuntu 9.10, http://www.justlinux.com/forum/showthread.php?t=152784
Has anybody got Ubuntu 9.10 Grub2 bootloader to chainload succesfully from grub-legacy. If so, any ideas what I might try to fix it here?
I installed Ubuntu 9.10 (standard edition and Netbook remix) on a multiboot Acer netbook and chose to install the grub2 bootloader to the boot sector of installation partition (sda7) rather than the MBR. I have several distros booting from legacy grub (grub 0.97 installed on the MBR) using 'chainloader +1' method , but for Ubuntu it gives an error 'Invalid or Unsupported executable format'.
I can boot succesfully by copying the vmlinuz and initrd files to my legacy grub /boot partition and using the usual stanza in grub-legacy:
title Ubuntu 9.10
root (hd0,1)
kernel /vmlinuz-2.6.31-14-generic root=/dev/sda7 quiet splash
initrd /initrd.img-2.6.31-14-generic
But I would like to use:
root (hd0,6)
chainloader +1
After boot I tried using grub-setup and grub-install:
root@aaounr:~# grub-setup /dev/sda7 --force
grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.
root@aaounr:~# grub-install /dev/sda7
grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.
grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged.
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
(hd1) /dev/sdb
But still no luck, I get the same error 'Invalid or Unsupported executable format'.
I found a thread on another forum where the same problem is encountered on earlier alpha version of Ubuntu 9.10, http://www.justlinux.com/forum/showthread.php?t=152784
Has anybody got Ubuntu 9.10 Grub2 bootloader to chainload succesfully from grub-legacy. If so, any ideas what I might try to fix it here?