Hello!
Please review your steps. Part of the problem is that even though there is
support within GRUB legacy for booting from a device that has been formatted
using EXT3 style modes. And indeed I've seen them installed accordingly, the
problem is that it won't boot without an initial root device file.
Also I see in your steps a series of glaring errors. Note the one concerning
the file-system creation versus how it was mounted. A partition was created
using the appropriate program. It is the very first one of four. Then you
chose to create the file system within.
Then you chose to mount it. It is that "grep" function that confused some of
the things.
And secondly every time grub gets installed to a bootable device, it goes
under the boot directory.
Feel free to try again, but leave that "grep" function out. Also please
describe what distribution you are using and of course the target for this
flash card.
--
Gregg C Levine address@hidden
"The Force will be with you always." Obi-Wan Kenobi
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of tony vong
Sent: Sunday, June 08, 2008 9:08 PM
To: address@hidden
Subject: Someone please help! Trying to make a 8M flash card bootable using
grub by got this error.
First, I mkfs the flashcard.
address@hidden ~]# mkfs /dev/sda1 -t ext3
mke2fs 1.35 (28-Feb-2004)
max_blocks 8011776, rsv_groups = 978, rsv_gdb = 30
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
1960 inodes, 7824 blocks
391 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=8126464
1 block group
8192 blocks per group, 8192 fragments per group
1960 inodes per group
Writing inode tables: done
inode.i_blocks = 62, i_size = 67383296
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
address@hidden ~]#
Second, I mounted /dev/sda1 to /mnt/flash
address@hidden ~]# mount | grep sda
/dev/sda1 on /mnt/flash type ext3 (rw)
address@hidden ~]#
Third, I copied over the stage files
address@hidden ~]# mkdir /mnt/flash/grub
address@hidden ~]# cp /boot/grub/stage* /boot/grub/e2fs_stage1_5
/mnt/flash/grub/
address@hidden ~]#
Fourth, I install grub, but I got stuck at "root(hd0,0)". Can anyone help ?
grub> device (hd0) /dev/sda
grub> root (hd0,0)
Filesystem type unknown, partition type 0x1
grub> geometry (hd0)
drive 0x80: C/H/S = 246/2/32, The number of sectors = 15744, /dev/sda
Partition num: 0, Filesystem type unknown, partition type 0x1
grub>