bug-grub
[Top][All Lists]
Advanced

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

Re: [Bug-grub] Cannot build GRUB boot disk with grub-install


From: Jason Thomas
Subject: Re: [Bug-grub] Cannot build GRUB boot disk with grub-install
Date: Fri, 30 Nov 2001 09:26:10 +1100
User-agent: Mutt/1.3.23i

On Thu, Nov 29, 2001 at 09:54:04PM +0200, Pekka Enberg wrote:
> Hello,
> 
> I grabbed a copy of GNU GRUB 0.5.96.1 from [1], installed
> it and tried to make a GRUB boot disk using grub-install
> as instructed in [2]. I got the following error:

this version is old try 0.90 and this problem is fixed in the newer
version

> cherry /home/pekka 2 % mount /mnt/floppy/
> cherry /home/pekka 3 % grub-install --root-directory=/mnt/floppy '(fd0)'
> Probing devices to guess BIOS drives. This may take a long time.
> /usr/local/sbin/grub-install: -e: command not found
> /usr/local/sbin/grub-install: -e: command not found
> expr: non-numeric argument

this error is caused by missing slashs see below

> 
>     GRUB  version 0.5.96.1  (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> root (fd0,)
> 
> Error 12: Invalid device requested
> 
> grub> setup  --stage2=/mnt/floppy/boot/grub/stage2 --prefix=/boot/grub 
> (fd0)
> 
> Error 12: Invalid device requested
> 
> grub> quit
> 
> 
> I ran grub-install with option '--debug' and traced the problem
> back to lines 79-82 of grub-install:
> 
>     case "$host_os" in
>     linux*)
>         tmp_disk=`echo "$1" | sed -e 's%\([sh]d[a-z]\)[0-9]*$%\1%' \
                                                                     ^^
add a slash to the end of the above line

>                                   -e 's%/part[0-9]*$%/disc%'`
>         tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%' \
                                                                       ^^
add a slash to the end of the above line

>                                   -e 's%.*/\(disc\|part\([0-9]*\)\)$%\2%'`
>         ;;
> 
> 
> I'm running Red Hat Linux 6.2 if that is of any use.

Attachment: pgp0lt7LQV8ED.pgp
Description: PGP signature


reply via email to

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