On Mon, 10 Aug 2015 21:49:12 -0400, Benjamin David Lunt <
zf...@fysnet.net> wrote:
> "Rod Pemberton" <b...@fasdfrewar.cdm> wrote in message
> news:op.x26f8rfhyfako5@localhost...
>> Now, on to the next question for me to find an answer to.
>> Just how does one fdisk, format, ans sys a DOS image for
>> Bochs? ...
>
> Depends. Do you have a bootable DOS floppy image?
Yes. Mostly MS-DOS v7.10, but also FreeDOS.
> If so, does that floppy image have fdisk.exe and
> format[.exe | .com] on it?
MS-DOS, yes. FreeDOS, with whatever their equivalent
utils are called.
> The way I do it is use any utility to create a file the
> size of the hard drive I wish.
Yes. This is where I have some issues.
I can create such a file in Linux, I think. I can copy
files to it from Linux. But, I can't run fdisk, format,
or sys from Linux, nor can I access such a file from DOS
to do so. On Linux, I know there is a utility that will
install the MBR to a hard disk image. There must be one
to format too. On DOS, I'm guessing I'd probably have
to setup a ramdisk as a hard disk to fdisk, format, and
sys, then use partcopy or rawread to get an image file.
> Old Bochs versions required the file to be a multiple
> of cylinder size. Recent versions no longer require this.
Ok.
> Then I boot a DOS floppy that has DOS 5.0 or Freedos
> installed on it with fdisk and format already on it.
> Then boot the floppy, and off I go.
I'm assuming you mean you boot a DOS floppy image with
Bochs and not the PC itself.
> However, I also have a utility that will create a MBR and
> various partitions within an image file. It does nothing
> more than create a MBR table, copying the MBR code from
> a given file, if specified, and then placing partitions
> within the image file from already created and formatted
> images on the host.
>
> For example, given the following files:
>
> mbr.bin
> part1.img
> part2.img
> part3.img
>
> I can run the app telling it to create "image1.img" using
> mbr.bin as the boot code, placing part1, part2, and part3
> within the image at specified positions.
Yes, I'd need such a utility or have to manually construct
an image from parts such as this using partcopy and/or
rawread/rawrite. In Linux, you can mount an image and treat
it like a normal filesystem, but I can't run the DOS utils
from Linux against the image. Well, I don't know how to ...
If I had the image copied to DOS, I still doubt I could
treat the image like a filesystem, unless maybe loaded to
a ramdisk. I don't want to set up an actual partition to
copy as an image, but that is an option.
7-zip will extract but not create floppy images. UNDDI will
extract in DOS but not create floppy images.
> I believe I included this app with Volume 1 of my book
> series...yes, called MPART.EXE. Here is an example from the
> example resource file (watch for line wrap):
>
...
> Anyway, it is quite simple to create hard drive images, with
> multiple partitions if desired, using existing tools.
Ok. If you have any more suggestions about that, that would
be good.
> I also have WinImage installed on one of my test machines.
It would need to work with Windows 98/SE for me to be able
to use it. Preferably, I need DOS or Linux utils.
> It is an older version, but you can mount a hard drive image
> through Windows, copying files as if it was an actual hard
> drive.
I was thinking I needed a ramdisk for DOS and it would be
best if compatible with John Fine's partcopy.exe.
> It is Shareware, or whatever that type of software is
> called now, the type where you can use it but should register
> and pay a small fee to continue using it. (I haven't used it in
> a while, I wonder if it has a time limit...)
Ok.
> Hope this helps,
Getting there.
> P.S. 1.44 meg floppy images of Freedos are hard to find, but
> there is a floppy image of FreeDOS of each available floppy
> size at
http://odin.fdos.org/odin2005/. You have to add
> 'fdisk' and 'format' to the floppy image
> (
http://www.freedos.org/software/?cat=base)
> but once you have, you have a bootable FreeDOS floppy image
> with the utilities you need.
I constructed my own for Freedos to make sure all the typical
utilities I had on MS-DOS boot disks were present. I thought
I started with a standard FreeDOS boot disk image. Yes, I
have a directory labeled ODIN2005 as well as four other FreeDOS
image, at least one of which is mine, and at least one which
isn't (360KB).