bug-grub
[Top][All Lists]
Advanced

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

Re: mkbimage && grub && geometry -w


From: tlaronde
Subject: Re: mkbimage && grub && geometry -w
Date: Tue, 26 Aug 2003 08:24:07 +0200 (MEST)
User-agent: IMP/PHP IMAP webmail program 2.2.42

En réponse à Greg Buchholz <address@hidden>:

Hello,

> 
>    I've been trying to get a bootable El Torito HD image for booting
> off
> of CD using grub.  I came across a script (mkbimage) which tries to
> make
> such an image.  Everthing appears to work fine until it gets to the the
> part where grub is invoked with the "geometry -w ..." option.  The
> error
> looks like this...
> 
> #####
>     GRUB  version 0.93  (640K lower / 3072K upper memory)
> 
>  [ Minimal BASH-like line editing is supported.  For the first word,
> TAB
>    lists possible command completions.  Anywhere else TAB lists the
> possible
>    completions of a device/filename. ]
> grub> geometry (hd0) 278 16 63
> drive 0x80: C/H/S = 278/16/63, The number of sectors = 280224,
> /dev/loop0
>    Partition num: 0,  Filesystem type is ext2fs, partition type 0x83
> grub> root (hd0,0)
>  Filesystem type is ext2fs, partition type 0x83
> grub> setup --stage2=/big/tmp/hd.image1/boot/grub/stage2 (hd0)
>  Checking if "/boot/grub/stage1" exists... yes
>  Checking if "/boot/grub/stage2" exists... yes
>  Checking if "/boot/grub/e2fs_stage1_5" exists... yes
>  Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  16 sectors are
> embedded.
> succeeded
>  Running "install --stage2=/big/tmp/hd.image1/boot/grub/stage2
> /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2
> /boot/grub/menu.lst"... succeeded
> Done.
> grub> geometry  -w  (hd0) 278 16 63
> 
> Error 11: Unrecognized device string
> 
> ######
> 
>    I can't seem to find any documentation about the -w switch, and a
> quick
> glance through the grub source didn't turn up any hints either.  

The command was added in patches I made against GRUB 0.92 for supporting
El Torito and unusual (extended) floppy format.

In this very case, the geometry command is useless but unfortunately GRUB in
its vanilla version can not boot El Torito (it goes LBA when the emulation
needs CVS).

So you need to retrieve GRUB 0.92, apply the patches to be found here :

http://alpha.polynum.com/misc/

to have the job done in conjunction with mkbimage.

Cheers,







reply via email to

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