First, I mkfs the flashcard.

[EMAIL PROTECTED] ~]# 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.
[EMAIL PROTECTED] ~]# 

Second, I mounted /dev/sda1 to /mnt/flash
[EMAIL PROTECTED] ~]# mount | grep sda
/dev/sda1 on /mnt/flash type ext3 (rw)
[EMAIL PROTECTED] ~]# 

Third, I copied over the stage files
[EMAIL PROTECTED] ~]# mkdir /mnt/flash/grub
[EMAIL PROTECTED] ~]# cp /boot/grub/stage* /boot/grub/e2fs_stage1_5 
/mnt/flash/grub/
[EMAIL PROTECTED] ~]# 

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> 





      
_______________________________________________
Bug-grub mailing list
Bug-grub@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to