LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   GRUB Installation in Embedded Device (https://www.linuxquestions.org/questions/linux-hardware-18/grub-installation-in-embedded-device-849450/)

vickyqasim 12-10-2010 04:00 AM

GRUB Installation in Embedded Device
 
Hi,

I want to make a bootable USB drive with a Embedded Linux Image.
The Embedded Linux Configuration tool has given me the vmlinux(image) and the menu.lst.

I have done the following Steps;

# fdisk /dev/sdb
Then I got some option I deleted the old partition and made new one and selected the primary partition.
then formatted the partition in ext2.

# mkfs.ext2 /dev/sdb1
# mount /dev/sdb1 /mnt

# mkdir -p /mnt/boot/grub
# cp menu.lst /mnt/boot
# cp vmlinux /mnt/boot
# umount /mnt

after that I ran the grub
# grub
grub> device (hd0) /dev/sdb
grub> root (hd0,0)

Upto here every thing was fine
after this command;

grub> setup (hd0)
i got the Following error message:
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 15: File not found


I did not get what is the Problem, My host System is Ubuntu 10.04.
Even in the /boot/grub folder also I did not get the stage1 file.

Please suggest how to further proceed.

Thank you

Larry Webb 12-10-2010 04:25 AM

I may not understand what you are trying to do.

If your source grub is from a ubuntu 10.4 cd then you are using grub2

Are you trying to boot the usb using the live cd?

Are you try to make the usb boot evertime it is installed?


All times are GMT -5. The time now is 05:16 PM.