Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Code:
    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

  3. #3
    Just 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

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    I have done it once only. You have to specify root partition too.
    try this
    Code:
    grub> kernel /boot/vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/<partition>
    Replace <partition> with actual root 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

  5. #5
    Just 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

  6. #6
    Just Joined!
    Join Date
    Sep 2007
    Posts
    6
    Quote Originally Posted by xuedan View Post
    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


    Please check this lable root=/dev/VolGroup00/LogVol00 (is it is correct or not) also check your disk partition because grub.conf has located in first 512MB

  7. #7
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •