• Please review our updated Terms and Rules here

Convert 720K disk image to 1.2M disk image?

matthew180

Experienced Member
Joined
Apr 27, 2007
Messages
56
Location
Central Florida
Does anyone know the magic incantation to get dskconv to convert a 720K disk image to 1.2M disk image? Or maybe I'm misunderstanding the program and it cannot actually do this kind of thing?

Without any -format option, the output is the same size as the input. As soon as I specify "-format ibm1200" (or any other format), I get the error:

"Converting: Missing address mark."

$ dskconv compaq_diag_720k.img -otype raw -format ibm1200 compaq_diag_1m2.img
Input driver: Raw file driver (alternate sides)
Output driver:Raw file driver (alternate sides)
Converting: Missing address mark.

Without any specific -itype or -otype, same error:

$ dskconv compaq_diag_720k.img -format ibm1200 compaq_diag_1m2.img
Input driver: Raw file driver (alternate sides)
Output driver:LibDsk block store
Converting: Missing address mark.
 
libdsk's utilities dskconv, dsktrans, dskdump, and dskform works with the floppy formats
defined in the .libdskrc file. You can use the switch -types to see what type of image
conversions are available.
Code:
$ dsktrans -types
Disk image types supported:

   gotek      : Gotek 1440k disc image collection 
   gotek72    : Gotek 720k disc image collection 
   remote     : Remote LibDsk instance
   rcpmfs     : Reverse CP/MFS driver
   floppy     : Linux floppy driver
   dsk        : CPCEMU .DSK driver
   edsk       : Extended .DSK driver
   apridisk   : APRIDISK file driver
   copyqm     : CopyQM file driver
   tele       : TeleDisk file driver
   ldbs       : LibDsk block store
   ldbst      : LDBS (text form)
   sap        : SAP file driver
   qrst       : Quick Release Sector Transfer
   imd        : IMD file driver
   ydsk       : YAZE YDSK driver
   raw        : Raw file driver (alternate sides) 
   rawoo      : Raw file driver (out and out) 
   rawob      : Raw file driver (out and back) 
   myz80      : MYZ80 hard drive driver
   simh       : SIMH disc image driver
   nanowasp   : NanoWasp image file driver
   logical    : Raw file logical sector order
   jv3        : JV3 file driver
   dc42       : Disk Copy 4.2
   cfi        : CFI file driver

So, you could create an .IMD file from a .RAW file, or create an .IMD file from a COPYQM.

You can see what IMAGE formats are available with the switch -formats

Code:
$ dsktrans -formats


Here is a software package that does what you are wanting. WIMIMAGE (Windows)

REF: Posting #8



Larry
 
I forgot to tell you that your SOURCE IMAGE type needs to be -format ibm720 to not get the
missing address mark error message. The following command should create the .IMD file
from the .RAW file. ie. same format definition but different type file (IMD vs .RAW)

$ dskconv compaq_diag_720k.img -itype raw -otype imd -format ibm720 compaq_diag_720k.imd

Larry
 
dskconv is designed to convert the format of the container file (for example, from Teledisk to IMD) leaving the contents unchanged. So it could convert a 720k raw disk image to a 720k Teledisk file, or a 720k IMD file, but it can't convert a 720k raw disk image to a 1200k disk image in any format.
 
ISTR that CopyQM has a CONVERT= option that recasts the DOS image to the appropriate size.
Code:
//  ConvertDOS - Convert DOS Playback file.
//  ---------------------------------------
//
//  Returns -n if error, +n for how many tracks have been read.
//
//  Conversion is quite difficult.
//

int ConvertDOS( int handle, DOS_BPB *bptr, long dst, int totalloc)
By gum, it does! :)
 
Back
Top