News:

2022.06.03 added links to LisaList1 and LisaFAQ to the General Category

Main Menu

Creating 400k floppy for physical Lisa

Started by Jacexpo, Yesterday at 09:20:06 PM

Previous topic - Next topic

Jacexpo

Hi
 While at VCF - I tried to create diskettes for our two Apple Lisa. What is the actual process to write a DC42 diskette?
 When we tried to copy the image file onto a system 7 SE30 - that wasn't able to handle an image and a physical floppy. Ok -
 Then we tried a System 6 IIFX with two physical floppy drives - but that didn't work either as the original image was never recognized. We tried to ignore the fact that the image wouldn't be Mac aware - but the generated floppy wasn't readable.
 The Lisa floppy drive is good - I can format floppies and copy data to them and read them back.
 
 I do note that the actual size of the dc42 is larger than 400K. Is that expected?

Thanks

Chris

Lisa2

When you say that original image was never recognized, do you mean on the Mac or on the Lisa?
What program on the SE/30 or IIfx did you use to write the images?   
Was it DiskCopy 4.2? 
Did you use a low (not a HD) density 3.5" disk?

Disk Copy 4.2 or DART should be able to create Lisa disks from .DC42 images.

Jacexpo

It was disk copy 4.2 - I wasn't aware of DART.
I will report if this works better.

Yes, the disks were _not_ HD - they formatted fine on the Lisa itself.

Chris

TorZidan

I don't know why you did not succeed, but I can tell you what works for me:

The software: Use DiskCopy4.2 on a Macintosh running System 6 (e.g. 6.0.8 ) .

The hardware: I have tried different Macintosh models all the way to SE/30 and they work (don't know about newer macs). Some-or-most Mac internal and external floppy drives (including  1.44 MB "superdrive") should support writing at 400k: I've seen my Macintosh SE produce a good Lisa floppy using its internal 1.44MB floppy. However, I don't trust it, and most often use an external 400k floppy drive.

The 400k ".dc42" images are typically of size 419284, because each sector also has 12-byte "tag data", and the whole image has a  84-byte "dc42 header". The math is: 800 sectors * (512 for data + 12 for tags) + 84 = 419284 bytes total.


 

sigma7

Quote from: Jacexpo on <strong>Yesterday</strong> at 09:20:06 PMoriginal image was never recognized

I'm supposing this means that double-clicking it resulted in an alert of the nature "... could not be opened, because the application that created it could not be found." And when you selected "Open..." in DiskCopy, the dc42 file could not be selected.

It has been a long while since the introduction of OS X, so it isn't surprising that awareness of the way files are associated with applications in prior Macintosh systems has faded.

In *nix and many/most other operating systems, filenames have an extension that indicates what kind of file it is. The extension of filenames such as "products.txt", "puppy.jpg", and "calculator.exe" are used to associate a file with an application or other action to perform when the user requests opening it.

Macintosh Systems (MacOS) prior to OS X don't use filename extensions. Instead, the Finder maintains a database that tracks the four character "file type" and "file creator" for each file.

For example, an application has a file type of "APPL", and when the user asks the Finder to open it, it will attempt to launch/execute it.

A plain text file might have a file type of "TEXT"; when the user asks the Finder to open it, the Finder first checks to see what creator type it has; if the application matching that creator is found on the computer, then the Finder launches that application and passes along the request to open the specified text file. If the creating application isn't found, then the Finder looks through the database for other applications that can open that type of file.

The file type and creator are not part of the "data" stored in a file (eg. the text of a text file, or image data for a picture, or executable code for an application); these "Finder Info" metadata are stored separately by the Finder.

As a result, when you copy or download a file from another system using a method that doesn't preserve the type and creator, the Finder doesn't know what type of file it is, even if it has an otherwise obvious filename extension such as ".DC42"

A further complication is that many MacOS files have two "forks"; a Resource Fork and a Data Fork. Some transfer methods will copy over only the Data Fork.

So, to successfully transfer a file to MacOS, one needs to either: transfer or encode the file using a format that preserves the two forks and the Finder Info metadata (such as "binhex" or "MacBinary", or fix the missing info after the transfer.

A DC42 file does not need a Resource Fork, which simplifies the task considerably.

Solution:

To get DiskCopy 4.2 to recognize a dc42 file, the "file type" needs to be set to "dImg". If you want the Finder to automatically launch DiskCopy when you double click the file, then also set the Creator to "dCpy".

To set the Finder Info metadata, use an application such as ResEdit on the MacOS computer. Search the interwebs for something like "use resedit to set file type". ResEdit has multiple uses, so good to have available, but if you're running from floppies, you might prefer a task specific app to save disk space.
Warning: Memory errors found. ECC non-functional. Verify comments if accuracy is important to you.

Jacexpo

Good Reminder - I am a longtime Mac user and familiar with its workings.

I am happy to say that DART recognizes the files correctly as Lisa 400k files - even under 7.5.5 in Basilisk. Now to try it on a real machine but this is already well ahead of where we were at VCF.

Thank you for the suggestion.

Chris