HowTo make bootable file image from /dev/hda1
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 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
Quoted 40 lines
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/dosimagedirectory (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
Signature · 4 lines
__ __ _ I N C. http://www.sysdev.org / __|\\// __|| \ __ __ / [email protected] \__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities |___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers