Re: Compact flash and 'GRUB GRUB'

2003-09-14 Thread Thierry Laronde
On Thu, Sep 11, 2003 at 02:44:34PM +0100, MAL wrote:
> 
> Now, the solution.  Running:
> 
> setup --force-lba (hd2,0)
> 
> Worked.
> 
> I do not understand why, as every documentation I have read states that 
> the compact flash should be dealt with in CHS mode.  The BIOS is set to 
> use CHS, Linux uses raw CHS values, and so I would assume that is how 
> grub should treat it!
> 
> If anyone can enlighten me on this, it'd be much appreciated.

I think this is the very same thing as for El Torito: El Torito is based
on lba able BIOSes and builds an CHS emulation on that. Here this is the
very same thing I guess: to obtain the BIOS id of the device you need LBA,
but you need to access after that with CHS. I think that without the
force LBA flag, only the traditionnal/old int13 related to CHS was used
and the device was not accessible this way.

This is just a guess.

Cheers,
-- 
Thierry Laronde (Alceste) <[EMAIL PROTECTED]>
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C


___
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub


Re: Compact flash and 'GRUB GRUB'

2003-09-11 Thread MAL
I'm sorry for replying to my own post, but I have found a solution in a 
way I did not expect to work, (or indeed understand why it does).

First i'd like to point out that I wrote two lines wrong in my previous 
mail.  These lines:
> root (hdc,0)
> setup (hdc)
were actually:
root (hd2,0)
setup (hd2)

Now, the solution.  Running:

setup --force-lba (hd2,0)

Worked.

I do not understand why, as every documentation I have read states that 
the compact flash should be dealt with in CHS mode.  The BIOS is set to 
use CHS, Linux uses raw CHS values, and so I would assume that is how 
grub should treat it!

If anyone can enlighten me on this, it'd be much appreciated.

Cheers,
MAL
MAL wrote:
I have a system with three hard disks, (hda, hdb and hdd), and a 128MB 
compact flash disk, (hdc), with C/H/S 978/8/32, (detected as that by 
both the BIOS and the kernel).

Using linux kernel 2.4.22, booting from hdd, I created a type  0x83 
partition on the compact flash, using the full size of the disk.  I then 
formatted it with ext2, copied a minimal linux system to it, chrooted to 
the partition, and ran grub.

I issed the commands:

root (hdc,0)
setup (hdc)
Which executed ok, (grub.conf and the relevant stages are in /boot/grub).

However when I boot the compact flash by selecting hdd2 in the BIOS, 
(being the third disk), I simply get 'GRUB GRUB' printed to the screen, 
and no more.

I tried booting the hard disk with the kernel parameter 'hdc=flash', 
then chrooting to the flash and installing grub, but this doesn't help.

I have had grub running fine on this same compact flash in this same 
motherboard, with a different linux kernel/system utils/grub version, 
(0.92 I think), before.

Can anyone point out what's going wrong?

Cheers,
MAL


___
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub