From: Joaco <root@thekernel.sysdev.org>
To: linux-msdos@vger.kernel.org
Subject: Re: HowTo make bootable file image from /dev/hda1
Date: Mon, 10 Nov 2003 12:10:29 -0800 (PST) [thread overview]
Message-ID: <200311102010.hAAKAUG16116@thekernel.sysdev.org> (raw)
In-Reply-To: <200311102248.50694.bernhard.bialas@t-online.de> from "Bernhard Bialas" at Nov 10, 2003 10:48:50 PM
I had a similar problem with dd, IIRC what I did
was mkfatimage16 -k32768 -fhdimage -b/dev/hda1
fixed my ~/.dosemurc to boot $_hdimage=/hdimage
Then, I booted that with dosemu and redirected my
/dev/hda1 (/dosc) drive to D: with LREDIR and copyed
d: -> c:
TonyB
>
> 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
>
>
--
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers
next prev parent reply other threads:[~2003-11-10 20:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-10 21:48 Re:HowTo make bootable file image from /dev/hda1 Bernhard Bialas
2003-11-10 20:10 ` Joaco [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-10-28 2:17 HowTo " tonyb
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=200311102010.hAAKAUG16116@thekernel.sysdev.org \
--to=root@thekernel.sysdev.org \
--cc=linux-msdos@vger.kernel.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