Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > MSDOS Programmer > Re: Utility to ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 8 Topic 421 of 502
Post > Topic >>

Re: Utility to "mount" FAT filesystem images for DOS/Win98?

by "Rod Pemberton" <do_not_have@[EMAIL PROTECTED] > Nov 12, 2006 at 04:15 AM

"Alexei A. Frounze" <alexfru@[EMAIL PROTECTED]
> wrote in message
news:fY2dnaY9jp05P8vYnZ2dnUVZ_qWdnZ2d@[EMAIL PROTECTED]
> Rod Pemberton wrote:
> > Does anyone know of a DOS/Win98 utility to "mount" a filesystem image
> > (loopback?) or cause the image to be accessed as if it is a drive
> > under DOS (like a ramdisk)?
> >
> > If I use the Windows ****t of Linux's mkdosfs to create, say a FAT16
> > filesystem image (not a partition),
> > http://www.mager.org/mkdosfs/
> >
> > or, if I use rawread.exe or partcopy (John Fine) to create a FAT12
> > filesystem image .img from a floppy, is there a utility or .sys
> > driver to make that file/filesystem image/disk image a drive
> > (E:,F:,G:, etc.) in the DOS or Win98 drive chain?
> >
> > Or, perhaps, a ****t of MTOOLS for DOS or Win98?
> >
> > I found a partially implemented DOS ****t (insufficient) of MTOOLS
> > here: http://www.frontiernet.net/~fys/mtools.htm
> >
> > I did locate a program called DiskImg for WinNT...
>
> What do you want that for? To create a disk image with some files in it
for
> the use with the OS? Or do you want to test your FAT code on such an
image?
> Both?
>

Basically...  I have additional hard drives, but I'd prefer not to have to
install them just to do preliminary FAT12/16/32 partition tests.   It's
easy
to do in Linux, but I (currently) need DOS or Win98.  With the Windows
mkdosfs, half the problem, creating FAT12/16/32 images, became really
easy.
But, you also need a way to mount them (?), copy files (mtools?), etc... 
I
could copy the images into memory and then run the code against the memory
(like a custom ramdisk) but I'd much prefer to find a utility or driver or
ramdisk code.

> For the testing purposes I wrote a rather dumb application that creates
for
> me two complete HDD images:
> 1st:
<snip>
> 2nd:
<snip>
> The images contain proper MBRs, bootsectors and initialized FATs, where
the
> only missing things are: code in MBRs/boot sectors and CHS values in
MBRs.
I
> don't use those and so I don't compute and put them in.
>
> I ran my FAT unit test with these images mounted.

How?

> Seems like with this unit
> test and these images I cover over 80% (as per gcov) of my FAT code.
Which
> is a quite good number given the fact the code that isn't covered is
mostly
> this:
> - I/O error handling
> - FAT error/corruption handling -- honestly, I don't plan to make the
code
> unbreakable or make FAT checking/fixing tools
> - floppy changes -- requires a model of a floppy drive, just file I/O
isn't
> enough to test this functionality automatically, the same applies to I/O
> error handling too -- this is a testability issue
> - big files (4 GB) -- also a testability issue -- a 4GB file needs an
image
> bigger than 4GB, which means that the image must be scattered across
several
> files of size under 4 GB or whatever the host OS or standard library has
the
> limit for file sizes
> - redundant parameter checks
> - some redundant (general-purpose) code
>
> If you're interested in testing FAT code or playing with mine, stay
tuned,
> I'm gonna release an updated version soon with the test suite. Automatic
> testing and code reviewing prove useful as they have revealed 5+ more
bugs,
> which isn't a big surprise for 5000+ lines of code.
>

Thanks, will wait.

Rod Pemberton
 




 8 Posts in Topic:
Utility to "mount" FAT filesystem images for DOS/Win98?
"Rod Pemberton"  2006-11-11 11:42:13 
Re: Utility to "mount" FAT filesystem images for DOS/Win98?
"Alexei A. Frounze&q  2006-11-11 20:26:35 
Re: Utility to "mount" FAT filesystem images for DOS/Win98?
"Rod Pemberton"  2006-11-12 04:15:53 
Re: Utility to "mount" FAT filesystem images for DOS/Win98?
"Alexei A. Frounze&q  2006-11-12 01:52:22 
Re: Utility to "mount" FAT filesystem images for DOS/Win98?
"Rod Pemberton"  2006-11-19 22:03:29 
Re: Utility to "mount" FAT filesystem images for DOS/Win98?
"Rod Pemberton"  2006-11-20 13:41:08 
Re: Utility to "mount" FAT filesystem images for DOS/Win98?
"Alexei A. Frounze&q  2006-11-20 20:38:30 
Re: Utility to "mount" FAT filesystem images for DOS/Win98?
"Rod Pemberton"  2006-11-20 13:39:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 23:45:34 CDT 2008.