[opensuse] GRUB: Error 13: Invalid or unsupported executable format
Hello, I've started to prepare my machine for Linux multiboot. I've created a 20MB partition where I copied /boot/grub and /boot/boot from a working installation and installed the GRUB bootloader there. This one works fine. Next, I installed openSUSE 10.3 on an extended partition, using XFS. During the install, I told YaST that I wanted to install GRUB on the root partition. It went through without any issues. When I boot my machine, I'll get to the first GRUB menu, which is configured as; default 0 timeout 5 title openSUSE 10.3 root (hd0,5) chainloader +1 But when I select this one, I get a GRUB error; Error 13: Invalid or unsupported executable format To make sure that there's no issues with the OS install, I added the following to my GRUB menu (the first one that pops up) title openSUSE 10.3 - Test root (hd0,5) kernel /boot/vmlinuz initrd /boot/initrd That menu option works fine. After booting the machine, I tried the following; Start grub as root Then, in the GRUB shell; setup --stage2=/boot/grub/stage2 (hd0,5) (hd0,5) This gave me the following (note the warning, which is suppose to be non-fatal) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/xfs_stage1_5" exists... yes Running "embed /boot/grub/xfs_stage1_5 (hd0,5)"... failed (this is not fatal) Running "embed /boot/grub/xfs_stage1_5 (hd0,5)"... failed (this is not fatal) Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 (hd0,5) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded Done. Anyone know what I'm doing wrong, and how I can get this configuration to work? Thanks, Magnus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun March 4 2007 00:11, Magnus Boman wrote:
I've started to prepare my machine for Linux multiboot....
Good grief, Magnus, it looks like you know what you're doing. You're certainly not afraid to experiment and it seems you're in the right area. Could it be the only thing missing is a nice cuppa (pinta?) and a stroll to clear the cobwebs? :-) Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carl, On Sun, 2007-03-04 at 07:59 -0500, Carl Hartung wrote:
On Sun March 4 2007 00:11, Magnus Boman wrote:
I've started to prepare my machine for Linux multiboot....
Good grief, Magnus, it looks like you know what you're doing. You're certainly not afraid to experiment and it seems you're in the right area. Could it be
Well, I got tired of blowing my (stable) install away everytime there's a new alpha/beta to play with. So decided that this is the way to go :-)
the only thing missing is a nice cuppa (pinta?) and a stroll to clear the cobwebs? :-)
Well, did a few more installs (5 openSUSE 10.3 installs in a row... beat that! :-) and found out that when using XFS, I can't get it to work, but when I used ext3 it worked without any issues. So I guess my question now is, can GRUB be installed on XFS that lives in an extended partition...
Carl
Cheers, Magnus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 04 March 2007 14:10, Magnus Boman wrote:
Well, did a few more installs (5 openSUSE 10.3 installs in a row... beat that! :-) and found out that when using XFS, I can't get it to work, but when I used ext3 it worked without any issues. So I guess my question now is, can GRUB be installed on XFS that lives in an extended partition...
Normally yes, but you're getting an xfs related error message on grub install. I would report that as a bug if I were you Det är ju "bara" en beta :) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders, On Sun, 2007-03-04 at 14:28 +0100, Anders Johansson wrote:
On Sunday 04 March 2007 14:10, Magnus Boman wrote:
Well, did a few more installs (5 openSUSE 10.3 installs in a row... beat that! :-) and found out that when using XFS, I can't get it to work, but when I used ext3 it worked without any issues. So I guess my question now is, can GRUB be installed on XFS that lives in an extended partition...
Normally yes, but you're getting an xfs related error message on grub install.
I would report that as a bug if I were you
Det är ju "bara" en beta :)
I'll try SLED10, SLED10Sp1Beta and openSUSE 10.2 tomorrow and see if I get the same issue or not. If that works, then I will report it as a bug. If not, then I probably would need to find some proof that it is in fact suppose to work. Do you have any facts that it should work? Det är inte ens en beta... Det är en Alpha :-) Cheers, Magnus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun, 2007-03-04 at 14:28 +0100, Anders Johansson wrote:
On Sunday 04 March 2007 14:10, Magnus Boman wrote:
Well, did a few more installs (5 openSUSE 10.3 installs in a row... beat that! :-) and found out that when using XFS, I can't get it to work, but when I used ext3 it worked without any issues. So I guess my question now is, can GRUB be installed on XFS that lives in an extended partition...
Normally yes, but you're getting an xfs related error message on grub install.
I would report that as a bug if I were you
Det är ju "bara" en beta :)
I tried SLED10SP1B4 with XFS and I get the same issue. Then I tried with SLED10GA and I like the way it thinks. It won't even let me choose to install GRUB on the root partition if I use XFS, but when I select ReiserFS och ext3, I get the option to do it. So... My conclusion is that it's NOT possible to use XFS on an extended partition and have GRUB installed on it's root partition. Cheers, Magnus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 04 March 2007 23:44, Magnus Boman wrote:
I tried SLED10SP1B4 with XFS and I get the same issue. Then I tried with SLED10GA and I like the way it thinks. It won't even let me choose to install GRUB on the root partition if I use XFS, but when I select ReiserFS och ext3, I get the option to do it. So... My conclusion is that it's NOT possible to use XFS on an extended partition and have GRUB installed on it's root partition.
Coming in late to this discussion but do you have /boot on its own partition? I would think that putting /boot in its own partition with ext2 would solve the problem. The kernel and initrd can be loaded from the ext2 partition by grub and the rest is up to the kernel. I always have a separate /boot partition and it is always ext2. You don't need a fancy FS for /boot. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bruce, On Mon, 2007-03-05 at 09:10 -0500, Bruce Marshall wrote:
On Sunday 04 March 2007 23:44, Magnus Boman wrote:
I tried SLED10SP1B4 with XFS and I get the same issue. Then I tried with SLED10GA and I like the way it thinks. It won't even let me choose to install GRUB on the root partition if I use XFS, but when I select ReiserFS och ext3, I get the option to do it. So... My conclusion is that it's NOT possible to use XFS on an extended partition and have GRUB installed on it's root partition.
Coming in late to this discussion but do you have /boot on its own partition?
I would think that putting /boot in its own partition with ext2 would solve the problem. The kernel and initrd can be loaded from the ext2 partition by grub and the rest is up to the kernel.
I do have a separate ext2 partition for GRUB. But from that one, I only want to do a chainload to the GRUB that get's installed with the OS. And it doesn't seem to work if the filesystem is XFS.
I always have a separate /boot partition and it is always ext2. You don't need a fancy FS for /boot.
Cheers, Magnus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 05 March 2007 09:12, Magnus Boman wrote:
I do have a separate ext2 partition for GRUB. But from that one, I only want to do a chainload to the GRUB that get's installed with the OS. And it doesn't seem to work if the filesystem is XFS.
So you are still trying to run GRUB from an XFS partition... Why are you chainloading to another partition? And you are trying to load the kernel and initrd from a XFS partition. Make a separate /boot partition and solve your problem. Or not..... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Bruce, On Mon, 2007-03-05 at 09:35 -0500, Bruce Marshall wrote:
On Monday 05 March 2007 09:12, Magnus Boman wrote:
I do have a separate ext2 partition for GRUB. But from that one, I only want to do a chainload to the GRUB that get's installed with the OS. And it doesn't seem to work if the filesystem is XFS.
So you are still trying to run GRUB from an XFS partition...
Why are you chainloading to another partition? And you are trying to load the kernel and initrd from a XFS partition.
What I want to have is the following; sda1 ext2 Contains my "Master GRUB" which only do chainloading sda2 swap sda3 extended sda5 xfs (Operating system 1) sda6 xfs (Operating system 2) sda7 xfs (Operating system 3) sda8 xfs (Operating system 4) etc... In my menu.lst file on sda1, I have Title OS 1 root (hd0,4) chainloader +1 . . . Title OS 4 root (hd0,7) chainloader +1 This will allow me to have 3 instances of the same os (eg openSUSE 10.3 Alpha1) and I will never have to worry about the install/kernel upgrade messing with /boot on sda1. I also don't have to worry about adding kernel and initrd lines manually for each install.
Make a separate /boot partition and solve your problem. Or not.....
Well, problem is sort of solved by not using XFS. This works fine with ReiserFS and ext3. It's just that I've been using XFS for a while. Don't really care what filesystem I use for these as they are all lab installs and will be reinstalled every so often. So, in summary, this configuration will make it easy for me to install/reinstall/blow away os's as I want and never have to worry about grub (the "master" GRUB will never change and the GRUB installed at the root partition of each OS will be taken care of automatically) Cheers, Magnus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Anders Johansson
-
Bruce Marshall
-
Carl Hartung
-
Magnus Boman