Hi,
I want to slowly migrate from Debian to CentOS, so I setup a multiboot on my main machine. There's a Debian Etch install on /dev/hda, and GRUB is also installed on the Debian side.
On /dev/hdb, I have CentOS 5. I fdisked the drive manually, then chose manual partitioning during install. The setup for CentOS is:
hdb1 -> swap hdb2 -> /boot, ext2 hdb3 -> / , ext3
After completing the install, I rebooted on the Debian side and edited menu.lst like this:
<snip>
title Debian GNU/Linux, kernel 2.6.18 root (hd0,1) kernel /vmlinuz-2.6.18 root=/dev/hda3 vga=788 ro initrd /initrd.img-2.6.18
title CentOS 5 sur hdb3 root (hd1,1) kernel /vmlinuz-2.6.18-8.el5 root=/dev/hdb3 ro initrd /initrd-2.6.18-8.el5
Now when I try to reboot on CentOS, I get an 'Error 15: file not found'. I add that I've done many multiboot configurations before, so it's not the first time I have such a scenario. I thought, aha, maybe a typo. So I entered the GRUB shell and booted CentOS without problems, using tab completion.
I double- and triple-checked after this, but I can't seem to find the error. The stanza seems OK, but still it won't work.
Do you see a mistake that I don't see?
Niki Kovacs
On 5/27/07, Niki Kovacs contact@kikinovak.net wrote:
Hi,
I want to slowly migrate from Debian to CentOS, so I setup a multiboot on my main machine. There's a Debian Etch install on /dev/hda, and GRUB is also installed on the Debian side.
On /dev/hdb, I have CentOS 5. I fdisked the drive manually, then chose manual partitioning during install. The setup for CentOS is:
hdb1 -> swap hdb2 -> /boot, ext2 hdb3 -> / , ext3
After completing the install, I rebooted on the Debian side and edited menu.lst like this:
<snip>
title Debian GNU/Linux, kernel 2.6.18 root (hd0,1) kernel /vmlinuz-2.6.18 root=/dev/hda3 vga=788 ro initrd /initrd.img-2.6.18
title CentOS 5 sur hdb3 root (hd1,1) kernel /vmlinuz-2.6.18-8.el5 root=/dev/hdb3 ro initrd /initrd-2.6.18-8.el5
Now when I try to reboot on CentOS, I get an 'Error 15: file not found'. I add that I've done many multiboot configurations before, so it's not the first time I have such a scenario. I thought, aha, maybe a typo. So I entered the GRUB shell and booted CentOS without problems, using tab completion.
I double- and triple-checked after this, but I can't seem to find the error. The stanza seems OK, but still it won't work.
Do you see a mistake that I don't see?
Niki Kovacs
What is the /etc/fstab line for /dev/hdb3 like?
Akemi
On Sun, May 27, 2007 10:56 am, Niki Kovacs wrote:
Hi,
I want to slowly migrate from Debian to CentOS, so I setup a multiboot on my main machine. There's a Debian Etch install on /dev/hda, and GRUB is also installed on the Debian side.
On /dev/hdb, I have CentOS 5. I fdisked the drive manually, then chose manual partitioning during install. The setup for CentOS is:
hdb1 -> swap hdb2 -> /boot, ext2 hdb3 -> / , ext3
After completing the install, I rebooted on the Debian side and edited menu.lst like this:
<snip>
title Debian GNU/Linux, kernel 2.6.18 root (hd0,1) kernel /vmlinuz-2.6.18 root=/dev/hda3 vga=788 ro initrd /initrd.img-2.6.18
title CentOS 5 sur hdb3 root (hd1,1) kernel /vmlinuz-2.6.18-8.el5 root=/dev/hdb3 ro initrd /initrd-2.6.18-8.el5
Now when I try to reboot on CentOS, I get an 'Error 15: file not found'.
<snip>
Are you sure about the initrd line? All initrd files on my CentOS boxes have the .img extension. Unless you rebuilt yours and named it differently, that might be the problem.
Marko A. Jennings a écrit :
Are you sure about the initrd line? All initrd files on my CentOS boxes have the .img extension. Unless you rebuilt yours and named it differently, that might be the problem.
And that WAS the problem. Curiously, I hesitated over it. In fact, Debian initrd files are called initrd.img-2.6.18-something... while CentOS initrd is initrd-2.6.18-something.img. Hence the confusion.
Thanks very much!
Niki
Hi Niki,
On Sun, 2007-05-27 at 21:35 +0200, Niki Kovacs wrote:
And that WAS the problem. Curiously, I hesitated over it. In fact, Debian initrd files are called initrd.img-2.6.18-something... while CentOS initrd is initrd-2.6.18-something.img. Hence the confusion.
You could consider installing GRUB from CentOS in the MBR of the CentOS disk (though, the boot partition would be fine too), and add something like
--- title CentOS root (hd1) makeactive chainloader +1 ---
To your Debian GRUB configuration. This prevents that you'll have to update your Debian GRUB configuration again after n kernel updates (where n is the number set with the installonlyn yum plugin).
-- Daniel
Daniel de Kok a écrit :
You could consider installing GRUB from CentOS in the MBR of the CentOS disk (though, the boot partition would be fine too), and add something like
<snip>
Thanks for the hint, Daniel. But the solution is only a temporary one. My goal is to become a distribution monogamist with CentOS and to completely migrate to it from Debian :o)
Cheers,
Niki