bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Booting from second compact flash - Found a Solution


From: Mathieu Chouquet-Stringer
Subject: Re: Booting from second compact flash - Found a Solution
Date: 26 Mar 2002 18:11:57 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

I would say it makes sense (the fact that it doesn't work).
If you ask your BIOS to boot from the second drive, I guess it's probably
renumbering the drives (meaning 0 becomes 1 and 1 becomes 0).

So when you want to boot from IDE 1, grub tries to get its files from hd1
(that's what you told him to do when you setup the thing) which is the real
IDE 0 and not IDE 1 as you expect (because of the BIOS)... Meaning that if
you don't have IDE 0 and IDE 1, you cannot boot from IDE 1...

So re-do the install with root (hd0,0)

address@hidden ("Hari Narayanan") writes:
> HI
> 
> I found a solution to the problem I posed below. If anyone is interested
> let me know.
> 
> 
> Hari
> 
> 
> I am using Grub 0.90 on 2.4.14 kernel. I have two identical
> 128 MB compact flashes mounted on /dev/hda and /dev/hdc
> (they are IDE 0 and 1 drives ).
> 
> I have two partitions on each drive.
> Partition 0 is the /boot partition and partition 1 is the root
> partition.
> 
> I am able to boot with no problem from the first drive (/dev/hda or
> hd0 ) whether I have a second disk or not.
> 
> However I cannot boot from the second disk unless I have a good disk
> 1 also ( that is a good /dev/hda1 partition with the good GRUB files).
> I can select which disk I want to boot from first from the BIOS.
> 
> I edited the device.map in the second ide drive to say
> (fd0) /dev/fd0
> (hd0) /dev/hda
> (hd1) /dev/hdc
> 
> and invoked grub as follows
> 
> grub --device-map=device.map
> grub> root (hd1,0)
> grub> setup (hd1)
> grub> quit
> 
> 
> It installs correctly as far as I can tell. To try this I put in an
> empty ide0 drive ( with a good MBR and a Bootable partiton but no
> grub files ). It doesn't boot. Stops at GRUB
> 
> When I put my good bootable working ide0 in and boot from the second drive
> it works fine.
> 
> Any ideas how to make it boot from the second IDE drive even if the first
> drive is bad ?.
> 
> Thanks in advance
> Hari Narayanan
> 
> 
> _________________________________________________________________
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> _______________________________________________
> Bug-grub mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-grub
> 

-- 
Mathieu Chouquet-Stringer              E-Mail : address@hidden
    It is exactly because a man cannot do a thing that he is a
                      proper judge of it.
                      -- Oscar Wilde



reply via email to

[Prev in Thread] Current Thread [Next in Thread]