Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This will sound weird. Recently I did some modification to my machine.
I have 4 SATA hard dirve in the machine. This is how it is.
/dev/sda 160 GB - Has Win XP, Debian 5.0.1 x64 and CentOS 5.4 x64 ( Triple boot)
/dev/sdb 160 GB - Has Fedora 10 x64
/dev/sdc 250 GB - Data
/dev/sdd 500 GB - Data
The issue here is, If I ran the machine without the second haddrive. i,e /dev/sdb , then the three Operating systems will work fine.
The issue comes when i connect the 2nd harddrive and then try booting CentOS , the initial stuff it takes from the Cent OS partitions,
But coming after a few seconds it boots to Fedora I dont know why this is .
I am using the grub of debian with all the 3 OS ( WinXp , debian and Centos ) the Cent OS grub is installed to /dev/sda9 and i am pointing the cent OS entry to /devsda9 so that i will get the grub of CentOS also to boot to any kernel.
I have installed Fedora well before I install Debian and CenOS.
I have installed Fedora to /dev/sdb
The grub of Fedora is installed to the MBR of /dev/sdb . I have installed that without the first harddisk. So when I want to boot in fedora, I disable /dev/sda in BIOS and boot in Fedora .
title Debian GNU/Linux, kernel 2.6.26-2-amd64 (single-user mode)
root (hd0,6)
kernel /vmlinuz-2.6.26-2-amd64 root=/dev/sda6 ro single
initrd /initrd.img-2.6.26-2-amd64
### END DEBIAN AUTOMAGIC KERNELS LIST
### Cent OS boot option
title CentOS_5.3_x64_86
root (hd0,8)
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Fedora is on hd0 too that is the notification for the first boot HD see menu .lst
So if you are booting from sda with is normally hd0 and sdb is connected than you have two HD0 sda and sdb .
Most easy solution boot from sda always leave sdb connected and change the menu.lst of fedora in that way that hdo becomes hd1
As you know you can boot fedora by chain loading in the Debian or centos grub menu , I do not with one you're using.
As a example
title Fedora
root (hd1,0) 0 assuming that FEDORA is first partition of sdb
configfile /boot/grub/menu.lst
What are the chain loading options that i have currently ?
and in the case when the OS or Kernels got updated , will the new kernel be automatically added to the bootloader of Debian or I have to do it manually ?
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Did you add the chain loading in the Debian menu.lst ?
Did you try to boot fedora from sda ?
You're splashimage of Fedora is still hd0
In the Fedora menu.lst is hiddenmenu mark it as a remark to determine if you see menu.lst of Fedora
If you're sure that you have install GRUB Fedora in MBR of sdb Than it has no use to reinstall it
It is strange I did the same trick with 3 HD and different OS and it works
If you are booting normally from Debian Grub on sda, why don't you just copy the Fedora entry to Debian menu.lst? Seems like the simplest solution.
Quote:
The issue comes when i connect the 2nd harddrive and then try booting CentOS , the initial stuff it takes from the Cent OS partitions,
But coming after a few seconds it boots to Fedora I dont know why this is
I don't see how that could be since your only entries in CentOS menu.lst are for CentOS and windows!!
Which drive is set to first boot priority? Do you change this when you connect the second drive? The only thing that would make sense to me is that you have sdb set to first boot priority and when it is not connected, sda gives boot options of your three systems on sda.
If you are booting normally from Debian Grub on sda, why don't you just copy the Fedora entry to Debian menu.lst? Seems like the simplest solution.
This seems to be a simple solution , I agree . But first I want to make CentOS up with the Second hard drive connected. And also Once CentOS is up I am planning to enter the Fedora details as well to be added to the Debian OS boot menu.
Quote:
Quote:
The issue comes when i connect the 2nd harddrive and then try booting CentOS , the initial stuff it takes from the Cent OS partitions,
But coming after a few seconds it boots to Fedora I dont know why this is
I don't see how that could be since your only entries in CentOS menu.lst are for CentOS and windows!!
I agree to this. This shouldn't happen , as there is no reference to /dev/sdb or root(hd1,x) in the Cent OS boot menu .
Quote:
Which drive is set to first boot priority? Do you change this when you connect the second drive? The only thing that would make sense to me is that you have sdb set to first boot priority and when it is not connected, sda gives boot options of your three systems on sda.
I have not changed the boot priority of the disk drives, I have only done with the disable or enable of the drives.
i,e if I wanna boot from /dev/sda I will make /dev/sdb disabled and if I wanna boot from /dev/sdb i will disable /dev/sda.
The boot priority option that I have in the bios is removable disk, CDROM, harddisk. I will have a chack once more.
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Quote:
Originally Posted by peeths003
This seems to be a simple solution , I agree . But first I want to make CentOS up with the Second hard drive connected. And also Once CentOS is up I am planning to enter the Fedora details as well to be added to the Debian OS boot menu.
I agree to this. This shouldn't happen , as there is no reference to /dev/sdb or root(hd1,x) in the Cent OS boot menu .
I have not changed the boot priority of the disk drives, I have only done with the disable or enable of the drives.
i,e if I wanna boot from /dev/sda I will make /dev/sdb disabled and if I wanna boot from /dev/sdb i will disable /dev/sda.
The boot priority option that I have in the bios is removable disk, CDROM, harddisk. I will have a chack once more.
In my BIOS there are 2 options under BOOT
1) boot prioriry
2) HD
With Hd I can change with HD is the first HD to boot from
In my BIOS there are 2 options under BOOT
1) boot prioriry
2) HD
With Hd I can change with HD is the first HD to boot from
I dont think that should be an issue. because the booting happens from /dev/sda only , thats how I am getting the Debian grub and from there I am getting CentOS grub.
After selecting CentOS, it will start with the CentOS booting. and then suddenly it changes to Fedora. this is weird. This is the place where things are going wrong
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
Quote:
Originally Posted by peeths003
I changed the splash image as well , but still the same result. This is really weired .
Someone please help .
Compare the name of the Centos name in the menu.lst and in youŕe dir.
My Centos kernel name is longer than youŕes , but it might by that you use de different centos than I do
I installed Fedora 12 in my machine. I installed it in the second hardrive. And the gub in the boot partition of Fedora. So now no issues all the OS's are working fine ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.