Author Topic: Preserving disk authorizations using Apple Software Restore.  (Read 32106 times)

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Preserving disk authorizations using Apple Software Restore.
« on: August 21, 2014, 09:41:15 AM »
As some as you know I was playing with Apple Software Restore this days... and now, I had the idea of using it with a different purpose:

I just to make a Apple Disk Copy Image file in a MDD @1.50 and restore it with Apple Software Restore to another hard disk placed in a different computer (a MDD @1.25) successfully preserving Hard Disk authorizations!

The tested software was: Cubase VST/32 5.1, Arturia CS-80, Arturia Moog Modular v2.0, NI Absynth v2.0, NI Kompakt, NI FM7, Waldorf Attack, Waldorf PPG Wave and Orange Vocoder.

All of them continued to work in a different hard disk placed inside a different computer, after being transported in a Disk Copy image file and restaured with Apple Software Restore without reauthorization needed.

I know that there are dozens of plugins and very different DAWs and authorization techniques... so each one mileage may be very different...
Please don't PM about things that are not private.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #1 on: August 21, 2014, 10:02:25 AM »
http://en.wikipedia.org/wiki/Apple_Software_Restore

command line utility in osx?
block copy?

this could be huge if it could be discovered how to make a single restore cd of working system
instant daw + instant os9 setup in one
« Last Edit: August 21, 2014, 10:40:18 AM by chrisNova777 »

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #2 on: August 21, 2014, 11:03:18 AM »
http://en.wikipedia.org/wiki/Apple_Software_Restore

command line utility in osx?
block copy?
...even Wikipedia forgot Mac Os 9   :(





Thankx we have macos9lives.com :)
Quote
this could be huge if it could be discovered how to make a single restore cd of working system
instant daw + instant os9 setup in one
That's exactly what I have done.
... but not tested with all DAW and all plugins, just a few VST ones.
Please don't PM about things that are not private.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #3 on: August 21, 2014, 11:20:01 AM »
is this included already in 9.22?
or a seperate installation?
(re: ASR)

i had a similar success once before using disk utility in X to restore a clone of a 9 partition
but like i documented here, another attempt of mine failed, i suspected the reason to be
that it was due to using multiple partitions on the same disk, i think the time that i had success
i was using 1 hard drive, 1 partition..

out of curiousity in your success, was it also with 1 drive/1 partition?

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #4 on: August 21, 2014, 12:24:02 PM »
is this included already in 9.22?
or a seperate installation?
(re: ASR)
ASR comes in most Macs that came with "Software Restore" disks.

Quote
out of curiousity in your success, was it also with 1 drive/1 partition?

The original image was a 2GB USB booting disk. And yes, may be this is important, especially the 2GB size. The image was created with Apple Disk Copy. And Restored to a 80 GB partition HD (the other partition of the HD have 30 GB) using Apple Software Restore.

I have to use a special Disk Copy script to avoid the Checksum bug ¿?

Everything was made on Mac Os 9. Of course.
Please don't PM about things that are not private.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 1548
  • new to the forums
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #5 on: August 21, 2014, 01:10:38 PM »

what i would sometimes like to have is an "all steinberg CDs" CD.

sometimes after hard disk failures you loose all authorisations and then you have to install 25 products again. of course it is only 5 minutes work, but if you multiply that with 25 ...
"It is true that the "pre-emptive multitasking" advantage present in OS X can be illustrated by downloading CD-ROM ISOs and rendering chaos theory formulas while simultaneously instant messaging and posting on FaceBook what you ate... but in reality, what did you create?"
- DieHard, random forum troll at macos9lives.com

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #6 on: August 21, 2014, 01:35:09 PM »
Quote
The original image was a 2GB USB booting disk. And yes, may be this is important, especially the 2GB size. The image was created with Apple Disk Copy. And Restored to a 80 GB partition HD (the other partition of the HD have 30 GB) using Apple Software Restore.

my questions:
a) the original 'source' disk, how many partitions were on this drive at the time of backup?
b) was the restore performed to a single partition or 1 of multiple partitions on the 'destination' disk?
c) did u have to boot to another system drive while doing the disk copy backup?

my comments:
re: A) usb booting? u mean a thumb/flash drive? or externa usb1.1 disk? under mac os
9? u really mean usb? or firewire disk? im guessing it was 1 partition if it was a smaller size disk? especially a thumbdrive? it must have taken a long time to install os + apps to a usb 1.1 drive??? really slow??
re: B) (im pretty sure the answer is multiple, fom your comments in brackets above)
re: C) im guessign u used your 'rescue cd' to boot while performing this backup?

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #7 on: August 21, 2014, 01:57:47 PM »
my questions:
a) the original 'source' disk, how many partitions were on this drive at the time of backup?
The original 'source' disk have *one* HFS partition.
Quote
b) was the restore performed to a single partition or 1 of multiple partitions on the 'destination' disk?
The restore was performed to *one* of a multiple partitions 'destination' disk.
Quote
c) did u have to boot to another system drive while doing the disk copy backup?
No, I haven't.

Quote
my comments:
re: A) usb booting? u mean a thumb/flash drive? or externa usb1.1 disk? under mac os
9? u really mean usb? or firewire disk?
re: B) (im pretty sure the answer is multiple, fom your comments in brackets above)
Yes. booting from a USB 1.1 thumb/flash drive.

The System folder in my macs are thin enough to boot "fast" even from USB 1.1.
I just making some stuff with Apple Software Restore and all my Firewire disks have important data... so I've taken a old USB flash drive  that I have around here and where the "MacOS9Lives Rescue & Install CD" was prepared and made a fast test with Cubase and a few VST plugins.
I'm not really interested in this... because  I only have installed Cubase and a few plugins on my working System.  But I have post it because I know that it can be useful for some users...
« Last Edit: August 21, 2014, 02:14:13 PM by MacTron »
Please don't PM about things that are not private.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #8 on: August 22, 2014, 12:33:22 AM »
so.. you have told us u did this and it worked.. but u havent explained to any of us how to go about doing this..step by step?

not many would understand or know whats involved in using apple software restore..
is all thats involved making a folder called "configurations" and placing the .img file inside and running ASR?
it will then prompt u for a destination? how does it work?
i have no idea.. neither do many i would assume?

all of the info on this program i have tried to look up just now points to mac os x version
which uses disk utility as a front end

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #9 on: August 22, 2014, 07:02:35 AM »
We only need 3 things: Apple Disk Copy, Apple Software Restore (ASR) and ASR script.

1- Make a Apple Disk Copy Image file of the original hard disk.
2- Apply ASR script to the image file with Disk Copy.
3- Place the image file inside the same folder as ASR App.
4- Start Apple Software Restore his options are really straightforward:



what i would sometimes like to have is an "all steinberg CDs" CD.

Now I'm working in a new test that include a few more plugins from Steinberg (Halon 2, Xphraze and D'cota )and the image is created from a partition from a multi-partition hard disk.
Let's see how it goes...
« Last Edit: August 22, 2014, 10:14:16 AM by MacTron »
Please don't PM about things that are not private.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 1548
  • new to the forums
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #10 on: August 22, 2014, 08:32:56 AM »
for OSX there are optical drive deamons since a while, something like that would be great for OS9, then one could reauthorise CD-stuff from image files.
"It is true that the "pre-emptive multitasking" advantage present in OS X can be illustrated by downloading CD-ROM ISOs and rendering chaos theory formulas while simultaneously instant messaging and posting on FaceBook what you ate... but in reality, what did you create?"
- DieHard, random forum troll at macos9lives.com

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #11 on: August 22, 2014, 09:03:54 AM »
... then one could reauthorise CD-stuff from image files.

NI FM7 can be reuthorize this way (in Mac Os 9) and so NI Kontakt, NI Pro 53, Arturia CS-80, Arturia Moog Modular, Waldorf Attack, Waldorf PPG Wave, Steinberg D'Cota ... just to name a few...

Please don't PM about things that are not private.

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #12 on: August 22, 2014, 10:13:53 AM »
Now I'm working in a new test that include a few more plugins from Steinberg (Halon 2, Xphraze and D'cota ) and NOW the image is created from a partition from a multi-partition hard disk.
Let's see how it goes...
Successful again!
 -afro-
Please don't PM about things that are not private.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #13 on: August 22, 2014, 10:27:50 AM »
Successful again!
 -afro-

awesome!
to restore to a seperate machine ? or same machine? i remember u said it matters if same type of hard drive, same type of mac (motherboard) can u detail the two systems in your test?

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #14 on: August 22, 2014, 12:10:18 PM »
awesome!
to restore to a seperate machine ? or same machine? i remember u said it matters if same type of hard drive, same type of mac (motherboard) can u detail the two systems in your test?
First test:
From a USB 2 GB flash drive in a MDD@1.50
TO
a 80 GB partition on a multiple partitions hard disk in a MDD@1.25

Second test:
From 4.5 GB partition on a multiple partitions hard disk in a MDD@1.25
TO
a 50 GB multiple partitions hard disk in a MDD@1.66

(This MDD@1.66 only have one HFS partition the other two are EXT3 and swap ... )

Steinberg Cubase VST/32 5.1,Steinberg Halion 2, Steinberg Xphraze, Steinberg D'cota, Arturia CS-80, Arturia Moog Modular v2.0, NI Absynth v2.0, NI Kompakt, NI FM7, Waldorf Attack, Waldorf PPG Wave and Orange Vocoder.

ALL of them retained the authorizations during the image and restore process.
I have to admit that I feel highly surprised even. May be I am lucky and I have tested the easiest ones...
Please don't PM about things that are not private.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 1548
  • new to the forums
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #15 on: August 22, 2014, 12:21:48 PM »
i thought the steinberg CD protection does look for the media type? ... will try again.
"It is true that the "pre-emptive multitasking" advantage present in OS X can be illustrated by downloading CD-ROM ISOs and rendering chaos theory formulas while simultaneously instant messaging and posting on FaceBook what you ate... but in reality, what did you create?"
- DieHard, random forum troll at macos9lives.com

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #16 on: August 22, 2014, 12:27:24 PM »
do u think its time to have someone else try to restore to another machine?
maybe tis because they are all mdds...
maybe it would have a problem if u restore to a qs or sawtooth
(some motherboard ids different?)

ready to move to the next level of 3rd party testing? ?  8)
we need volunteers!

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #17 on: August 22, 2014, 01:48:29 PM »
do u think its time to have someone else try to restore to another machine?
maybe tis because they are all mdds...
maybe it would have a problem if u restore to a qs or sawtooth
(some motherboard ids different?)
The same good result from one of my Sawtooth...
Quote
ready to move to the next level of 3rd party testing? ?  8)
we need volunteers!
Yes.
It is impossible to me to test all the DAWs and plugins...
In my FTP folder and attached is the software needed, if some one wish to continue the test...
Please don't PM about things that are not private.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #18 on: August 22, 2014, 03:28:26 PM »
of course its impossible to test all...
we should vote for the top 10 must have to be included
everyone will have different request but at least we could see the most common ones this way
perhaps its a good idea only to include the ones that are really a pain in the ass to install with lots of codes to enter
ie: if something is really easy to install its easy to add afterwards

as u could guess i would like to see ableton live 4 included
for me cubase + live are the number one vst hosts
live4 can cost about 75mb of space added

also some basic compressor vstfx (1176 LA-2A emulations)

Offline IIO

  • Platinum Member
  • *****
  • Posts: 1548
  • new to the forums
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #19 on: August 22, 2014, 04:02:33 PM »
It is impossible to me to test all the DAWs and plugins...

well you already got half of them i guess. there are like 50 or so products which could be copied including authorisation ... (erm, plus those steinberg CDs maybe) everything ethernet is out. :) and everything "preferences file" doesnt need to be cloned.
"It is true that the "pre-emptive multitasking" advantage present in OS X can be illustrated by downloading CD-ROM ISOs and rendering chaos theory formulas while simultaneously instant messaging and posting on FaceBook what you ate... but in reality, what did you create?"
- DieHard, random forum troll at macos9lives.com

Offline DieHard

  • Administrator
  • Platinum Member
  • *****
  • Posts: 1215
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #20 on: August 23, 2014, 12:05:08 PM »
Mactron, I am so upset that you did not figure this one out 10 years ago, but I forgive you :)

The progress of this thread cannot be understated... I have tried many combinations of OS 9 3rd party utilities and images and never got 100% success (literally weeks, if not months, of trials and testing while doing setups for others); To use Apple's own ASR was so ingenious and yet so obvious.  I will be testing this scenario on 3 MDDs over the weekend and will try an MDD to QS test if I have time. 

My first test will be to image one of the MDDs that have an OWC SSD and restore to the first partition of a 500GB Western Digital that has 3 partitions.

This technique would have saved me literally hundreds of hours of reloads and will enable us to share things like LM4-mkII, groove agent, and other items.  This is a landmark breakthrough, I am feeling like a giddy schoolboy again

Offline IIO

  • Platinum Member
  • *****
  • Posts: 1548
  • new to the forums
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #21 on: August 23, 2014, 12:41:21 PM »
This technique would have saved me literally hundreds of hours of reloads and will enable us to share things like LM4-mkII, groove agent, and other items.

but will it work to add the content of the cloned partition to another partition? if not, you still have to install everything from your original CDs and save not anything.

oh and of course: it would be most useful to make it work with disc images . :)
"It is true that the "pre-emptive multitasking" advantage present in OS X can be illustrated by downloading CD-ROM ISOs and rendering chaos theory formulas while simultaneously instant messaging and posting on FaceBook what you ate... but in reality, what did you create?"
- DieHard, random forum troll at macos9lives.com

Offline DieHard

  • Administrator
  • Platinum Member
  • *****
  • Posts: 1215
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #22 on: August 25, 2014, 09:09:56 AM »
This cannot be used to "add" content, but would be useful for Fresh Volumes... and as a suggestion, you could make 4 or 5 volumes on a single drive and then tryout full images created by others...

I could make one that had 9.2.2, Cubase VST 5.1 , and included many authorized plugins.

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #23 on: August 30, 2014, 11:22:22 AM »
If there were a way to simply transfer an authorization instead of restoring the entire disk, that would be excellent...

What would the effect be of preserving a SCSI hard disk but restoring it on a SATA drive? Aren't there different drivers on the disk or something?

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #24 on: August 30, 2014, 11:40:59 AM »
Where can I get a copy of the Apple System Restore software?

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #25 on: August 30, 2014, 11:50:42 AM »
If there were a way to simply transfer an authorization instead of restoring the entire disk, that would be excellent...

What would the effect be of preserving a SCSI hard disk but restoring it on a SATA drive? Aren't there different drivers on the disk or something?

ASR mainly work at partition level.

Where can I get a copy of the Apple System Restore software?

In my FTP folder.
Please don't PM about things that are not private.

Offline IIO

  • Platinum Member
  • *****
  • Posts: 1548
  • new to the forums
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #26 on: August 30, 2014, 01:26:23 PM »
i´ve got a question in the same direction like syntho´s – i am too lazy to find it out myself - woundt it work to create a small partition and then copy the content of a small disc image file from someone else onto this volume? if i am not overlooking something, this should work with the 3 major copy protection schemes in question. or?
"It is true that the "pre-emptive multitasking" advantage present in OS X can be illustrated by downloading CD-ROM ISOs and rendering chaos theory formulas while simultaneously instant messaging and posting on FaceBook what you ate... but in reality, what did you create?"
- DieHard, random forum troll at macos9lives.com

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #27 on: August 30, 2014, 02:02:39 PM »
Upon further thought, I'm not sure this would work. The disk authorizer most likely authorizes all partitions that your boot HD has and all the partitions are probably activated automatically as it's authorized. If you transfer just a single partition to another partition, I can only see just that partition being authorized, and since it's not the 'boot' drive, it probably won't work.

The other, longer method is to authorize your main boot drive, image it, then copy it over to another boot drive, but the problem with that is you'll have to resize/expand the partition size which was hard to do on Macs as far as I can remember. Unless the Apple Restore Software will restore a partition but not fool with the partition size when doing it...

Offline IIO

  • Platinum Member
  • *****
  • Posts: 1548
  • new to the forums
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #28 on: August 30, 2014, 05:36:47 PM »

resize/expand the partition size which was hard to do on Macs as far as I can remember.

thats true. it is theoretically possible, but myself i would be afraid of repartitioning disks which are full of important data, no matter what the manual says. :)

"It is true that the "pre-emptive multitasking" advantage present in OS X can be illustrated by downloading CD-ROM ISOs and rendering chaos theory formulas while simultaneously instant messaging and posting on FaceBook what you ate... but in reality, what did you create?"
- DieHard, random forum troll at macos9lives.com

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #29 on: August 31, 2014, 10:35:35 AM »
i´ve got a question in the same direction like syntho´s – i am too lazy to find it out myself - woundt it work to create a small partition and then copy the content of a small disc image file from someone else onto this volume?
Restoring to a partition bigger than the original partition it's Ok.
In one of my test an original 2GB partitions wa successfully restored to a 90 GB partition, preserving the authorizations.
This method allows sharing a disk Image, preserving *all* the authorizations of the original with any one you wish...

*all*: we really don't know for sure if this work for all. We only know for sure the few test I have done.

Quote
if i am not overlooking something, this should work with the 3 major copy protection schemes in question. or?

3 major copy protection schemes ¿?

This ASR method mainly work with schemes based on file/folder IDs (vRefNum).
Please don't PM about things that are not private.

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #30 on: August 31, 2014, 10:40:02 AM »
Upon further thought, I'm not sure this would work. The disk authorizer most likely authorizes all partitions that your boot HD has and all the partitions are probably activated automatically as it's authorized. If you transfer just a single partition to another partition, I can only see just that partition being authorized, and since it's not the 'boot' drive, it probably won't work.
... what really is authorized is the WHOLE disk, because the authorization data is written out of any user partition. May be ASR can work with whole devices, including partition schemes, but this is unexplored territory... and we still need to solve the Checksum issue...
Please don't PM about things that are not private.

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #31 on: August 31, 2014, 10:49:08 AM »
As far as Unisyn, it doesn't seem to be a disk authorization issue. It's just a lack of SCSI issue.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #32 on: August 31, 2014, 10:56:42 AM »
As far as Unisyn, it doesn't seem to be a disk authorization issue. It's just a lack of SCSI issue.

its probably just how its coded... they probably thought scsi would always be on powermacs
when it was made or didnt think there would be a crazy guy named syntho 20 years into the future messin with it :D

Offline IIO

  • Platinum Member
  • *****
  • Posts: 1548
  • new to the forums
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #33 on: August 31, 2014, 05:46:20 PM »

3 major copy protection schemes ¿?

This ASR method mainly work with schemes based on file/folder IDs (vRefNum).

plus, of course, any copy protection scheme which does nothing more but writing regular files onto disk.

ah, i have still not tried reinstalling a steinberg/waldorf product from disc image (i first have to make the disc image files). i own most of them legally, but have CD-free versions installed for half of them, and as always, one always tends to underrate the usefulness of things one dont ned personally.

please go on, this is an interesting project and might be a useful part of the future "final everything by one click" we´re working on.
"It is true that the "pre-emptive multitasking" advantage present in OS X can be illustrated by downloading CD-ROM ISOs and rendering chaos theory formulas while simultaneously instant messaging and posting on FaceBook what you ate... but in reality, what did you create?"
- DieHard, random forum troll at macos9lives.com

Offline arjen_1

  • Gold Member
  • *****
  • Posts: 284
  • Mac Midi & Audio Aficionado
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #34 on: September 03, 2014, 12:28:42 PM »
We only need 3 things: Apple Disk Copy, Apple Software Restore (ASR) and ASR script.

1- Make a Apple Disk Copy Image file of the original hard disk.
2- Apply ASR script to the image file with Disk Copy.
3- Place the image file inside the same folder as ASR App.
4- Start Apple Software Restore his options are really straightforward:

Can you explain step 2; How do I apply the script? I've been trying to achieve this for so many years. I don't want to think about the hours, nights and days this could have saved me. LOL  :-[
Powermac g4 933mhz quicksilver

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #35 on: September 03, 2014, 12:46:25 PM »

2- Apply ASR script to the image file with Disk Copy.


Can you explain step 2; How do I apply the script? I've been trying to achieve this for so many years. I don't want to think about the hours, nights and days this could have saved me. LOL  :-[

OK.
This is the more complex point:
Apple Disk Copy can write the correct checksum to a image file. But ASR don't work with this checksum, ¿? it need that the checksum of the image file to be placed into a resource named cSum. This can be done with an Apple Script that can be launched Inside Apple Disk Copy and is called: "Scan Image for ASR".

The worst thing is that even Apple Disk Copy and ASR can work with big image files (over 2 GB) this script don't work with those big disk image files...
Please don't PM about things that are not private.

Offline SonikArchitects

  • Vault Members
  • Enthusiast
  • ***
  • Posts: 49
  • new to the forums
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #36 on: September 11, 2014, 12:23:58 PM »
So guys, if this works, you guys know you've found literally the Holy Grail. (And I have wasted several hundred hours of my life, but that's in the past).

WHERE CAN I GET : Scan Image for ASR??
_BT

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #37 on: September 11, 2014, 12:31:13 PM »
BT dont get too excited yet
we still have some limitations to overcome
particularly the 2gb limit of this "checksum bug" error involved with making + restoring the images

but also keep in mind that mactron is persuing, as usual 100% only mac os 9 technology to accomplish this
i have had success with using super duper + carbon copy cloner on my mdd and preserving auths..
and i had some failure aswell, an observation i made was that the success came when using a drive with only 1 partition
and my failure came with the mac os 9 being on the 2nd partition into the drive... but this may not be the true cause of the failure
just an observation, mactron has had success with multiple partitions but thats using his 2gb limited method

like it was discussed, the protection of the authorizations can be made in a multitude of ways:
-possibly specific to motherboard id codes
-possibly specific to hard drive "brand" "size" "manufacturer"
-possibly specific to powermac "breed" ie sawtooth vs quicksilver vs mdd
-possibly specific to cpu type
-possibly a combination of all 4 of the above..

different auths may have different combinations..
and it would take a team of specialists time + Effort to document which plugs use which auth scheme
perhaps this is somehting we could all accomplish if we all tested different plugs ability to preserve auths
and we could come up with a list of which plugs use which auth methods
this would be alot easier to do if we had some volunteers and we made a list and delegated 4-5 plugs to each
person to test + report back

another thing that is yet to be tested but was suggested by diehard was "retrospect" for mac os 9


also remember that this topic begain in a previous thread which came before this one
http://macos9lives.com/smforum/index.php?topic=1223.0
so if this topic is of interest to u.. please review this thread aswell


Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #38 on: September 11, 2014, 02:12:44 PM »
WHERE CAN I GET : Scan Image for ASR??
_BT

You can find it in a folder named ASR in my FTP folder.
Please don't PM about things that are not private.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #39 on: September 20, 2014, 04:39:30 PM »
Apple Disk Copy can write the correct checksum to a image file. But ASR don't work with this checksum, ¿? it need that the checksum of the image file to be placed into a resource named cSum. This can be done with an Apple Script that can be launched Inside Apple Disk Copy and is called: "Scan Image for ASR".

The worst thing is that even Apple Disk Copy and ASR can work with big image files (over 2 GB) this script don't work with those big disk image files...

he meant to say that the unfortunate thing is that the reason (need) for the script is to avoid an error of some sort (checksum)
and that disk copy supports images larger then 2gb but the script doesnt work for these larger then 2gb size images. and will cause the error (cheksum error)
so this technique is limited to 2gb which severly limits what u can do with it.

having explained that... its my suspicion that there might be way to use ASR to restore an image made by other means (ie: ccc, superduper) which in effect would be 1/2 of my approach vs half of mactrons approach

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #40 on: September 20, 2014, 05:52:04 PM »
I think I'm going to try this.

My OS install drives are 1-1.5GB so I should be OK.

Can you elaborate more about this checksum error? Is it simply just the checksum code not being in the right place? Maybe it's an issue only with images made with Apple Disk Copy and other software will put it into the correct place. Or maybe ASR is just different?

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #41 on: September 20, 2014, 06:03:42 PM »
Hey MacTron, which version of Disk Copy did you use? http://mywebpages.comcast.net/macdan/files/DiskCopy65b13.bin - this one has a 'clone' feature.

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #42 on: September 21, 2014, 07:46:17 AM »
Hey MacTron, which version of Disk Copy did you use? http://mywebpages.comcast.net/macdan/files/DiskCopy65b13.bin - this one has a 'clone' feature.

Disk Copy 6.3.1.
But for disk bigger than 2 GB I use Disk Copy 6.5b13
Please don't PM about things that are not private.

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #43 on: September 21, 2014, 09:50:58 AM »
Is there any difference between making the image when you're booted into the OS that you're copying and booting into another install and copying the one that isn't active?

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #44 on: September 21, 2014, 09:53:43 AM »
Is there any difference between making the image when you're booted into the OS that you're copying and booting into another install and copying the one that isn't active?

There is no problem with this.
Please don't PM about things that are not private.

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #45 on: September 21, 2014, 11:26:51 AM »
Usually when I backup HDs I'm backing up the entire thing, all partitions included. When you restore it, it actually restores the partitions too. That means if you use a drive with another size that you'll have some free space that isn't partitioned and you have to run some trickery on it to get it back.

With the Disk Copy/ASR method though I'm guessing by what's posted here that you can restore an install to any size drive and your partition sizes aren't touched. Right? That's a LOT more convenient than having to fool with partitions.

I'll be testing this soon and I'll report my findings.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #46 on: September 21, 2014, 11:30:55 AM »
do you know how to use the script? mactron didnt really explain it in detail

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #47 on: September 21, 2014, 11:34:40 AM »
With the Disk Copy/ASR method though I'm guessing by what's posted here that you can restore an install to any size drive and your partition sizes aren't touched. Right? That's a LOT more convenient than having to fool with partitions.
ASR only work with one partition at time.
And just one rule: the destination partition should be equal or bigger than original partition.
Please don't PM about things that are not private.

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #48 on: September 21, 2014, 11:38:41 AM »
Actually, I was just wondering... I can't find the 'Scan Image for ASR Script' thing in Disk Copy. Do I need to install ASR first?

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #49 on: September 21, 2014, 11:52:08 AM »
its not part of disk copy its an applescript script that instructs disk copy to function in an altered fashion
it accesses functionality of the app that is not present in the actual GUI of the disk copy app "theres more under the hood"

if u remember, i had difficulty writing an applescript to make diskcopy create a .smi self mounting image..
http://macos9lives.com/smforum/index.php?topic=798.msg2850#msg2850

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #50 on: September 21, 2014, 12:00:36 PM »
Actually, I was just wondering... I can't find the 'Scan Image for ASR Script' thing in Disk Copy. Do I need to install ASR first?
Please don't PM about things that are not private.

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #51 on: September 21, 2014, 12:04:51 PM »
Oh I see, I have to have ASR in the same folder with Disk Copy, then it'll show up.

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #52 on: September 21, 2014, 12:09:53 PM »
Oh I see, I have to have ASR in the same folder with Disk Copy, then it'll show up.
The main thing is to have the folder "Scripts" alongside Disk Copy.
Please don't PM about things that are not private.

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #53 on: September 21, 2014, 01:32:55 PM »
After making the image I went to Scan Image... like I'm supposed to, then it tells me "The image seems to be ok". Then it started verifying the checksum, and after it gave me an error saying

Quote
There was a problem scanning the image: Disk check failed. Try running Disk First Aid. (-1321)

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #54 on: September 21, 2014, 03:10:27 PM »
if the image was over 2gb thats the error u will get

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #55 on: September 21, 2014, 03:17:15 PM »
The two images I made are 300mb and 400mb.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #56 on: September 21, 2014, 03:24:43 PM »
check the script.. open it in a text editor.

http://www.madriver.k12.oh.us/technology/whitepapers/asr/
despite mactrons effort to illustrate..
perhaps the added actual dialog can help u here

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #57 on: September 21, 2014, 03:41:38 PM »
Is there something wrong with the script? I did what that page says but it gives me the error regardless. After the error I see where Disk Copy says something like the script was applied or whatever but I don't think I should be getting that error.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #58 on: September 21, 2014, 07:01:51 PM »
did u read step five?

Quote
Step Five

Run Apple's Disk Tools on the hard drive to be cloned (^ before creating the image), and ensure there are no errors. If there are, you will still be able make the image, but the "Scan Image for ASR..." step will fail. I cannot stress this point enough. It doesn't matter if your disk utility came up clean, you still should run Disk Tools. Trust me, this cost me over two days once playing the "why won't this work?" game.

looks like there is another step/precaution u must take before making the image itself..
running disk tools to  ensure a clean filesystem.. proper validating structure.. etc

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #59 on: September 21, 2014, 07:34:06 PM »
So I guess there's an error on my drive or something. Hmm...

MacTron, are you cloning an IDE or a SATA drive?

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #60 on: September 21, 2014, 08:36:25 PM »
Quote
Problem: The field in the Master Directory Block representing the first allocation block is wrong., -1, 0
Problem: Invalid BTree node size, 3, 0

Then it says that Disk First Aid can't repair it.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #61 on: September 21, 2014, 11:53:43 PM »
just use a different drive specificly for the purpose of makign the image
if u remember mactron used a 2gb ssd or flash drive

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #62 on: September 22, 2014, 12:53:34 AM »
Quote
Problem: The field in the Master Directory Block representing the first allocation block is wrong., -1, 0
Problem: Invalid BTree node size, 3, 0

Then it says that Disk First Aid can't repair it.

this is what happened to my mdd.. where i had to erase my drive and start all over.. i think its being caused by some type of app we all are using... maybe a bad crack? it will take a combination of bad luck, good luck + close observation to know for sure *sigh*

exactly why we need to crack this riddle once + for all (to have a cloned image larger then 2gb) rather then spend 2-3 days reinstalling all our apps when some sort of trouble pops up..id like to take a look at what exactly the script is doing (i havent looked at the applescript yet)

as i understand it - we have a version of disk copy that is more then capable of making an image larger then 2gb..
BUT we have a script that was originally written for an earlier version of disk copy which didnt have this functionality. (the link i posted mentions v6.3x) so perhaps editing +updating the script properly could enable us to make >2gb clone images from which to restore...
or maybe the secret is just what is detailed above.. to use disk tools to confirm the validity of the original source drive to be 100% perfect, as the cloning process undoubtedly uses a block copy procedure to copy the drive exactly.. but remember that applescript accesses the raw functionality of disk copy, to do things that are not present in the gui.. i have a feeling with the right additional scripting maybe the checksum error can be bypassed in some way.. by either telling it not to check.. or not to stop and "error out" in the event of a checksum fail

Quote
The worst thing is that even Apple Disk Copy and ASR can work with big image files (over 2 GB) this script don't work with those big disk image files...

see mactron even said this clear + directly above.. its the scripts mathetmatic/calculation that needs to be fixed to get it to produce the right value and place it in the cSum resource properly... some part of the script doesnt support files larger then 2gb... however this may require intimate knowledge of the actual programming of the 6.5b13 updated disk copy.. surely there must be documentation for diskcopy 6.5+ somewhere?

how long is the script? can u post it in a quote block here in the thread? (use the 'code' bbcode)
« Last Edit: September 22, 2014, 06:28:17 AM by chrisNova777 »

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #63 on: September 22, 2014, 03:30:21 AM »
Usually when I backup HDs I'm backing up the entire thing, all partitions included. When you restore it, it actually restores the partitions too. That means if you use a drive with another size that you'll have some free space that isn't partitioned and you have to run some trickery on it to get it back.

what software were u using to manipulate partition sizes? the only one i used to use was "Gparted" under linux.. but i didnt install linux i just booted with a linux "live cd" i had alot of success with that.. but that was on x86 intel PC machines, but to "gparted" a partition is a partition, is a partition, the way in which it functions is to do with blocks + sectors.. regardless of OS.. this is why i kept saying that its fine to use superduper or ccc under osx to clone the drive.. and restore... i already posted here on the board that i had success doing this 100%  and gave the further observation that it worked fine for me the first time then the second time i had difficulty.. the reason for which i had made the hypothesis that this was because the first time i had used a drive with only 1 partition, and possibly under 128gb in size. the second time i restored to a 500gb drive partitioned in 3 and i had problems.. but, again, using a single partition/single drive. using mac osx tiger 10.4.11 i used superduper or carboncopycloner and it worked fine.. it was 100% as though i didnt change anything and was stil using the same disk...i did not access this partition at all other then to clone it.. booted into X on another drive.. cloned the drive .. and restored it...actually now that i think of it i think i may have used the same size drive .. 80gb seagate for both the source + destination (different drives, same brand + size) without even realizing it.. and that may have been the reason for the 100% success the first time
but for now.. lets focus on the 3 important things, ASR itself, diskcopy 6.5b13 and the applescript which adjusts the checksum value

i think this help is for the command line mac os x version of ASR
but they are most likely very much the same kind of beast
http://derflounder.wordpress.com/2013/04/30/asrs-hidden-documentation/
u see here:
Quote
--noverify        don't checksum results
there is an option of ASR to disable the checksum entirely... at least on osx version
perhaps we can access this property/flag via applescript using another script to run ASR itself with options not shown in the ASR gui

actually i just noticed the date is 2013.. this is most likely a very very updated modern version of ASR ;(
we need to find some vintage ASR documentation

i think there must be a way to tell ASR 4 things...
1) source file
2) destination file
3) erase the drive
4) dont do a verify***

**Except this isnt present in the GUI itself.. but maybe accessible when 'directing' the program from an applescript "noverify" or "nocheck"

http://www.austinschools.org/it/itrc/docs/ASR_How_To.pdf
Quote
This document is not official Apple documentation, but instead, provides some guidelines for using Disk
Copy and ASR. Tommy Hann, Consulting Engineer for Apple Computer, wrote the document and
comments may be sent to hannt@apple.com

Quote
Apple Software Restore (ASR) is an Apple utility for restoring a standard software configuration to a
Macintosh. With ASR and another utility called Disk Copy, you can make a restore image from a working
Macintosh and later restore that image to other Macintoshes, assuming they are of the same model. For
example, you might need to configure a large number of iMacs with the same Mac OS and certain
applications that you have licenses for. Using ASR and Disk Copy, you could configure all of these
Macintoshes with the exact same configuration so that the software is the same on each. Basically, you are
creating a full backup of one machine and restoring it to other like machines.

Quote
The versions of Disk Copy and ASR that you will be using are as follows:
Disk Copy 6.5 or later
Apple Software Restore (ASR) 2.2.5 or later
Along with Disk Copy are several AppleScripts: “Scan X-only image for ASR”, “Scan X+9 image for ASR”,
“ImageScan” and “Set UDIF segment size”. When using Disk Copy to create a restore image, you must
store these scripts in a folder called “Scripts” that is located in the same folder as the Disk Copy
application

in one of the illustrations in the document, the version of ASR is shown to be "2.2.5d3c2"
« Last Edit: September 22, 2014, 06:42:42 AM by chrisNova777 »

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #64 on: September 22, 2014, 06:44:31 AM »
Quote
Segmenting your images – How? When? Why?
As mentioned above, an image larger than 2GB cannot be restored from an AFP server volume. However,
you can segment a large image into 2GB or smaller chunks and still be able to restore the image from the
server. To segment your images, use the menu item “Set UDIF segment size” under the “Scripts” menu in
Disk Copy. Instead of typing in 0 as instructed above, type in the maximum size in megabytes for your
segments

here we have hope;)  ;D :-* :D :)

im pretty sure my AFP server allows for files larger then 2gb..
perhaps this was a limitation that was beaten?

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #65 on: September 22, 2014, 06:48:14 AM »
here we go!!!!!!!!!!!!!!!!!!!!!

Quote
ASR preferences file
It is possible to customize ASR with a preferences file. (Note that if you have never used ResEdit, you
should probably not change any of the preferences.) ASR's configurable options are stored in a resource
of type 'CFIG', with ID 9000, in the preferences file or inside ASR itself. The preferences file is found by
type/creator and should be stored in the configurations folder. These instructions direct you to copy the
ASR preferences file to the same folder or volume as the ASR application. You can place the file here, in
the configurations folder, or even in the Preferences folder inside of the Systems Folder – it will work in
any of these locations. You can customize ASR by changing the resource found in the ASR application
itself instead of changing the resource found in the preferences file. If modifications are made in both
places, the settings found in the preferences file will override the preferences found in the ASR
application.

Important Note:All bits listed as "Unused" should be left unset (e.g. zero). Set=1 Unset=0

a large list of customizable options!!! just as i suspected
but chief among them for this scenario:

Quote
Skip Checksum
If not set, the checksum of the restored release is calculated and compared to the value contained in the
bundle folder name. If they don't match, an error is reported. For images, the checksum is compared to
the value taken from the 'cSum' resource in the image. For both images and disk cloning, an additional
checksum is performed on the filenames and FileID's of those file names. This should be set to 1.

so this check can be disabled *IN ASR ITSELF* via the preference file configuration (instead of using applescript like i first thought) eliminating the need for "scan image for ASR" script entirely

hallelujah! now lets get working... :D
« Last Edit: September 22, 2014, 08:50:11 AM by chrisNova777 »

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #66 on: September 22, 2014, 07:42:26 AM »
Two things:
- In ASR v2.x the "Skip Checksum" option must be set with ResEdit inside the ASR app itself, because this version ignore the preferences file.
- I've unsuccessfully tried the "Skip Checksum" settings... so good luck. :)
Please don't PM about things that are not private.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #67 on: September 22, 2014, 08:48:10 AM »
complete list of documented preferences file options 

Quote
Version
BoxFlag Disposition
Set auto-action to restart
Skip Desktop Rebuild Errors
Use Explicit File System Setting
Use HFS+ for New Volume
Copy Boot Blocks from resource
Auto Shutdown after restore
Allow Shutdown after restore
Show Splash Screen
Show Expert Controls
Lock Expert Toggle
Allow Autopilot
Show Erase Disk Control
Barcode mode
Restore To Folder
Skip Checksum
Leave Unwanted Files
Copy Rest of bundle
Copy System
Erase Target On Failure
Restore In Place
Skip Erase Warning
Erase Target Volume
Auto shutdown time (seconds)
Thermometer update ticks

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #68 on: September 22, 2014, 09:03:46 AM »
Another bad news:
Unfortunately I just found another limit: 4GB. (If we use compression, around 6GB can fit inside a 4GB compressed file)

The good thing is we only need a System Folder (and some invisible files) to preserve authorizations.

 I'll try to explain it with an example:
Inside my boot Hard disk "MacTronHD" I have:
32Gb of Kompakt libraries.
1 Gb of Cubase + plugins.
1 Gb of System Folder

If I try to image this "MacTronHD" I will have a big image file of 34 GB. Instead I can move temporary  the 32Gb of Kompakt libraries to another Hard Disk, So I have a 2Gb "MacTronHD" to be restored wherever I want preserving disk  authorizations, and the 32Gb of Kompakt library that can be drag copy without any problem.
Please don't PM about things that are not private.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #69 on: September 22, 2014, 10:17:44 AM »
i dont understand why u dont just create a segmented image ??
http://support.apple.com/kb/TA26426?viewlocale=de_DE

it must be the same way that thay made the multi-disc software restore cds
just specify 650mb as the "udif" size when creating the image.. and it will
break it into cd size chunks.. or a size under 2gb .. or whatever segment size
u want to try

Quote
Segmenting your images – How? When? Why?
As mentioned above, an image larger than 2GB cannot be restored from an AFP server volume. However,
you can segment a large image into 2GB or smaller chunks and still be able to restore the image from the
server. To segment your images, use the menu item “Set UDIF segment size” under the “Scripts” menu in
Disk Copy. Instead of typing in 0 as instructed above, type in the maximum size in megabytes for your
segments

have u tried this? no?
is it because u need ASR 2.2.5? and u only have ASR 2.2.4?
i think we need the full ASR 2.2.5 version complete with the other scripts referenced by the HOW TO Document
u are using a script that was written for ASR 1.3.2..u need the script thats written for ASR 2.2.5
the script that works for mac os 9 for the ASR 2.2.x is called "Scan X+9 image for ASR"
this "scan image for asr" script is limited because its too old
« Last Edit: September 22, 2014, 10:54:14 AM by chrisNova777 »

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #70 on: September 22, 2014, 10:46:49 AM »
OK apparently u cant do multi-cd

Quote
The versions of Disk Copy and ASR that you will be using are as follows:
Disk Copy 6.5 or later
Apple Software Restore (ASR) 2.2.5 or later
Along with Disk Copy are several AppleScripts: “Scan X-only image for ASR”, “Scan X+9 image for ASR”,
“ImageScan” and “Set UDIF segment size”. When using Disk Copy to create a restore image, you must
store these scripts in a folder called “Scripts” that is located in the same folder as the Disk Copy
application.
These versions of Disk Copy and ASR allow you to create a restore image containing Mac OS 9, Mac OS X
or both. However, you will be using Mac OS 9 to create the restore image and to restore it. Also note that
the tools included do not allow you to make a multi-CD restore image. The entire image, or the segments
that make up an image, must be stored on a single CD, external hard drive or server volume.

but u definately can do multi-segment!! have u tried? setting UDIF setting to 500? and doing a restore from a
7-8 segment files (or some other division of 4gb size) i read of a guy who did a 6gb image, set to "Read-only compression" and it was less then 4gb

i think u can get the full ASR 2.2.5 off of a mdd software restore cd.. or maybe quicksilver
i can check my quicksilver restore discs i got with my 933

ok i just read a msg saying that ASR 2.2.5 was only given internally by apple upon request so it probably isnt
on any of the software restore cds.. maybe the 1.25ghz 2003 mdd?
« Last Edit: September 22, 2014, 11:55:18 AM by chrisNova777 »

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #71 on: September 22, 2014, 11:23:59 AM »
heres the example script for launching the restore process (after having made the image... and booted up on bootdisk/alternat vol

Code: [Select]
set tWhatToRestore to lastASitem(":", (path to me as string))
set tWhereToRestore to choose folder with prompt "Select a volume and press 'Choose'"

launch application "Apple Software Restore"
--NOTE! Launching an application from AppleScript is different than opening it with a
--"Tell application" line. When you "launch" ASR 1.3.2 from AppleScript, this tells ASR
--to enter "background" mode. This replaces the need for the "LaunchASR" OSAX

tell application "Apple Software Restore"
with timeout of 1000000 seconds
try
Restore tWhatToRestore to ¬
tWhereToRestore placing in entire volume ¬
preprocess erasing disk ¬
copying everything ¬
warning true ¬
barber pole speed 10 with checksum, removing unwanted files and erasing on failure
on error tErrorMessage number tErrorNumber
display dialog ("Error: " & "[" & tErrorMessage & "]" & ", [" & tErrorNumber & "]")
end try
end timeout
quit
end tell
--Note on the first parameter to the 'Restore' command: If you pass in a pathname or alias, ASR
--will assume it's a single image and restore it (if present). If you simply pass in a string
--(as in the example), ASR will look in the 'Configurations' folder for an image with that name.
--If the 'Configurations' folder is not present, ASR will look in the same folder as itself
--for an image with that name.

on lastASitem(delim, theText)
-- returns the portion of <theText> that follows the last <delim>
set theText to theText as string
if delim is in theText then
set theText to lastASitem(delim, (characters ((offset of delim in theText) + 1) through (length of theText) of theText))
end if
return theText
end lastASitem

and the scan for ASR script (both are from ASR v1.3.2)
Code: [Select]
property kImageSelectPromptString : "Select a image to scan"
property kImageIsReadWrite : "Selected image is read-write and cannot be scanned. Convert it to read-only (or read-only compressed) and try again"
property kImageDoesNotCheck : "The Selected image does not appear to be in the correct format, or created with Disk Copy. Click convert to convert it to Disk Copy format, or stop to halt the scan."
property kOkButton : "OK"
property kStopButton : "Stop"
property kConvertButton : "Convert"
property kImageScanOSAXString : "Scripting Additions:ImageScan"
property k8ImageScanOSAXString : "ImageScan"
property kMissingAnOSAXString : "This droplet requires the ImageScan OSAX. Please put it into your Scripting Additions folder"
property kInfoMessage : "This script will prompt you for a read-only disk image, verify it's image checksum and volume structures, then scan it and generate information that ASR needs to restore it."
property kDontShowAgainButton : "Don't show again"
property kDisplayInfoMessage : 0

on run
if kDisplayInfoMessage is 1 then -- This doesn't work yet...
set tResult to display dialog kInfoMessage buttons {kDontShowAgainButton, kOkButton} default button kOkButton with icon note
if button returned of tResult is kDontShowAgainButton then
set kDisplayInfoMessage to 0
end if
end if

try -- Check to see if the ImageScan osax exists
set x to alias ((path to extensions as string) & kImageScanOSAXString)
on error
try
set x to alias ((path to scripting additions as string) & k8ImageScanOSAXString)
on error
try -- Assume I'm being run from Disk Copy, and want to see if it's in the 'Scripts' folder
set x to «event JonBImSc»
on error tErrMessage number tErrNumber
if tErrNumber is "-1708" then -- ImageScan is not available
return kMissingAnOSAXString
end if
end try
end try
end try

try
tell application "Disk Copy"
set tImageToScan to «event UTILSEL1» given «class SELp»:kImageSelectPromptString
set tIsROImage to «class Xcrc» of «class DImg» tImageToScan
end tell
on error tErrMessage number tErrNumber
if tErrNumber = -128 then -- The user clicked cancel
return "User cancelled operation"
else
display dialog ("There was a problem selecting the image: " & tErrMessage & " (" & tErrNumber & ")") buttons {kOkButton} default button kOkButton
ErrorSound()
return
end if
end try

if tIsROImage as string = "00000000" then
display dialog kImageIsReadWrite buttons {kOkButton} default button kOkButton
ErrorSound()
return
else
try -- check image and verify checksum here
tell application "Disk Copy"
set tResult to «event ddskChek» tImageToScan
set tImageConsistency to «class Rch1» of tResult
set tImageErrors to «class Rch2» of tResult
set tChecksumResult to «event ddskVcrc» tImageToScan
set tImageChecksumValidity to «class Vlid» of tChecksumResult
end tell
on error tErrMessage number tErrNumber
display dialog ("There was a problem checking the image: " & tErrMessage & " (" & tErrNumber & ")") buttons {kOkButton} default button kOkButton
ErrorSound()
return
end try

if (tImageConsistency is not true) or (tImageChecksumValidity is not true) then
if tImageErrors > 1 then
display dialog ("There is a problem with this image. Please check it and try again") buttons {kOkButton} default button kOkButton
ErrorSound()
return
end if
set tResult to display dialog (kImageDoesNotCheck) buttons {kConvertButton, kStopButton} default button kStopButton
if button returned of tResult is kConvertButton then
ConvertImage(tImageToScan)
else
ErrorSound()
return
end if
end if

try
set tResult to «event JonBImSc» tImageToScan with «class omt0» and «class chek»
on error tErrMessage number tErrNumber
display dialog ("There was a problem scanning the image: " & tErrMessage & " (" & tErrNumber & ")") buttons {kOkButton} default button kOkButton
ErrorSound()
return
end try
end if

try
tell application "Disk Copy"
«event UTILLOG » "We've just scanned an image for ASR!" with «class TSMP»
«event UTILLOG » "Image " & "“" & (tImageToScan as string) & "”" & " was scanned."
«event UTILLOG » "It has " & («class scnt» of tResult as string) & " files in it, and it's file checksum is $" & («class 1hsm» of tResult)
if «class sypt» of tResult is not "" then
«event UTILLOG » "It's System folder is located at " & («class sypt» of tResult as string) & ", " & ¬
"and has " & («class syct» of tResult as string) & " files in it."
end if
end tell
on error tErrMessage number tErrNumber
display dialog ("There was a problem updating the log: " & tErrNumber & return & " but the image was scanned") buttons {kOkButton} default button kOkButton
ErrorSound()
return
end try

try -- Just play a little tune to indicate that we're finished...
«event aevtplsn» "Done"
end try
end run

on ConvertImage(tImageToConvert)
display dialog ("Coming soon...")
end ConvertImage

on ErrorSound()
try
«event aevtplsn» "Error"
end try
end ErrorSound
------------------------------------------------------------------------------------------
--
-- GetPath - Returns the beginning of a input string deleting info after the last colon
--
-- Parameters:
-- Type string: aString
--
-- Returns:
-- All characters from the first character to the last colon in the string
--
-- Example:
-- GetPath("Macintosh HD:Desktop Folder:FY94 budget")
-- ==> "Macintosh HD:Desktop Folder:"
--
on GetPath(aString)
repeat
if last character of aString is not ":" then
set aString to (characters 1 thru ((length of aString) - 1) of aString) as string
else
exit repeat
end if
end repeat
display dialog aString
return aString as string
end GetPath
------------------------------------------------------------------------------------------

Offline Syntho

  • Platinum Member
  • *****
  • Posts: 849
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #72 on: September 22, 2014, 11:35:08 AM »
I don't know when/how this happened but I had some errors on both of my partitions. My main OS8.6 drive had a 'missing custom icon', and my OS7.6.1 drive had the error I posted above. If Disk First Aid notices any error at all with the disk, it'll give you a notice and I wouldn't trust the image you have. It works fine once you sort that out though.

Unfortunately I had to format and repartition my drives again so we'll see how this restore goes in just a minute.

Offline MacTron

  • Global Moderator
  • Platinum Member
  • *****
  • Posts: 1918
  • keep it simple
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #73 on: September 22, 2014, 12:04:00 PM »
Of course I have tried segmented images.
The point is to modify the "scan for ASR script" to work with big images (over 2 GB). And Yes, I've achieved that this script accept those UDIF images (segmented or not, not really matter) but it can't do the full work, by now...
lets see how it goes...
Please don't PM about things that are not private.

supernova777

  • Guest
Re: Preserving disk authorizations using Apple Software Restore.
« Reply #74 on: September 22, 2014, 12:17:58 PM »
If I try to image this "MacTronHD" I will have a big image file of 34 GB. Instead I can move temporary  the 32Gb of Kompakt libraries to another Hard Disk, So I have a 2Gb "MacTronHD" to be restored wherever I want preserving disk  authorizations, and the 32Gb of Kompakt library that can be drag copy without any problem.

pretty sure you could add the name of the directory to the "Leave Unwanted Files" preference and then it would ignore those files when imaging the drive...
its worth a try? but might be a good idea to ensure that its actually seeing the preferences file with some other easy to see/check preference first
« Last Edit: September 23, 2014, 03:05:38 AM by chrisNova777 »