Results 1 to 7 of 7
I install grub on bochs imgae file, debug.img ( created by bximage according to "How to make a Bochs disk image" ).
I follow the steps:
grub> device (hd0) debug.img
...
- 09-01-2007 #1Just Joined!
- Join Date
- Aug 2007
- Posts
- 10
erro: install grub onto bochs image file
I install grub on bochs imgae file, debug.img ( created by bximage according to "How to make a Bochs disk image" ).
I follow the steps:
grub> device (hd0) debug.img
grub> geometry (hd0) 6095 16 63
grub> root (hd0)
grub> setup (hd0)
and I get the following info.:
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)"... 22 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+22 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"..
. succeeded
Done.
so I guess the grub install successfully.
The menu.1st is
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.21-1.3194.fc7)
root (hd0,0)
kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.21-1.3194.fc7.img
But when I run it under bochs. It reports "error 15: no file found". When I under command line
input:
grub> kernel /vmlinuz-2.6.21-1.3194.fc7
( it reports file not find )
But I am sure vmlinuz-2.6.21-1.3194.fc7 and initrd-2.6.21-1.3194.fc7.img are located at
/boot on the image file.
How to debug the issue? Anything wrong with installing grub?
Thanks
- 09-01-2007 #2Code:
grub> kernel /boot/vmlinuz-2.6.21-1.3194.fc7
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-01-2007 #3Just Joined!
- Join Date
- Aug 2007
- Posts
- 10
Problem with image file using grub under Bochs
I do so:
grub> kernel /boot/vmlinuz-2.6.21-1.3194.fc7
grub> initrd /boot/initrd-2.6.21-1.3194.fc7
grub> boot
But unfortunately, it reboot in stead of continuing the current boot.
Have you ever booted the HD image file under bochs using grub?
Please list your steps in details.
Thanks
- 09-01-2007 #4
I have done it once only. You have to specify root partition too.
try this
Replace <partition> with actual root partition.Code:grub> kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/<partition>
whats the output of this
Code:find /boot/grub/stage1
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 09-02-2007 #5Just Joined!
- Join Date
- Aug 2007
- Posts
- 10
error with bochs image file
I tried as you advised. The phemonenon still exists. After "kernel /boot/vm... ro root=/dev..." and "initrd /boot/ini...", I input "boot" and it always loop the booting.
I guess there is something wrong with installing grub. But don't how to debug and fix the problem.
Please advise any method and any tools.
Thanks
- 09-14-2007 #6Just Joined!
- Join Date
- Sep 2007
- Posts
- 6
- 09-14-2007 #7Just Joined!
- Join Date
- Aug 2007
- Posts
- 10
Error: bochs boot hard disk image file using grub
In fact, I try "root=LABEL=/", but it still "reboot" in stead of "boot". In this diak image, there is only one partition. I follow the steps stated in How to make a Bochs disk image | Ken Barr . Would you like to evaluate whether it is OK for steps. Would you like to take a try yourself using bochs? Very easy to repeat my error.
Thanks


Reply With Quote

