grub-devel
[Top][All Lists]
Advanced

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

install grub-legacy for a loop device


From: Francesco Lucconi
Subject: install grub-legacy for a loop device
Date: Thu, 9 Jul 2015 10:40:34 +0200

Hi guys,
I'm working with grub bootloader (legacy version 0.97) for target i386-pc and I try to  install within my loop device /dev/loop0 where I created several ext4 partitions.
My goal is to install grub inside /dev/loop0p1, so I've used the following instructions:

sudo mount -t ext4 /dev/loop0p1 tmp_dir
sudo cp grub-0.97/lib/grub/i386-pc/stage* tmp_dir/boot/grub/
cat grub-0.97/lib/grub/i386-pc/stage1 grub-0.97/lib/grub/i386-pc/stage2 > grub-boot.img

sudo qemu-system-i386 -boot a -fda grub-boot.img -hda /dev/loop0

I expected that I could complete the procedure with qemu window (as shown below)....

# grub> root (hd0,0)
# grub> find /boot/grub/stage2
#  (hd0,0)
# grub> setup (hd0)
#  Checking if "/boot/grub/stage1" exists... yes
#  Checking if "/boot/grub/stage2" exists... yes
#  Checking if "/boot/grub/e2fs_stage1_5" exists... yes
#  Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
# succeeded
#  Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
# Done.

.....but it doesn't happen and instead my virtual machine is hanged on after "GRUB Loading stage2..........." print

What had I done wrong? Can you give me any kind of tip to solve that?
Regards,
Francesco


Now I want to enable ethernet drivers within grub but I haven't found yet the configure options that I need for the activation. Furtermore using the command "net_ls_cards" the grub shows me nothing.
Can you give me any tips to solve that?

reply via email to

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