From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joaco Subject: Re: HowTo make bootable file image from /dev/hda1 Date: Mon, 10 Nov 2003 12:10:29 -0800 (PST) Sender: linux-msdos-owner@vger.kernel.org Message-ID: <200311102010.hAAKAUG16116@thekernel.sysdev.org> References: <200311102248.50694.bernhard.bialas@t-online.de> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200311102248.50694.bernhard.bialas@t-online.de> from "Bernhard Bialas" at Nov 10, 2003 10:48:50 PM List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-msdos@vger.kernel.org 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, > > < > < >
< > > 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