public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Bernhard.Bialas@t-online.de (Bernhard Bialas)
To: tonyb@sysdev.org
Cc: linux-msdos@vger.kernel.org
Subject: Re:HowTo make bootable file image from /dev/hda1
Date: Mon, 10 Nov 2003 22:48:50 +0100	[thread overview]
Message-ID: <200311102248.50694.bernhard.bialas@t-online.de> (raw)

Hello,

<Has anybody made a successful boot image from a fat16
<partition for use with dosemu 1.99
<
<I have the partition mounted as /dosc but that drive
<is going away, so need to virtualize to a file image.
<
<Tried
 <dd if=/dev/hda1 of=/hdimage etc...
 <mkfatimage16 -k32768 -f hdimage -b /dosc /dosc
<
<tried dd of the mbr to a separate file in combination
<with the above and none work???

I had the same idea and it seems it does not work for the dd-command.
What work is following:

1. Create a hda image with 
dd if=/dev/hda2 of=hda2.img 
(my DOS is on hda2).
Than I have created a mount point /mnt/dosimage (with mkdir)
After this I have mounted the image as loop device with 
 mount /LIBDIR/hda2.img  /mnt/dosimage -t msdos -o loop=/dev/loop0
Now it's possible to lredir the image on the /mnt/dosimage directory (in the 
autoexec.bat) and  use the programs in this drive, but unfortunately, I had 
no success to start this image.

By the way, but not helpfull for you, it is possible to boot  from a bootable 
floppy image created with 
dd if=/dev/fd0 of=floppy.img
Then in dosemu.conf 
$_vbootfloppy=floppy.img and it works at least if the floppy was 1,44 MB. With 
720 kB floppys I hadn't success.

Best regards
Bernhard Bialas



             reply	other threads:[~2003-11-10 21:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10 21:48 Bernhard Bialas [this message]
2003-11-10 20:10 ` HowTo make bootable file image from /dev/hda1 Joaco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200311102248.50694.bernhard.bialas@t-online.de \
    --to=bernhard.bialas@t-online.de \
    --cc=linux-msdos@vger.kernel.org \
    --cc=tonyb@sysdev.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox