[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nulib and Shrinkit question



In article <20000102022435.09280.00000829@ng-fp1.aol.com>,
Supertimer <supertimer@aol.com> wrote:
>>I can use Shrinkit to archive a floppy disk into a file, transfer that file
>>to my MS-DOS computer, then use Nulib to create a disk image for use with
>>an emulator.  Can Nulib take a disk image and compress it into a file that
>>Shrinkit can use to re-create the floppy disk?
>
>Not that I know of.  What you usually do instead is transfer the
>.dsk file itself without any conversion back to the Apple II and
>run a program called DSK2FILE to convert it back into a disk.

Oh ye of little faith. :-)

beast 109 /home/fadden/tmp% nulib v prodisk.shk 
 prodisk.shk     Created:21-Apr-90  15:11   Mod:21-Apr-90  15:11     Recs:    1

 Name                  Kind  Typ  Auxtyp Archived         Fmat Size Un-Length
-----------------------------------------------------------------------------
+TEST                  Disk  ---  140k   21-Apr-90  15:11  shk  77%     68096

beast 110 /home/fadden/tmp% nulib xv prodisk.shk 
Extracting 'TEST' (disk image)...unshrinking (I)...done.

beast 111 /home/fadden/tmp% ls -l TEST
-rw-r--r--   1 fadden   users      143360 Jan  2 19:22 TEST

beast 112 /home/fadden/tmp% nulib cdv new.shk TEST
Adding 'TEST' (data, 143360 bytes)...shrinking...done.

beast 113 /home/fadden/tmp% nulib v new.shk
 new.shk         Created:03-Jan-100  03:23   Mod:03-Jan-100  03:23     Recs:    1

 Name                  Kind  Typ  Auxtyp Archived         Fmat Size Un-Length
-----------------------------------------------------------------------------
 TEST                  Disk  ---  140k   03-Jan-100  03:23  shk  37%    143360


The 'd' suboption causes added files to be treated as disk images.

A couple of observations:

 (1) The size percentage is off in the original because the "threadEOF"
  written by some versions of ShrinkIt is inaccurate for disk images.
  NuLib has code that straightens the situation out.
 (2) As you can see, NuLib isn't Y2K compliant.  As it happens, neither
  are ShrinkIt and GS/ShrinkIt. :-)  The correct way to represent the
  year 2000 is with "0", not "100".  GSHK stores 100, SHK writes 0, and
  both get a little funny about the dates either way.

As to why NuLib thinks the file was archived at 3am... beats me. :-)

--
Send mail to fadden@netcom.com (Andy McFadden)
CD-Recordable FAQ - http://www.fadden.com/cdrfaq/ (a/k/a www.spies.com/~fadden)
Fight Internet Spam - http://spam.abuse.net/spam/ & news.admin.net-abuse.email