Author Topic: mounting and unmounting image files programmatically  (Read 4431 times)

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
mounting and unmounting image files programmatically
« on: August 12, 2020, 06:52:48 PM »
is it possible to mount image files programmatically? via apple events and/or toast CD reader?

and in best case, could there be a way how to unmount the volume again, too?

i am dreaming of an app like that:

insert arbitrary signature here

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: mounting and unmounting image files programmatically
« Reply #1 on: October 11, 2020, 06:30:06 AM »
Some programs can mount images by sending them an 'odoc' event (Disk Copy, ShrinkWrap). This doesn't work with Toast, because there you have to click a button. Unmounting can be done by sending a disk eject event to Finder. There's an open source that shows how to do Finder events.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: mounting and unmounting image files programmatically
« Reply #2 on: October 11, 2020, 12:46:46 PM »

somebody from the FB group wrote me a RB program which has the basic functionality.

it utilizes a program of your choice which is responsible for mounting images in the background.

then you can create custom presets with lists of paths to mount and put away arbitrary groups of images.


shrinkwrap 351 can mount toast files if they only hold a single HFS partition.

but i personally require to mount/unmount mac/pc hybrid image files, which shrink wrap can not do.

and toast as you said always requires a click. it is a shame that there is no toast cd mounter driver or something like that which would mount files by opening them.
insert arbitrary signature here

Offline ssp3

  • Platinum Member
  • *****
  • Posts: 711
Re: mounting and unmounting image files programmatically
« Reply #3 on: October 11, 2020, 09:02:13 PM »
it is a shame that there is no toast cd mounter driver or something like that which would mount files by opening them.
In the early days of Toast, there was a little drag and drop application called "Toast Image Mounter". IIRC, it was able to mount multi/PC partitions as well. I used it quite a lot.
If you're not part of the solution, you're part of the problem.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: mounting and unmounting image files programmatically
« Reply #4 on: October 12, 2020, 09:03:14 AM »
i had that in mind/memory, too, but in the end i was sure that it is OSX only. so it was from toast 3? i should try that later.
« Last Edit: October 12, 2020, 09:15:11 AM by IIO »
insert arbitrary signature here

Offline ssp3

  • Platinum Member
  • *****
  • Posts: 711
Re: mounting and unmounting image files programmatically
« Reply #5 on: October 12, 2020, 10:10:21 AM »
No, it was from Toast CD-ROM Pro era, I think version 2.x.x. It belonged to Astarte at that time, not Adaptec. It also appears that the Toast ImageMounter utility was by yet another German company. No idea what connection to Astarte they had.

Quote
(c)1996 Miles Software GmbH
Written by Markus Fest, with special thanks to Steve Kiene. Based on DropShell by Leonard Rosenthol, Marshall Clow and Stephan Somogyi.
« Last Edit: October 12, 2020, 03:41:58 PM by ssp3 »
If you're not part of the solution, you're part of the problem.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: mounting and unmounting image files programmatically
« Reply #6 on: October 13, 2020, 09:55:34 AM »
i probably only owned a legal copy of that which is why i couldnt find it in my archives^^
insert arbitrary signature here

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: mounting and unmounting image files programmatically
« Reply #7 on: October 13, 2020, 10:40:09 AM »
...and that is probably why i also dont have it installed: it seems it doesnt work in OS9. :(

image manager app alpha version attached if you want to try
insert arbitrary signature here

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: mounting and unmounting image files programmatically
« Reply #8 on: October 13, 2020, 10:45:10 AM »
          **********         
insert arbitrary signature here

Offline ssp3

  • Platinum Member
  • *****
  • Posts: 711
Re: mounting and unmounting image files programmatically
« Reply #9 on: October 13, 2020, 05:23:04 PM »
...and that is probably why i also dont have it installed: it seems it doesnt work in OS9. :(
Right, now I remember why I stopped using it on my OS9 machine. But it worked like a charm on 7.6.1. I'm also not sure anymore where it came from. Might have been something else than Toast.
If you're not part of the solution, you're part of the problem.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: mounting and unmounting image files programmatically
« Reply #10 on: October 13, 2020, 06:35:17 PM »
was there a toast CD system extension at this time or somerthing like that?

the thing is based on dropshell and is PPC code, i also raised the memory settings to x3, so why might it not work in OS9?
 
 
the task itself works.

despite it is a "drag and drop utility" you can send it odoc commands to two documents and it will consecutively attempt two times to open them. it just cant mount them as it seems, not even image files in old HFS format.
insert arbitrary signature here

Offline ssp3

  • Platinum Member
  • *****
  • Posts: 711
Re: mounting and unmounting image files programmatically
« Reply #11 on: October 13, 2020, 10:20:01 PM »
Yes, there was, but does it make any difference whether the mounter app works in OS9 or not?
Also, on older systems, Toast requirerd the presence of ObjectSupportLib extension. Might that be the reason?

(CD extension inside, see attached)
If you're not part of the solution, you're part of the problem.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: mounting and unmounting image files programmatically
« Reply #12 on: October 14, 2020, 07:55:42 AM »
a missing library would usually throw an explicit message. but i will check for that one & i will try the extension later.
insert arbitrary signature here

Offline OS923

  • Platinum Member
  • *****
  • Posts: 888
Re: mounting and unmounting image files programmatically
« Reply #13 on: October 15, 2020, 06:54:52 AM »
sDataTooBigErr = -1310, /*file or volume is too big for system*/

https://fixmacissue.com/fix-error-code-1310-on-mac.html

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: mounting and unmounting image files programmatically
« Reply #14 on: October 15, 2020, 08:01:15 AM »
yeah, really strange.
insert arbitrary signature here

Offline ssp3

  • Platinum Member
  • *****
  • Posts: 711
Re: mounting and unmounting image files programmatically
« Reply #15 on: October 15, 2020, 12:30:27 PM »
Do error codes under OS9 and OSX have the same meaning? I could not find -1310 code in the pre OSX error listings.
If you're not part of the solution, you're part of the problem.

Offline ssp3

  • Platinum Member
  • *****
  • Posts: 711
Re: mounting and unmounting image files programmatically
« Reply #16 on: October 15, 2020, 06:57:16 PM »
Found another tool that I've completely forgotten about - Multisession Mounter. Maybe this one helps in mounting your hybrid images. It's in the Toast CD-ROM archive (attached).
Quote
Most current CD-ROM drivers (such as Apple CD-ROM 5.1.x, FWB CD-ROM Toolkit, or Toast CD Reader) automatically mount all HFS volumes on a multivolume CD-ROM, therefore Multisession Mounter is no longer a required component.

However, Multisession Mounter still offers some features which might be useful at times:

• It can mount sessions other than the last one on a Multisession ISO CD.

• It can mount the ISO 9660 part of a Mac/ISO hybrid CD-ROM (normally the Mac only mounts the HFS part of a hybrid disc)

Note that although Multisession Mounter is a  Control Panel, you don't have to put it into the Control Panels folder. You can run it from any location on your hard disk.
If you're not part of the solution, you're part of the problem.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: mounting and unmounting image files programmatically
« Reply #17 on: October 15, 2020, 08:55:44 PM »
Do error codes under OS9 and OSX have the same meaning? I could not find -1310 code in the pre OSX error listings.

not only that - today it gives me a different error number - with 5 digits.
insert arbitrary signature here

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: mounting and unmounting image files programmatically
« Reply #18 on: October 15, 2020, 08:57:26 PM »
btw, does anyone know the reason why in OS9 it is possibel to unmount only 1 of many partitions of a HD but in OSX not?
insert arbitrary signature here

Offline macarone

  • Veteran Member
  • ****
  • Posts: 108
  • New Member
Re: mounting and unmounting image files programmatically
« Reply #19 on: October 16, 2020, 05:10:36 AM »
btw, does anyone know the reason why in OS9 it is possibel to unmount only 1 of many partitions of a HD but in OSX not?

In what version of OS X are you having the problem?
I have never encountered it in an OS X on a PPC.