Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II » Converting .DSK images to PRODOS volumes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Converting .DSK images to PRODOS volumes [message #234628] Thu, 23 January 2014 03:31 Go to next message
ajross.nz is currently offline  ajross.nz
Messages: 29
Registered: August 2013
Karma: 0
Junior Member
Hi All,
I have a copy of AppleWorks for the //e on what appears to be 140K ProDOS 8
volumes. There are two .DSK files that make this up: AppleWorks II BOOT.DSK and
AppleWorks II PROGRAM.DSK.

I would very much like to be able to create one big PRODOS volume (say 32MB)
that I can automatically start with my CFFA3000. Ideally it would boot right
into the PRODOS 8 prompt and have a bunch of directories on it that I could
change into at will.

I've tried messing around with AppleCommander with limited success. I'd like to
be able to add further .DSK & .PO data into the .hdv image at a later date too.

Any idea how one does this?


Thanks in advance,


--

Alistair J. Ross
Sent from an Apple ][
Re: Converting .DSK images to PRODOS volumes [message #234956 is a reply to message #234628] Thu, 23 January 2014 09:41 Go to previous messageGo to next message
Ivan X is currently offline  Ivan X
Messages: 147
Registered: April 2013
Karma: 0
Senior Member
On Thursday, January 23, 2014 3:31:11 AM UTC-5, ajro...@gmail.com wrote:
> Hi All,
> I would very much like to be able to create one big PRODOS volume (say 32MB)
> that I can automatically start with my CFFA3000. Ideally it would boot right
> into the PRODOS 8 prompt and have a bunch of directories on it that I could
> change into at will.
>
> I've tried messing around with AppleCommander with limited success. I'd like to
> be able to add further .DSK & .PO data into the .hdv image at a later date too.
>
> Any idea how one does this?

Since you've got both a CFFA 3000 and A2CLOUD and A2SERVER, there are lots of ways to do what you want. Here are some possible approaches. All of them presume you've got a 32 MB image already that is mounted on the CFFA SmartPort (which will render that image inaccessible from the Raspbian command line).


ADTPro/VSDRIVE approaches:
- If you've got two USB-to-serial adapters: Using the CFFA interface, create a new blank ProDOS disk image of the same size as the image you want to copy files from, and then attach it to its virtual SmartPort. Then type 'forfloppy diskImage.dsk", and use ADTPro to transfer the disk image you want to the CFFA-mounted volume you just made. Once you've got it mounted as a disk on the CFFA, use any Apple II copy program (e.g. System Utilities, Copy II Plus) to copy it to your 32 MB volume.

- Or: instead of creating a new disk image and transferring the whole thing for each disk, instead type "vsd1 diskImage.dsk" or "vsd2 diskImage.dsk" and use VSDRIVE to mount the disk image, and then use a copy program to copy files from S2,D1 or S2,D2 to your 32 MB volume. Might be faster especially for 800K disks with lots of free space.


File Transfer approaches:
- If you only have one USB-to-serial adapter, you can transfer the disk image to your Apple II using YModem protocol with the "sb diskImage.dsk" command and then tell ProTERM to receive YModem, saving it to your 32 MB volume. (You might want to use the 'baud' command to speed things up for transfer, and/or make a ShrinkIt archive first, as described below.) Once you've got the disk image, make a new CFFA SmartPort volume of the same size (as described above), then use either DSK2FILE (on the 800K A2CLOUD disk) or DiskMaker 8 (http://www.markpercival.net/DM8; easier to use) to convert the image to the new CFFA-mounted disk and then use a copy program to get the files from there to your 32 MB volume.

- Or: You can type "nulib2 -a -k newArchive.shk diskImage.po" to create a ShrinkIt archive containing your disk image. Proceed as above, but use ShrinkIt (on the 800K A2CLOUD disk) rather than DSK2FILE or DiskMaker 8. This should result in faster transfer due to the compression. If you have a .dsk (DOS-ordered) image, first convert it to .po (ProDOS-ordered) with "do2po diskImage.dsk"; if you aren't sure, type "a2cat diskImage" and it will show the sector ordering at the end.

- Or: if it's a ProDOS-ordered disk image (use do2po first if not), with ProDOS files, you can avoid needing to create a new image file on the CFFA and instead create a ShrinkIt archive of just the files. Type:
mkdir newFolder
cppo -e diskImage.po newFolder
cd newFolder
nulib2 -a -r -e newArchive.shk *
Then transfer the archive as above, and use ShrinkIt to extract the files directly to your 32 MB volume. Unfortunately, cppo is very slow, which hopefully I'll do something about one day.


Network approach:
Basically the same strategy as the File Transfer approaches, except instead of using YModem to transfer your files, you can put your disk images or archives into the network shared volumes as follows:
cp diskImage.dsk $A2FILES/DISKIMAGE.DSK [file name must be ProDOS compliant and all caps]
afpsync
Then, if you network boot, or use the ProDOS 8 or GS/OS AppleShare client, you can access the disk image on the /A2FILES shared volume, and then use DSK2FILE, DiskMaker 8, or ShrinkIt as appropriate.


Sneakernet approach:
- You could also remove the USB stick from your CFFA card, mount it on your Pi, and then use the Pi's command line command to copy stuff into the 32 MB disk image. This is less elegant IMO, so I won't go into much detail about it, except to say that instead of acmd, you might find it easier to use:
[if necessary, copy files in ProDOS image to new ShrinkIt archive as described above]
shk2image archiveFile.shk your32MBImage.hdv PRODOS/PATH/ON/YOUR/IMAGE
Again, this is pretty slow, but it works.


There are probably other ways to do what you want, too. More details are on the A2CLOUD web site.
Re: Converting .DSK images to PRODOS volumes [message #235096 is a reply to message #234956] Thu, 23 January 2014 11:37 Go to previous messageGo to next message
Ivan X is currently offline  Ivan X
Messages: 147
Registered: April 2013
Karma: 0
Senior Member
I almost forgot the conceptually simplest solution via sneakernet, that doesn't involve A2CLOUD or A2SERVER at all: attach your CFFA's USB stick to whatever computer has the images -- if that's your Pi then mount it -- and copy the disk images you want on to it. Put it back in your CFFA, attach them in the CFFA interface, and use an copy program on the II to copy the files to your 32MB volume.
Re: Converting .DSK images to PRODOS volumes [message #241927 is a reply to message #235096] Sun, 02 February 2014 00:19 Go to previous messageGo to next message
ajross.nz is currently offline  ajross.nz
Messages: 29
Registered: August 2013
Karma: 0
Junior Member
Hi Ivan,

To be honest this sounds like the simplest approach, considering that the Mac,
Pi and Apple2 are all sitting within 1 metre of each other, swapping out a USB
stick is hardly onerous.

I've not had any exposure to 'copy programs' on the Apple 2. Can you make a
recommendation?

Cheers for your help,

Alistair

--
Written on an Apple ][

On 2014-01-23, Ivan X <ivan@ivanx.com> wrote:
> I almost forgot the conceptually simplest solution via sneakernet, that doesn't involve A2CLOUD or A2SERVER at all: attach your CFFA's USB stick to whatever computer has the images -- if that's your Pi then mount it -- and copy the disk images you want on to it. Put it back in your CFFA, attach them in the CFFA interface, and use an copy program on the II to copy the files to your 32MB volume.


--

Alistair J. Ross
Sent from an Apple ][
Re: Converting .DSK images to PRODOS volumes [message #241929 is a reply to message #241927] Sun, 02 February 2014 03:51 Go to previous messageGo to next message
Ivan X is currently offline  Ivan X
Messages: 147
Registered: April 2013
Karma: 0
Senior Member
I get it; that's the beauty of the CFFA 3000.

Apple System Utilities is such a program, and is included on the A2CLOUD 800K disk. (So is Apple Filer on both A2CLOUD disks, but it's not pleasant to use.)

However, I lived and breathed Copy II Plus for most of my Apple II career. It's very full featured. 9.1 is the final version and I have used it heavily, though some find it buggy and prefer 8.4.

There are many others too numerous to mention and I'm sure others have their favorites.
Re: Converting .DSK images to PRODOS volumes [message #241930 is a reply to message #241927] Sun, 02 February 2014 04:29 Go to previous messageGo to next message
Ivan X is currently offline  Ivan X
Messages: 147
Registered: April 2013
Karma: 0
Senior Member
Oh yeah, and ShrinkIt, which is also on the 800K A2CLOUD disk, is also a serviceable copy program, and has the added benefit of being able to copy files and disk images out of ShrinkIt archives (.shk, .sdk, .bxy).
Re: Converting .DSK images to PRODOS volumes [message #241971 is a reply to message #241930] Mon, 03 February 2014 03:07 Go to previous messageGo to next message
ajross.nz is currently offline  ajross.nz
Messages: 29
Registered: August 2013
Karma: 0
Junior Member
On 2014-02-02 09:29:52 +0000, Ivan X said:

> Oh yeah, and ShrinkIt, which is also on the 800K A2CLOUD disk, is also
> a serviceable copy program, and has the added benefit of being able to
> copy files and disk images out of ShrinkIt archives (.shk, .sdk, .bxy).

Perfect :)

It all worked out well. Next issue, I have an ASCII text file from an
IBM PC/XT which I have uploaded to the Pi. How can I get this into my
newly created .HDV image which has all the .DSK images?
Re: Converting .DSK images to PRODOS volumes [message #241999 is a reply to message #241971] Mon, 03 February 2014 09:26 Go to previous messageGo to next message
Ivan X is currently offline  Ivan X
Messages: 147
Registered: April 2013
Karma: 0
Senior Member
Easiest way is probably to type "sb yourIBMfile" and tell ProTERM to receive YModem.

Alternative method would be to make a new ProDOS disk image, then copy the file in:

mkpo newImageName
acmd -c yourIBMfile newImageName TXT

Then you can use one of the methods in the posts above. (I typed in those commands from memory, so you might need to refer to the A2CLOUD web site if they don't work.)
Re: Converting .DSK images to PRODOS volumes [message #242127 is a reply to message #241999] Tue, 04 February 2014 03:24 Go to previous messageGo to next message
ajross.nz is currently offline  ajross.nz
Messages: 29
Registered: August 2013
Karma: 0
Junior Member
On 2014-02-03 14:26:25 +0000, Ivan X said:

> Easiest way is probably to type "sb yourIBMfile" and tell ProTERM to
> receive YModem.
>
> Alternative method would be to make a new ProDOS disk image, then copy
> the file in:
>
> mkpo newImageName
> acmd -c yourIBMfile newImageName TXT
>
> Then you can use one of the methods in the posts above. (I typed in
> those commands from memory, so you might need to refer to the A2CLOUD
> web site if they don't work.)

Thanks Ivan.

I tried both options with no success. the sb command seems to run, but
when I set ProTerm to receive, nothing ever comes.

I created a new file called textfiles.po
and then used acmd -c textfile.txt textfiles.po TXT

Error: Invalid ProDOS name: TEXTFILE.TXT

So then, thinking that there must be a problem with the local filename,
I did it the long way and used STDIN for the input:

acmd -p textfiles.po TEXTFILE1.TEXT TXT < textfile.txt
Invalid ProDOS name: TEXTFILE1.TEXT

Any ideas?
Re: Converting .DSK images to PRODOS volumes [message #242147 is a reply to message #242127] Tue, 04 February 2014 08:15 Go to previous messageGo to next message
Ivan X is currently offline  Ivan X
Messages: 147
Registered: April 2013
Karma: 0
Senior Member
On Tuesday, February 4, 2014 3:24:44 AM UTC-5, Alistair Ross wrote:
> I tried both options with no success. the sb command seems to run, but
> when I set ProTerm to receive, nothing ever comes.

Not sure why this isn't working, but can't test at the moment.

> I created a new file called textfiles.po
> and then used acmd -c textfile.txt textfiles.po TXT
>
> Error: Invalid ProDOS name: TEXTFILE.TXT

Hmm. This exact command (even with those precise filenames) works for me. However, I think there was a bug in acmd related to filenames a while back that may have been fixed.

> I did it the long way and used STDIN for the input:
>
> acmd -p textfiles.po TEXTFILE1.TEXT TXT < textfile.txt
>
> Invalid ProDOS name: TEXTFILE1.TEXT

This too works for me, exactly as typed.

Some things to try:
- run a2cloud-setup to update scripts (it won't erase anything) and try again

- try "LANG=C" before acmd, e.g. "LANG=C acmd -c textfile.txt textfiles.po TXT"

- run raspi-config, and change the locale to en_US (non-UTF8), and try again

- Bypass the 'acmd' wrapper script which checks the filename, long form only:
java -jar /usr/local/adtpro/lib/AppleCommander/AppleCommander-ac.jar -p textfiles.po TEXTFILE1.TEXT TXT < textfile.txt
Re: Converting .DSK images to PRODOS volumes [message #242411 is a reply to message #242147] Thu, 06 February 2014 03:33 Go to previous messageGo to next message
ajross.nz is currently offline  ajross.nz
Messages: 29
Registered: August 2013
Karma: 0
Junior Member
On 2014-02-04, Ivan X <ivan@ivanx.com> wrote:
> On Tuesday, February 4, 2014 3:24:44 AM UTC-5, Alistair Ross wrote:
>> I tried both options with no success. the sb command seems to run, but
>> when I set ProTerm to receive, nothing ever comes.
>
> Not sure why this isn't working, but can't test at the moment.
>
>> I created a new file called textfiles.po
>> and then used acmd -c textfile.txt textfiles.po TXT
>>
>> Error: Invalid ProDOS name: TEXTFILE.TXT
>
> Hmm. This exact command (even with those precise filenames) works for me. However, I think there was a bug in acmd related to filenames a while back that may have been fixed.
>
>> I did it the long way and used STDIN for the input:
>>
>> acmd -p textfiles.po TEXTFILE1.TEXT TXT < textfile.txt
>>
>> Invalid ProDOS name: TEXTFILE1.TEXT
>
> This too works for me, exactly as typed.
>
> Some things to try:
> - run a2cloud-setup to update scripts (it won't erase anything) and try again
>
> - try "LANG=C" before acmd, e.g. "LANG=C acmd -c textfile.txt textfiles.po TXT"
>
> - run raspi-config, and change the locale to en_US (non-UTF8), and try again
>
> - Bypass the 'acmd' wrapper script which checks the filename, long form only:
> java -jar /usr/local/adtpro/lib/AppleCommander/AppleCommander-ac.jar -p textfiles.po TEXTFILE1.TEXT TXT < textfile.txt
>
Well, whaddaya know, the long form worked. I tried acmd after changing the locale from UTF8 (EN_gb), no dice. Tried the LANG=C trick as well, again no luck but finally, using the long version of the command works like a charm.

I'll try and work out what's going on for the acmd shortcut not to work and report back.

Thanks for all the help!

--

Alistair J. Ross
Sent from an Apple ][
Re: Converting .DSK images to PRODOS volumes [message #242414 is a reply to message #242411] Thu, 06 February 2014 04:09 Go to previous message
ajross.nz is currently offline  ajross.nz
Messages: 29
Registered: August 2013
Karma: 0
Junior Member
And the mystery was....

The filename had a number at the start of it and it didn't like that.
Another idiosincracy of ProDOS I am unaware of.

I guess acmd was doing the correct thing.

Thanks!

Alistair
On 2014-02-06 08:33:47 +0000, Alistair Ross said:

> On 2014-02-04, Ivan X <ivan@ivanx.com> wrote:
>> On Tuesday, February 4, 2014 3:24:44 AM UTC-5, Alistair Ross wrote:
>>> I tried both options with no success. the sb command seems to run, but
>>> when I set ProTerm to receive, nothing ever comes.
>>
>> Not sure why this isn't working, but can't test at the moment.
>>
>>> I created a new file called textfiles.po
>>> and then used acmd -c textfile.txt textfiles.po TXT
>>>
>>> Error: Invalid ProDOS name: TEXTFILE.TXT
>>
>> Hmm. This exact command (even with those precise filenames) works for
>> me. However, I think there was a bug in acmd related to filenames a
>> while back that may have been fixed.
>>
>>> I did it the long way and used STDIN for the input:
>>>
>>> acmd -p textfiles.po TEXTFILE1.TEXT TXT < textfile.txt
>>>
>>> Invalid ProDOS name: TEXTFILE1.TEXT
>>
>> This too works for me, exactly as typed.
>>
>> Some things to try:
>> - run a2cloud-setup to update scripts (it won't erase anything) and try again
>>
>> - try "LANG=C" before acmd, e.g. "LANG=C acmd -c textfile.txt textfiles.po TXT"
>>
>> - run raspi-config, and change the locale to en_US (non-UTF8), and try again
>>
>> - Bypass the 'acmd' wrapper script which checks the filename, long form only:
>> java -jar /usr/local/adtpro/lib/AppleCommander/AppleCommander-ac.jar -p
>> textfiles.po TEXTFILE1.TEXT TXT < textfile.txt
>>
> Well, whaddaya know, the long form worked. I tried acmd after changing
> the locale from UTF8 (EN_gb), no dice. Tried the LANG=C trick as well,
> again no luck but finally, using the long version of the command works
> like a charm.
>
> I'll try and work out what's going on for the acmd shortcut not to work
> and report back.
>
> Thanks for all the help!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help with Quentin full height 5.25 disk drive
Next Topic: A2Cloud and a //e Enhanced
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Apr 18 16:00:41 EDT 2024

Total time taken to generate the page: 0.06895 seconds