bug-grub
[Top][All Lists]
Advanced

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

More on installing grub on a disk that isn't the first disk, but will be


From: Harmon S. Nine
Subject: More on installing grub on a disk that isn't the first disk, but will be
Date: Thu, 21 Sep 2000 17:01:31 -0400 (EDT)

To expound upon my previous message, I think I know what needs to be done,
but currently grub won't allow it.

The "drive" that isn't the first hard drive on my machine (but will be in
another machine) is actually a PCMCIA IDE flash card which, when inserted,
is mapped as /dev/hde (i.e. the fifth hard drive).  This flash will become
the primary IDE hard drive on another machine, and actually be seen as
such, i.e. it will not be seen as a PCMCIA device there.


On my machine, grub doesn't recognize the flash (/dev/hde) as the fifth
hard drive (i.e. grub's (hd4)), so I give the command:

grub>  device (hd4) /dev/hde


which grub readily accepts (incidentally, stage2 is installed on the
flash under the standard directory, /boot/grub).

Then I install grub on the MBR of the flash using the following command:

grub> setup (hd4) (hd0,0)
 Running "embed /boot/grub/e2fs_stage1_5 (hd4)"
 16 sectors are embedded.
 Running "install /boot/grub/stage1 d (hd4) (hd4)1+16 p 
(hd0,0)/boot/grub/stage2"
Done.


I use (hd0,0) as the third argument in the above command, since (hd4) will
be (hd0) on the other machine.

The resulting "embed" command is fine.  However, the install command
*should* be (yes, no, maybe?):

install /boot/grub/stage1 d (hd4) (hd0)1+16 p (hd0,0)/boot/grub/stage2
                                   ^^^

I try this manually, but I get:

grub> install /boot/grub/stage1 d (hd4) (hd0)1+16 p (hd0,0)/boot/grub/stage2

Error: Invalid device requested


Apparently, the "install" command, when run manually, doesn't recognize
the "device" command I entered above ...


I there any way around this?


TIA


-- Harmon


-- 
---------------------------
Dr. Harmon S. Nine
Netarx, Inc.

30910 Telegraph Road
Bingham Farms, MI 48025

PH.  (248)647-9800
FX.  (248)647-9840



reply via email to

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