LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 11-12-2009, 01:18 AM   #1
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Rep: Reputation: 32
Issue with 2 Linux OS in my machine


Hi All,

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.

What exactly is the issue here ?

Thanks
Peeths

Last edited by peeths003; 11-12-2009 at 02:20 AM.
 
Old 11-12-2009, 07:09 AM   #2
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
Any comments is greatly appreciated. Please help .

Thanks
Peeths
 
Old 11-12-2009, 07:35 AM   #3
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
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: Reputation: Disabled
If have some more questions ?
Did you install fedora as the last OS ?
Where did you install Fedora's GRUB ?
Did you check the menu.lst or grub.cfg ?
 
Old 11-12-2009, 12:15 PM   #4
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
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 .

I am pasting the menu.lst of the 3 OS

Debian

Quote:

title Debian GNU/Linux, kernel 2.6.26-2-amd64
root (hd0,6)
kernel /vmlinuz-2.6.26-2-amd64 root=/dev/sda6 ro quiet
initrd /initrd.img-2.6.26-2-amd64

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



CentOS

Quote:


#boot=/dev/sda9
default=0
timeout=5
splashimage=(hd0,8)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-164.6.1.el5)
root (hd0,8)
kernel /vmlinuz-2.6.18-164.6.1.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-164.6.1.el5.img
title CentOS (2.6.18-128.el5)
root (hd0,8)
kernel /vmlinuz-2.6.18-128.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-128.el5.img


title Other
rootnoverify (hd0,0)
chainloader +1


Fedora

Quote:

#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.37-170.2.104.fc10.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.27.37-170.2.104.fc10.x86_64 ro root=UUID=5fb63a7d-4576-4e9c-ba3f-cea2436954b2
initrd /initrd-2.6.27.37-170.2.104.fc10.x86_64.img
title Fedora (2.6.27.30-170.2.82.fc10.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.27.30-170.2.82.fc10.x86_64 ro root=UUID=5fb63a7d-4576-4e9c-ba3f-cea2436954b2
initrd /initrd-2.6.27.30-170.2.82.fc10.x86_64.img
title Fedora (2.6.27.29-170.2.78.fc10.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.27.29-170.2.78.fc10.x86_64 ro root=UUID=5fb63a7d-4576-4e9c-ba3f-cea2436954b2
initrd /initrd-2.6.27.29-170.2.78.fc10.x86_64.img

So I think, here the issue with the entry in Fedora menu.lst ?

What change do i need to make and how it help ?

Thanks for the help.


Thanks
Peeths
 
Old 11-12-2009, 01:02 PM   #5
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
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: Reputation: Disabled
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

But there more ways for chain loading
 
Old 11-12-2009, 01:20 PM   #6
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
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 ?
 
Old 11-12-2009, 01:30 PM   #7
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
I changed the menu.lst of Fedora as follows

Quote:

#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.27.37-170.2.104.fc10.x86_64)
root (hd1,0)
kernel /vmlinuz-2.6.27.37-170.2.104.fc10.x86_64 ro root=UUID=5fb63a7d-4576-4e9c-ba3f-cea2436954b2
initrd /initrd-2.6.27.37-170.2.104.fc10.x86_64.img
title Fedora (2.6.27.30-170.2.82.fc10.x86_64)
root (hd1,0)
kernel /vmlinuz-2.6.27.30-170.2.82.fc10.x86_64 ro root=UUID=5fb63a7d-4576-4e9c-ba3f-cea2436954b2
initrd /initrd-2.6.27.30-170.2.82.fc10.x86_64.img
title Fedora (2.6.27.29-170.2.78.fc10.x86_64)
root (hd1,0)
kernel /vmlinuz-2.6.27.29-170.2.78.fc10.x86_64 ro root=UUID=5fb63a7d-4576-4e9c-ba3f-cea2436954b2
initrd /initrd-2.6.27.29-170.2.78.fc10.x86_64.img


but got the same results, do I have to install the fedora grub again ?
 
Old 11-12-2009, 02:33 PM   #8
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
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: Reputation: Disabled
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
 
Old 11-12-2009, 02:49 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
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.
 
Old 11-13-2009, 12:42 AM   #10
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
Quote:
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.
 
Old 11-13-2009, 01:37 AM   #11
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
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: Reputation: Disabled
Quote:
Originally Posted by peeths003 View Post
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
 
Old 11-13-2009, 05:56 AM   #12
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
Quote:
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

Thanks
Peeths
 
Old 11-13-2009, 10:08 AM   #13
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
I changed the splash image as well , but still the same result. This is really weired .

Someone please help .
 
Old 11-13-2009, 11:35 AM   #14
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
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: Reputation: Disabled
Quote:
Originally Posted by peeths003 View Post
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
 
Old 11-22-2009, 06:33 AM   #15
peeths003
Member
 
Registered: Jun 2008
Distribution: Fedora 12 i686, Debian 5.0.1 i686, Fedora 14 x86_64, Debian Lenny 5.0.1x86_64 and CentOS_5.4_x86-64
Posts: 311

Original Poster
Rep: Reputation: 32
Hey I resolved this.

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 ...

Thanks
Peeths
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use VLC to stream AVI files from one Linux machine to another Linux machine bgoodr Linux - Software 4 05-24-2009 11:18 AM
g++ on 64bit machine alignment issue linux001 Linux - Software 19 11-22-2008 07:31 AM
Posiible CDROM issue 'locks' machine SteveT Red Hat 1 02-22-2005 08:46 AM
Another slow machine issue... Twisted385 Linux - Newbie 18 02-17-2005 09:24 PM
samba issue: connecting from win machine pratik Linux - Networking 7 08-07-2003 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration