[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cannot build GRUB boot disk with grub-install
From: |
Pekka Enberg |
Subject: |
Cannot build GRUB boot disk with grub-install |
Date: |
Thu, 29 Nov 2001 21:54:04 +0200 (EET) |
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:
cherry /home/pekka 1 % /sbin/mke2fs /dev/fd0
mke2fs 1.18, 11-Nov-1999 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
184 inodes, 1440 blocks
72 blocks (5.00%) reserved for the super user
First data block=1
1 block group
8192 blocks per group, 8192 fragments per group
184 inodes per group
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
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
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%'
-e 's%/part[0-9]*$%/disc%'`
tmp_part=`echo "$1" | sed -e 's%.*/[sh]d[a-z]\([0-9]*\)$%\1%'
-e 's%.*/\(disc\|part\([0-9]*\)\)$%\2%'`
;;
I'm running Red Hat Linux 6.2 if that is of any use.
[1] ftp://alpha.gnu.org/gnu/grub/
[2] http://www.gnu.org/manual/grub-0.90/html_mono/grub.html#SEC10
--
Pekka Enberg
- Cannot build GRUB boot disk with grub-install,
Pekka Enberg <=