[SOLVED] Issue with two hard-drives, CentOS 6 and Ubuntu on each

General support questions
vrkrao
Posts: 34
Joined: 2011/07/28 16:07:31

Re: Issue with two hard-drives, CentOS 6 and Ubuntu on each

Post by vrkrao » 2011/09/12 11:56:22

[quote]
atemp wrote:
[quote]
vrkrao wrote:
I have done that. Still remains same.
[/quote]

The log of your last post looks actually good.

Tell us what happens if you chainload the grub on sda1 from the grub on sda.
In the GRUB console type something like
root (hd0,0)
chainloader +1
boot[/quote]

I have removed HD2 (the one with Ubuntu). Rebooted. The system is searching for
UUID of sdb1. It did not find it since I removed HD2. Went to grub rescue, saying
Error: no such device: UUID of sdb1

I did the following at the grub rescue prompt:
'ls' displayed (hd0), (hd0,msdos2), (hd0,msdos1)
'ls (hd0)/ ' displayed - error: unknown file system
'ls (hd0,1)/ ' displayed all the centOS related executables like vilinuz, initrd, .vilinuz etc.

regds.,
Ramki.

vrkrao
Posts: 34
Joined: 2011/07/28 16:07:31

Re: Issue with two hard-drives, CentOS 6 and Ubuntu on each

Post by vrkrao » 2011/09/12 17:21:07

Hi Atemp,

Some good news. I'm able to restore CentOS finally.

I disconnected my second hard disk (the one with Ubuntu)
I booted CentOS in rescue mode. Mounted the sysimage with chroot.
After that, I typed grub. Entered grub prompt. There, I've
given 'config-file=/boot/grub/grub.conf -no-floppy'. After that I typed

grub> root (hd0,0)
grub> setup (hd0)
grub> quit

I rebooted the system. It looked for the second disk on boot, but upon
not finding it, it had booted CentOS. I connected the second disk also back,
it still looks for the second disk on booting, says no boot file, exiting intel boot agent and then
boots CentOS. (when I select it to boot from HD1 during BIOS, it does not look for second disk.
It directly boots CentOS).

My question is, how can I now disable it looking for second disk on booting. I would like to disable it. How do i do this??

regds.,
Ramki.

HyperInferno
Posts: 21
Joined: 2011/09/02 15:45:37
Location: Southern California

Re: Issue with two hard-drives, CentOS 6 and Ubuntu on each

Post by HyperInferno » 2011/09/12 19:44:59

[quote]
vrkrao wrote:
Hi Atemp,

Some good news. I'm able to restore CentOS finally.

I disconnected my second hard disk (the one with Ubuntu)
I booted CentOS in rescue mode. Mounted the sysimage with chroot.
After that, I typed grub. Entered grub prompt. There, I've
given 'config-file=/boot/grub/grub.conf -no-floppy'. After that I typed

grub> root (hd0,0)
grub> setup (hd0)
grub> quit

I rebooted the system. It looked for the second disk on boot, but upon
not finding it, it had booted CentOS. I connected the second disk also back,
it still looks for the second disk on booting, says no boot file, exiting intel boot agent and then
boots CentOS. (when I select it to boot from HD1 during BIOS, it does not look for second disk.
It directly boots CentOS).

My question is, how can I now disable it looking for second disk on booting. I would like to disable it. How do i do this??

regds.,
Ramki.[/quote]

It sounds like it already is..... you said when you select it to boot to HD1 it does not look for the second disk.....

Basicly, it sounds like you need to set up chainloading to link the two OS, or a better option, it set them both up to boot from the same copy of grub or grub2.

atemp
Posts: 32
Joined: 2011/09/06 11:51:13

Re: Issue with two hard-drives, CentOS 6 and Ubuntu on each

Post by atemp » 2011/09/13 05:54:30

[quote]
HyperInferno wrote:

Basicly, it sounds like you need to set up chainloading to link the two OS, or a better option, it set them both up to boot from the same copy of grub or grub2.[/quote]

Since using the same GRUB for two OSs is suggested the second time, here comes my question: How is it possible to do so in a way that each OS is able to update the GRUB config when it e.g. upgrades the kernel?

vrkrao
Posts: 34
Joined: 2011/07/28 16:07:31

Re: Issue with two hard-drives, CentOS 6 and Ubuntu on each

Post by vrkrao » 2011/09/13 06:52:57

Almost there to mark this solved. I found this forum most active. Thank you all the guys for that!

I successfully created a boot menu for Ubuntu in CentOS. Now I'm successfully able to dual boot into CentOS and Ubuntu from the start-up menu of CentOS.

As I said in my prev post. On boot, system is trying to find second disk for booting. Then, Intel boot agent comes out and system goes to first disk with CentOS, where I'm able to dual boot.

Obviously, somewhere it is left that system has to look for second disk to boot on start up. Please advise, [b][color=0000FF]HOW CAN I DISABLE THE SYSTEM FROM LOOKING for SECOND DISK DURING BOOTING??[/color][/b]
With that we can mark this closed.

Thanks in Advance.


regds.,
Ramki.

atemp
Posts: 32
Joined: 2011/09/06 11:51:13

Re: Issue with two hard-drives, CentOS 6 and Ubuntu on each

Post by atemp » 2011/09/13 06:57:07

[quote]

As I said in my prev post. On boot, system is trying to find second disk for booting. Then, Intel boot agent comes out and system goes to first disk with CentOS, where I'm able to dual boot.

[/quote]

What is the system. A bootloader, linux or the system BIOS? I guess it is the BIOS, so go into the BIOS settings and disable the removed harddrive?

vrkrao
Posts: 34
Joined: 2011/07/28 16:07:31

Re: Issue with two hard-drives, CentOS 6 and Ubuntu on each

Post by vrkrao » 2011/09/13 07:09:59

[quote]
What is the system. A bootloader, linux or the system BIOS? I guess it is the BIOS, so go into the BIOS settings and disable the removed harddrive?[/quote]

Both the disks are connected as one hosts CentOS and other hosts Ubuntu.
Intel boot agent tries to find HD2 first (showing its' UUID), says no boot file found, then comes out and boots from Centos on HD1.
This happens whether HD2 is connected or disconnected.

regds.,
Ramki.

atemp
Posts: 32
Joined: 2011/09/06 11:51:13

Re: Issue with two hard-drives, CentOS 6 and Ubuntu on each

Post by atemp » 2011/09/13 07:12:36

Well, then it is a intel boot agent problem. Sorry, i never used it. You might want to look at the users guide of it?

vrkrao
Posts: 34
Joined: 2011/07/28 16:07:31

Re: Issue with two hard-drives, CentOS 6 and Ubuntu on each

Post by vrkrao » 2011/09/13 08:43:54

[quote]
atemp wrote:
Well, then it is a intel boot agent problem. Sorry, i never used it. You might want to look at the users guide of it?[/quote]

I'm convinced too that it's Intel Boot agent problem from BIOS. You may please mark this thread SOLVED.
Thank you so much all of you for your support. I really love CentOS.

regds.,
Ramki.

vrkrao
Posts: 34
Joined: 2011/07/28 16:07:31

Re: Issue with two hard-drives, CentOS 6 and Ubuntu on each

Post by vrkrao » 2011/09/13 08:54:34

[quote]
atemp wrote:
Well, then it is a intel boot agent problem. Sorry, i never used it. You might want to look at the users guide of it?[/quote]

SOLVED. It's Intel Boot Agent from BIOS. The boot order in BIOS was, first Intel Boot Agent, Then, Hard drives etc.
I changed the order. It solved the problem.
Once, again thanks to all of you.

It's SOLVED now.

Post Reply