Skip to contentSkip to conversation

Win95 Image does not boot, how can I debug where I am getting stuck

Qemu-devel Leah Cunningham 5 participants 7 messages Oct 11, 2005 – Oct 14, 2005

lore
Share & tools
lore
#0 lore raw

This probably isn't exactly the right question for a development mailing list, but the user-forumns did not seem to exist, so I hope you will forgive me or tell me where to ask a question like this.

I have an image of a Window's 95 hard disk, dd'd directly off the disk itself. I can mount the image loopback:

/tmp/win95 on /mnt type vfat (rw,loop=/dev/loop5)

I do not seem to be able to boot the image with qemu, trying with various versions, but I have no idea how to proceed with finding out what is wrong. How can I debug what is happening? Would there be a boot loader error?

If anyone can help, I would appreciate it. When I try to boot the image we hang right after the BIOS says "Booting from hard disk".

Cheers,
Leah

Signature · 2 lines
Leah Cunningham : d416-585-9971x692 : d416-703-5977 : m416-559-6511
Frauerpower! Co. : www.frauerpower.com : Toronto, ON Canada
#1 lore raw

My suggestion:
dd if=/dev/fd0 bs=512 of=win95.img
when fd0 contains a Win95 boot floppy with some diagnostics. Then qemu -boot a -fda win95.img -hda win95 &
and run the diagnostics.

That should tell you if there's an error in the image itself, perhaps in the MBR. If it's not in the image, then it's a bug somewhere in qemu. But that should get you started.

Wesley Parish

Quoting Leah Cunningham <[email protected]>:

Quoted 15 lines

This probably isn't exactly the right question for a development mailing
list, but the user-forumns did not seem to exist, so I hope you will forgive me or tell me where to ask a question like this.

I have an image of a Window's 95 hard disk, dd'd directly off the disk itself. I can mount the image loopback:

/tmp/win95 on /mnt type vfat (rw,loop=/dev/loop5)

I do not seem to be able to boot the image with qemu, trying with various versions, but I have no idea how to proceed with finding out what is wrong. How can I debug what is happening? Would there be a boot loader error?

Quoted 16 lines

If anyone can help, I would appreciate it. When I try to boot the image we hang right after the BIOS says "Booting from hard disk".

Cheers,
Leah

Signature · 9 lines
Leah Cunningham : d416-585-9971x692 : d416-703-5977 : m416-559-6511
Frauerpower! Co. : www.frauerpower.com : Toronto, ON Canada



_______________________________________________
Qemu-deve l mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

"Sharpened hands are happy hands.
"Brim the tinfall with mirthful bands"
- A Deepness in the Sky, Vernor Vinge

"I me. Shape middled me. I would come out into hot!"
I from the spicy that day was overcasked mockingly - it's a symbol of the other horizon. - emacs : meta x dissociated-press

#2 lore raw
In reply to Leah Cunningham
Quoted 11 lines

This probably isn't exactly the right question for a development mailing
list, but the user-forumns did not seem to exist, so I hope you will
forgive me or tell me where to ask a question like this.

I have an image of a Window's 95 hard disk, dd'd directly off the disk itself. I can mount the image loopback:

/tmp/win95 on /mnt type vfat (rw,loop=/dev/loop5)

did you dd the complete disk, or juste the partition?

Quoted 5 lines

I do not seem to be able to boot the image with qemu, trying with various versions, but I have no idea how to proceed with finding out what is wrong. How can I debug what is happening? Would there be a boot loader error?

Use tomsrtbt (www.toms.net/rb, and find the tomsrtbt.raw floppy image).

Boot with
qemu -fda tomsrtbt.raw -hda win95.img -boot a
then try to do a
fdisk -l /dev/hda
if you see your partition, mount it. If everything is in place (the boot flag, and so on) this is a win95 boot issue. (go to www.bootdisk.com to join a boot floppy for win95)
If fdisk complains, the win95.img is not a harddisk image. HTH

---------------------------------------------
Etes vous un consom'Acteur ? Toutes les saveurs équitables sont sur http://www.epicerie-equitable.com

#3 lore raw

Windows 95 (along with all the NTs, 98 and Me) is also very picky about the hardware it's being booted from. If it's not similar to the hardware it was installed on, it may either not boot at all or have very strange effects during operation. Try to set up a new blank Hardware Profile (in System Properties), then booting it into QEMU.

Quoted 31 lines · octane indice
Quoted 11 lines

This probably isn't exactly the right question for a development mailing
list, but the user-forumns did not seem to exist, so I hope you will
forgive me or tell me where to ask a question like this.

I have an image of a Window's 95 hard disk, dd'd directly off the disk itself. I can mount the image loopback:

/tmp/win95 on /mnt type vfat (rw,loop=/dev/loop5)

did you dd the complete disk, or juste the partition?

Quoted 5 lines

I do not seem to be able to boot the image with qemu, trying with various versions, but I have no idea how to proceed with finding out what is wrong. How can I debug what is happening? Would there be a boot loader error?

Use tomsrtbt (www.toms.net/rb, and find the tomsrtbt.raw floppy image).

Boot with
qemu -fda tomsrtbt.raw -hda win95.img -boot a
then try to do a
fdisk -l /dev/hda
if you see your partition, mount it. If everything is in place (the boot flag, and so on) this is a win95 boot issue. (go to www.bootdisk.com to join a boot floppy for win95)
If fdisk complains, the win95.img is not a harddisk image. HTH

Quoted 9 lines

---------------------------------------------
Etes vous un consom'Acteur ? Toutes les saveurs équitables sont sur http://www.epicerie-equitable.com

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

--
Mike

#4 lore raw
In reply to octane indice
Quoted 6 lines · octane indice
Quoted 6 lines

This probably isn't exactly the right question for a development mailing
list, but the user-forumns did not seem to exist, so I hope you will
forgive me or tell me where to ask a question like this.

Quoted 6 lines
Quoted 5 lines

I have an image of a Window's 95 hard disk, dd'd directly off the disk itself. I can mount the image loopback:

/tmp/win95 on /mnt type vfat (rw,loop=/dev/loop5)

did you dd the complete disk, or juste the partition?

I did dd the entire disk, but the partition table on it looks pretty goofy, so I wonder if I didn't get the boot sector and partition table in the image correctly.

Quoted 8 lines
Quoted 5 lines

I do not seem to be able to boot the image with qemu, trying with various versions, but I have no idea how to proceed with finding out what is wrong. How can I debug what is happening? Would there be a boot loader error?

Use tomsrtbt (www.toms.net/rb, and find the tomsrtbt.raw floppy image).

Quoted 8 lines

Boot with
qemu -fda tomsrtbt.raw -hda win95.img -boot a
then try to do a
fdisk -l /dev/hda
if you see your partition, mount it. If everything is in place (the boot flag, and so on) this is a win95 boot issue. (go to www.bootdisk.com to join a boot floppy for win95)
If fdisk complains, the win95.img is not a harddisk image.

That's a clever way to look at it, and it's clearly not a normal partition table, so I think that's a good clue for what I need to do to look into this. I'm sorry I didn't look at that more closely before sending this message, now I feel foolish, I was just so sure that the image was correct.

I'll try to recreate the image with a dos boot sector and such and see how it goes from there. Thanks again to everyone for all the help.

Leah

Signature · 2 lines
Leah Cunningham : d416-585-9971x692 : d416-703-5977 : m416-559-6511
Frauerpower! Co. : www.frauerpower.com : Toronto, ON Canada
#5 lore raw

Final update on this. I was able to pull another disk image that is working fine. The main difference was that I used 512k bs for the dd as opposed to 1024k (what I had done the first time). I just thought I'd throw that out in case anyone else ever runs into something like this.

Thanks again,
Leah

Quoted 46 lines · Leah Cunningham
Quoted 6 lines · octane indice
Quoted 6 lines

This probably isn't exactly the right question for a development mailing
list, but the user-forumns did not seem to exist, so I hope you will
forgive me or tell me where to ask a question like this.

Quoted 6 lines
Quoted 5 lines

I have an image of a Window's 95 hard disk, dd'd directly off the disk itself. I can mount the image loopback:

/tmp/win95 on /mnt type vfat (rw,loop=/dev/loop5)

did you dd the complete disk, or juste the partition?

I did dd the entire disk, but the partition table on it looks pretty goofy, so I wonder if I didn't get the boot sector and partition table in the image correctly.

Quoted 8 lines
Quoted 5 lines

I do not seem to be able to boot the image with qemu, trying with various versions, but I have no idea how to proceed with finding out what is wrong. How can I debug what is happening? Would there be a boot loader error?

Use tomsrtbt (www.toms.net/rb, and find the tomsrtbt.raw floppy image).

Quoted 8 lines

Boot with
qemu -fda tomsrtbt.raw -hda win95.img -boot a
then try to do a
fdisk -l /dev/hda
if you see your partition, mount it. If everything is in place (the boot flag, and so on) this is a win95 boot issue. (go to www.bootdisk.com to join a boot floppy for win95)
If fdisk complains, the win95.img is not a harddisk image.

That's a clever way to look at it, and it's clearly not a normal partition table, so I think that's a good clue for what I need to do to look into this. I'm sorry I didn't look at that more closely before sending this message, now I feel foolish, I was just so sure that the image was correct.

I'll try to recreate the image with a dos boot sector and such and see how it goes from there. Thanks again to everyone for all the help.

Leah

Signature · 2 lines
Leah Cunningham : d416-585-9971x692 : d416-703-5977 : m416-559-6511
Frauerpower! Co. : www.frauerpower.com : Toronto, ON Canada
#6 lore raw
In reply to Leah Cunningham
Quoted 8 lines · Leah Cunningham

This probably isn't exactly the right question for a development mailing list, but the user-forumns did not seem to exist, so I hope you will forgive me or tell me where to ask a question like this.

I have an image of a Window's 95 hard disk, dd'd directly off the disk itself. I can mount the image loopback:

/tmp/win95 on /mnt type vfat (rw,loop=/dev/loop5)

That looks suspiciously like a single partition, not a harddrive.. or did you specify partition offset and length when creating the loop device?

DOS (and Windows) requires the image to be a complete harddrive image, not a partition image.

Regards
Henrik