qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck
@ 2005-10-11 22:30 Leah Cunningham
  2005-10-11 23:14 ` Wesley Parish
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Leah Cunningham @ 2005-10-11 22:30 UTC (permalink / raw)
  To: qemu-devel

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
-- 
Leah Cunningham : d416-585-9971x692 : d416-703-5977 : m416-559-6511
Frauerpower! Co. : www.frauerpower.com : Toronto, ON Canada

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck
  2005-10-11 22:30 [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck Leah Cunningham
@ 2005-10-11 23:14 ` Wesley Parish
  2005-10-12  5:34 ` octane indice
  2005-10-12 21:13 ` Henrik Nordstrom
  2 siblings, 0 replies; 7+ messages in thread
From: Wesley Parish @ 2005-10-11 23:14 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

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 <leah@frauerpower.com>:

> 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
> -- 
> Leah Cunningham : d416-585-9971x692 : d416-703-5977 : m416-559-6511
> Frauerpower! Co. : www.frauerpower.com : Toronto, ON Canada
> 
> 
> 
> _______________________________________________
> Qemu-deve l mailing list
> Qemu-devel@nongnu.org
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck
  2005-10-11 22:30 [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck Leah Cunningham
  2005-10-11 23:14 ` Wesley Parish
@ 2005-10-12  5:34 ` octane indice
  2005-10-12 15:52   ` Mike Swanson
  2005-10-13  0:08   ` Leah Cunningham
  2005-10-12 21:13 ` Henrik Nordstrom
  2 siblings, 2 replies; 7+ messages in thread
From: octane indice @ 2005-10-12  5:34 UTC (permalink / raw)
  To: qemu-devel

> 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?

> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck
  2005-10-12  5:34 ` octane indice
@ 2005-10-12 15:52   ` Mike Swanson
  2005-10-13  0:08   ` Leah Cunningham
  1 sibling, 0 replies; 7+ messages in thread
From: Mike Swanson @ 2005-10-12 15:52 UTC (permalink / raw)
  To: qemu-devel

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.

On 10/11/05, octane indice <octane@alinto.com> wrote:
> > 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?
>
> > 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
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>


--
Mike

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck
  2005-10-11 22:30 [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck Leah Cunningham
  2005-10-11 23:14 ` Wesley Parish
  2005-10-12  5:34 ` octane indice
@ 2005-10-12 21:13 ` Henrik Nordstrom
  2 siblings, 0 replies; 7+ messages in thread
From: Henrik Nordstrom @ 2005-10-12 21:13 UTC (permalink / raw)
  To: qemu-devel

On Tue, 11 Oct 2005, Leah Cunningham wrote:

> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck
  2005-10-12  5:34 ` octane indice
  2005-10-12 15:52   ` Mike Swanson
@ 2005-10-13  0:08   ` Leah Cunningham
  2005-10-14  0:24     ` Leah Cunningham
  1 sibling, 1 reply; 7+ messages in thread
From: Leah Cunningham @ 2005-10-13  0:08 UTC (permalink / raw)
  To: qemu-devel

On Wed, 2005-10-12 at 07:34 +0200, octane indice wrote:
> > 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?

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.

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

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

-- 

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck
  2005-10-13  0:08   ` Leah Cunningham
@ 2005-10-14  0:24     ` Leah Cunningham
  0 siblings, 0 replies; 7+ messages in thread
From: Leah Cunningham @ 2005-10-14  0:24 UTC (permalink / raw)
  To: qemu-devel

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

On Wed, 2005-10-12 at 20:08 -0400, Leah Cunningham wrote:
> On Wed, 2005-10-12 at 07:34 +0200, octane indice wrote:
> > > 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?
> 
> 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.
> 
> > > 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.
> 
> 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
> 
-- 
Leah Cunningham : d416-585-9971x692 : d416-703-5977 : m416-559-6511
Frauerpower! Co. : www.frauerpower.com : Toronto, ON Canada

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-10-14  0:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-11 22:30 [Qemu-devel] Win95 Image does not boot, how can I debug where I am getting stuck Leah Cunningham
2005-10-11 23:14 ` Wesley Parish
2005-10-12  5:34 ` octane indice
2005-10-12 15:52   ` Mike Swanson
2005-10-13  0:08   ` Leah Cunningham
2005-10-14  0:24     ` Leah Cunningham
2005-10-12 21:13 ` Henrik Nordstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).