public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* HowTo make bootable file image from /dev/hda1
@ 2003-10-28  2:17 tonyb
  0 siblings, 0 replies; 3+ messages in thread
From: tonyb @ 2003-10-28  2:17 UTC (permalink / raw)
  To: linux-msdos

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

Thanks in advance,
TonyB


-- 
  __      __  _     I N C.               http://www.sysdev.org
/ __|\\// __||  \  __   __          /         tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ /        \/  System Tools / Utilities
|___/ || ___/|_ /\___|\_/        WIntel / Linux Device Drivers


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

* Re: HowTo make bootable file image from /dev/hda1
  2003-11-10 21:48 Re:HowTo make bootable file image from /dev/hda1 Bernhard Bialas
@ 2003-11-10 20:10 ` Joaco
  0 siblings, 0 replies; 3+ messages in thread
From: Joaco @ 2003-11-10 20:10 UTC (permalink / raw)
  To: linux-msdos

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


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

* Re:HowTo make bootable file image from /dev/hda1
@ 2003-11-10 21:48 Bernhard Bialas
  2003-11-10 20:10 ` HowTo " Joaco
  0 siblings, 1 reply; 3+ messages in thread
From: Bernhard Bialas @ 2003-11-10 21:48 UTC (permalink / raw)
  To: tonyb; +Cc: linux-msdos

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



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

end of thread, other threads:[~2003-11-10 21:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-10 21:48 Re:HowTo make bootable file image from /dev/hda1 Bernhard Bialas
2003-11-10 20:10 ` HowTo " Joaco
  -- strict thread matches above, loose matches on Subject: below --
2003-10-28  2:17 tonyb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox