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

Re: using grub to install mbr on other hard drive.



On Thu, Nov 15, 2001 at 01:39:58PM -0800, Adam Shand wrote:
> 
> hey.
> 
> i'm building a debian disk image as a linux based 802.11b access point
> (using jouni malinen's host ap mode drivers).  basically at this point it
> works but i'm trying to convert from lilo to grub because as i become
> familiar with it i like it a lot better.
> 
> this image will be batch loaded onto fujitsu stylistic 1000's (which have
> a type 3 pcmcia hard drive).  so the basic procedure will be:
> 
>  * put pcmcia drive in laptop (shows up as /dev/hde)
>  * cfdisk /dev/hde
>  * mke2fs /dev/hde1
>  * mount /dev/hde1 /mnt
>  * tar Ixvf image.tar.bz2 /mnt
>  * install mbr onto drive so it's bootable
> 
> and here's where i get stuck.  i can make it work with lilo but i can't
> figure out how to do it with grub.  can anyone point me in the right
> direction please?
See man page for grub-install(8) .

Pay special attention to  --root-directory=DIR option, since GRUB needs to put
some stuff under DIR/boot .

I hope that helps.

> 
> thanks,
> adam.
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
	GPG key-id: 1024D/DF04A255                 Dmitriy
	AA16 8FAB 74E1 3511 83D0  9F4B F087 CEC9 DF04 A255
	* encrypted personal mail is very much preferred *
	Free Dmitry Sklyarov!  http://www.freesklyarov.org

Attachment: pgp2sN1SDuga3.pgp
Description: PGP signature


Reply to: