http://en.wikipedia.org/wiki/Apple_Software_Restore...even Wikipedia forgot Mac Os 9 :(
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 systemThat's exactly what I have done.
instant daw + instant os9 setup in one
is this included already in 9.22?ASR comes in most Macs that came with "Software Restore" disks.
or a seperate installation?
(re: ASR)
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.
my questions:The original 'source' disk have *one* HFS partition.
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?The restore was performed to *one* of a multiple partitions 'destination' disk.
c) did u have to boot to another system drive while doing the disk copy backup?No, I haven't.
my comments:Yes. booting from a USB 1.1 thumb/flash drive.
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)
what i would sometimes like to have is an "all steinberg CDs" CD.
... then one could reauthorise CD-stuff from image files.
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.Successful again!
Let's see how it goes...
Successful again!
-afro-
awesome!First test:
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?
do u think its time to have someone else try to restore to another machine?The same good result from one of my Sawtooth...
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)Yes.
we need volunteers!
It is impossible to me to test all the DAWs and plugins...
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.
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?
Where can I get a copy of the Apple System Restore software?
resize/expand the partition size which was hard to do on Macs as far as I can remember.
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.
if i am not overlooking something, this should work with the 3 major copy protection schemes in question. or?
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...
As far as Unisyn, it doesn't seem to be a disk authorization issue. It's just a lack of SCSI issue.
3 major copy protection schemes ¿?
This ASR method mainly work with schemes based on file/folder IDs (vRefNum).
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:
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 :-[
WHERE CAN I GET : Scan Image for ASR??
_BT
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...
Hey MacTron, which version of Disk Copy did you use? http://mywebpages.comcast.net/macdan/files/DiskCopy65b13.bin - this one has a 'clone' feature.
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?
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.
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?(http://macos9lives.com/smforum/index.php?action=dlattach;topic=1680.0;attach=950)
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.
There was a problem scanning the image: Disk check failed. Try running Disk First Aid. (-1321)
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.
Problem: The field in the Master Directory Block representing the first allocation block is wrong., -1, 0
Problem: Invalid BTree node size, 3, 0
QuoteProblem: 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.
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...
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.
--noverify don't checksum resultsthere is an option of ASR to disable the checksum entirely... at least on osx version
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 [email protected]
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.
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
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
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
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.
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
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
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.
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
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
------------------------------------------------------------------------------------------
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.
So I guess there's an error on my drive or something. Hmm...
MacTron, are you cloning an IDE or a SATA drive?
The ImageScan Scripting Addition can optionally perform a volume verification scan when scanning a disk image. This scan is the same as running Disk First Aid on the mounted disk image volume. This is turned on by default in the example AppleScripts.not sure what this means
-ImageScan and ASR 1.3.2 support block checksumming when restoring an HFS+ formatted image.
Ten simple steps:
Defrag the hard drive, if you have the tools and time to do it. This will make your image smaller. Check the hard drive for errors using the latest Disk First Aid. Don't use Norton; Norton takes too #*@& long, and if Disk First Aid can't fix it, you're better off reformatting the drive.
Obtain the latest version of Disk Copy. Open it up and unclick the following options in the preferences: "Zero Blocks", "Mount Afterward" and "Verify Checksum". (Yes, "Verify Checksum". Trust me.)
Drag the hard drive to Disk Copy. Select "Read Only" or "Read Only Compressed." Keep in mind that "Read Only Compressed" will take a long time. If the image is going to be too big, see my tips and tricks below.
Did I mention that you need a copy of ASR? I'm sorry, but this is the only legal link for it that I know of, and it's a huge download. Download it (http://macos9lives.com/smforum/index.php?action=dlattach;topic=1680.0;attach=962)from the Apple FTP site. ASR is located in this package.
Download my extras. Don't worry; they're small. Open up the "Scripts" folder in ASR. Drag the 2 applescripting extensions to the System Folder. (Which should put them in the Scripting Additions folder.) **** missing ;( *****
Run Dan's (modified) ASR script. (Click on it, and then click "Run".) It'll verify the image first, then a dialog box will come up stating that it's OK. (Then click "OK," of course.) The rest will take a long time, and it'll look like your computer is stuck in a loop, but it will not take as long as the real ASR script takes, and it won't timeout. When it's done, you'll hear the happy chimes. If you are out of the room, that's fine, the happy chimes don't care. If you get stuck on this step, see the tips and tricks listed below.
Put ASR in the same folder as the image and launch it. Do not put Dan's ASR prefs file in the folder or in the prefs folder yet. Keep Dan's prefs far away from ASR at this point. Launch ASR. Click "OK" at the startup screen and then look at the bottom of the window for a message. If this message says anything except "this image has a missing or outdated checksum resource" then we are good to go. If it does say this, mutter some obscenities, making sure no management or students are around, and then try again (or see my tips and tricks below).
Be prepared. ASR will erase your hard drive, so you will need to boot from some other media, and you will need to have access to the image. You can boot from a CD and throw the image on a server or a zip for instance. Or another partition of the drive.
Put Dan's ASR pref in the same folder as your image. This makes ASR totally automatic. Now launch ASR. Instead of coming up with the dialog, it will automatically erase the hard drive, restore from the image, and shut the computer down when it's done. Pretty slick, huh? One double click and it does the rest of the work for you.
Set final settings. For instance, each machine should have a different machine name. Also, I don't think ASR sets the hard drive name, which should be set to the original name from the image on all the computers. You will have to go to each machine and do this. (This cannot be controlled by ASR.)
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.
(Optional) MacOS disk tools, such as Norton Utilities for MacOS. -- http://www.madriver.k12.oh.us/technology/whitepapers/asr/
So I guess there's an error on my drive or something. Hmm...
MacTron, are you cloning an IDE or a SATA drive?
one other thing i read is that there isnt a checksum check if the file system is mac os standard (HFS) rather then HFS+
maybe u could try that when making your new clone syntho.. format the drive as HFS mac os standard
if u want to see the stuff i read i believe its in the asr 1.3.2 documentation (from mactrons folder)
i think it was the pdf file + search for checksumQuoteThe ImageScan Scripting Addition can optionally perform a volume verification scan when scanning a disk image. This scan is the same as running Disk First Aid on the mounted disk image volume. This is turned on by default in the example AppleScripts.not sure what this means
-ImageScan and ASR 1.3.2 support block checksumming when restoring an HFS+ formatted image.
This method works great, however there are a couple issues:
1) The allocation of memory to each program will need to be re-done every time you restore an image since all of them are lost.
With the advent of ASR 2.x, it is more capable of other methods of restoring, but the old ASR Prefs file won't work with it.u see mactron the new asr 2.x doesnt see the old prefs file.. we NEED a complete package of 2.x ASR and then this would be working 100% with no problems !!!!!!!!!!!!!! but here we have a possibly solution to work with 2.2.4 aswell.. using this script "Config ASR script"
Automate ASR 1.0
From Your Friends at Really Early Morning Software
http://homepage.mac.com/remsoftware/index.html
Automate ASR is a very advanced replacement to implementation of automatic restorations using Apple Software Restore. Apple provied a mediocre way to do implementations in ASR 1.x by editing the Standard ASR Preferences file with ResEdit. Crude and limited, but it worked. With the advent of ASR 2.x, it is more capable of other methods of restoring, but the old ASR Prefs file won’t work with it. So, now what? AppleScript to the rescue!
History
This project started as an assignment for me (a Mac techie) for the Mac Lab at my school. We use Apple Software Restore on a regular basis to image entire labs. ASR 1.x is outdated and can’t do quite as much as the newer versions of ASR. We had always used the prefs file to fully automate it, so when we wanted to switch to ASR 2.x, we needed a new way. So I started writing this script, and the only thing it started off being able to do was restoring a single image to the internal hard drive. Then we had the problem with multiple images and with multiple drives present. Along came the option to deal with those situations.
It stopped there for a while when I came across a big problem and had to find a solution (don’t ever have file sharing turned on on the image file! BAD idea!). I had written to the Mac-Managers list to get this problem solved, and afterwards I had scores of people asking me for a copy of my script. Originally, I was just going to tell these people to edit the ASR script to fit their needs, but some of them had no AppleScripting knowledge. Along came the Config ASR script to setup all the options you need to automate the restoration. My hope is that this set of scripts will ease the pain of imaging for lab administrators like me.
Overview
This archive contains:
ASR script — the actual restoration script.
Config ASR script — the script to setup your restoration preferences.
Apple Software Restore application — You should know what this is! Version 2.1.2 is included to ensure compatibility.
Configurations folder — A prenamed empty folder for your disk images.
All of these files must reside in the same directory at all times!
When you first start your setup, run the Config ASR script. This allows you to setup the various options for the restore process. To restore a drive, run the ASR script. These files must always stay in the same folder, because they rely on themselves for the preferences and they are setup so they look for themselves in the same directory. The ASR application and the Configurations folder must also be in this same directory. If you are running the restore from a CD or other locked volume, make sure to run the Config ASR script before burning the CD. You cannot change the preferences if you are running from a locked volume.
Your restoration disk MUST be setup this way:
--
Restore CD [this name doesn't matter]
Apple Software Restore [application—use version 2.1.2 to ensure compatibility]
ASR [the main script]
ASR Config [the configuration script—VERY important!]
Configurations [folder]
[at least 1 valid ASR image inside]
System Folder* [valid system folder, OS 9 or later recommended, maybe even required. I dunno. Try it out and let me know.]
[must contain all AppleScript extensions and standard additions file]
Utilities [folder]
[put things like Drive Setup, Disk First Aid, Script Editor, etc. in here. Not required, but you'll thank yourself later. Also include an appropriate disk security unlocker if needed.]
--
*The scripts do not necessarily have to be run off the same disk as the startup disk. Just make sure that whatever system folder is currently active has the appropriate files.
Put an alias to the ASR script in the disk's startup items folder for 100% automation if that is your intent.
If there is more than one script in the configurations folder, the ASR script will ask you which to use for the restore. If there is more than one mounted volume whose name is not in the ignored volumes list, it will ask which volume to restore.
The ASR script must be run from the Finder, not Script Editor, unless you move all the files into the same folder as script editor...
The scripts are editable for informational/educational reasons and to let you make more customized preferences. They are commented to help you.
This does not do anything to help you make segmented images. The way Apple did segmented images is with .dmgpart files, which can (hopefully) be made with Disk Copy 6.5 (now in beta). Currently there isn't really a way to make these for the end user...
This doesn't help at all with the 2GB limit. There is no workaround for that (due to limitations in the Mac OS file systems and the fact that Disk Copy has not been updated to work with bigger files). Sorry!
System Requirements
A Macintosh with AppleScript installed.
Either the Standard Additions or Display Dialog scripting addition (included with various versions of AppleScript).
Apple Software Restore, version 2.1.2 recommended (included)
Recommended:
AppleScript version 1.4.3 or later (Requires MacOS 9.0).
A version of AppleScript that includes the Standard Additions scripting addition.
NOTE: These scripts were written with AppleScript 1.6. They may not work with earlier versions of AppleScript. I haven’t taken the time to test these scripts out with previous Mac OS versions. I highly recommend OS 9 or higher. I cannot guarantee compatibility with any other OS version. If you cannot get the Config ASR and ASR scripts to negotiate their settings, you may be able to work around this by merging the applications into one.
Contact Info
Want to contact the author? I accept bug reports, suggestions for improvements, etc. If you would like any sort of AppleScript written for you (personally), e-mail me with your idea, and we will negotiate payment. If you are looking for help creating your own AppleScripts, please visit Apple’s web site at http://www.apple.com/applescript/ . That site has been very helpful to me, especially the AppleScript Language Guide.
If you wish to distribute these scripts, this Read Me must be included. If you wish to include any or all parts of this on a CD or any other item with relatively wide distribution, please send me a note of your doing so. I would also appreciate a copy of what is being distributed and/or a donation. Thank you for your support!
Email: [email protected]
Website: http://homepage.mac.com/remsoftware/index.html
Version History
**This Read Me file was updated 6/11/02**
11/22/01 1.0 (ASR 1.2.2/Config ASR 1.1.2) Initial Public release [as for the high versions on the individual scripts, it’s because of the previous versions I did at school]
Disclaimer
The AppleScripts accompanying this Read Me are provided “as is.” I have made a reasonable effort to make sure that they won’t do any damage, however I cannot provide any guarantees. By running these programs, you assume all risk for any damage that may occur. If these scripts damage your files, cause you to run around in circles screaming like a monkey out of hell, magnetize your boss, break your refrigerator, invert the color of your wallpaper, or elope with your daughter, it is your responsibility, not ours. I would appreciate a kind note (no rants or flames, please) so that I may try to prevent this from occurring again, however I probably won’t be able to help you personally. I will try to correct any problems that may occur, however being notified of a possible problem with a script does not make me responsible for attempting to fix such problem, nor for notifying users that a problem may exist.
All brand and product names are trademarks or registered trademarks of their respective companies. I would like to thank Trans–Tex Software for Tex–Edit Plus, the awesome program used to create this Read Me! file.
All AppleScripts™ included in this archive are ©2001. They may not be reproduced in any way without permission from the author. The source code we distribute is for informational and educational purposes only, not for resale, pirating, or human consumption. Thanks!
i remember this dan guys page said u need to update some applescript extensions for newer scripts to work aswell This method works great, however there are a couple issues:
1) The allocation of memory to each program will need to be re-done every time you restore an image since all of them are lost.
It is weird. I never had this issue...
Use these scripts to prepare an image for use with ASR. Apple has these scripts available in the 20MB Installer SDK, but you can get them here at a smaller size, and even with instructions! What convenience!also attached! but this text.. now that i read it.. seems to say the scripts are the same as the ones in the sdk.. which will be of little benefit because we have those ones already
Finally, after the image has been created, select the appropriate scan script from the scripts menu:this is the missing key i think -- i had thought these scripts might be contained in these files in the attached asrscan.hqx...
a.
If your image contains just Mac OS X, select “Scan X-only image for ASR” from the “Scripts”
menu.
b.
If your image contains just Mac OS 9, or both Mac OS 9 and Mac OS X, select “Scan X+9
image for ASR” from the “Scripts” menu
Download my extras. Don't worry; they're small. Open up the "Scripts" folder in ASR. Drag the 2 applescripting extensions to the System Folder. (Which should put them in the Scripting Additions folder.)
Remember, if you copy from a hard drive that has directory damage (b-trees and gremlins and whatnot) your image will be bad! You have to fix the damage first or make a read/write image, mount it, run Disk First Aid on it (really, it works!) and then convert it to read only (which is a pain).
"But I want a checksum!"
But why? Ok, fine. Open up my script. Uncomment the timeout lines and everything that's commented out in between them, and then comment out "set tImageChecksumValidity to true". Don't use the original script provided with ASR; it will most likely timeout.
if (tImageConsistency is not true) or (tImageChecksumValidity is not true) thenhttp://macos9lives.com/smforum/index.php?topic=1680.msg8695#msg8695
Another bad news:
Unfortunately I just found another limit: 4GB.
i also suspect due to the presence of this .dmg file in the archive itself used as a template for creating dvd..There isn't any problem with .dmg's if they aren't compressed.
that this version of ASR will work 100% with a .dmg files
note that the .dmg file has its own specialized icon + filetype!!!
under version information is stored the size in mb with some other CRC32 checksum
IT WORKED! with a 4 GB image file.
-- Version 1.1.1 JFK - Updated for device images, and disabled System Folder matching when used when ASR 2.1.3
-- Version 1.1 JFK - Added block checksum string to log after scanning
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, or Disk Copy Scripts 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
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
tell application "Disk Copy 6.5b13"
set tImageToScan to choose file of type {"devi", "rohd"} with prompt kImageSelectPromptString
set tImageInfo to info for 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
try
set tResult to «event JonBImSc» tImageToScan with «class omt0»
on error tErrMessage number tErrNumber
if tErrNumber = -1708 then -- ImageScan is not available
display dialog kMissingAnOSAXString buttons {kOkButton} default button kOkButton
ErrorSound()
return kMissingAnOSAXString
end if
display dialog ("There was a problem scanning the image: [" & tErrMessage & "] (" & tErrNumber & ")") buttons {kOkButton} default button kOkButton
ErrorSound()
return
end try
try
tell application "Disk Copy 6.5b13"
if file type of tImageInfo is "rohd" then
log "We've just scanned an image for ASR!" with time stamp
log "Image " & "“" & (tImageToScan as string) & "”" & " was scanned."
log "It has " & (source count of tResult as string) & " files in it, and it's file checksum is $" & (type 1 hexadecimal part of tResult)
log "It's block checksum is " & (type 2 hexadecimal part of tResult)
if source system folder path of tResult is not "" then
log "It's System folder is located at " & (source system folder path of tResult as string) & ", " & ¬
"and has " & (source system folder count of tResult as string) & " files in it."
end if
else
log "We've just scanned an device image for ASR!" with time stamp
log "Image " & "“" & (tImageToScan as string) & "”" & " was scanned."
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
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
------------------------------------------------------------------------------------------
Correctly records to DVD-R DL (dual layer) media for data disc formats.
tell application "Disk Copy 6.5b13"and the old was sending commands to the regular old version of disk copy!!!
tell application "Disk Copy"no fucking wonder
is mac os 9 able to read/burn dual layer dvds?
i know the leopard dvd was dual layer..
im hoping the answer is yes
if anyoen has any info re: dual layer dvds + mac os 9.. please
share the knowledge!
the new script is coded to pass commands directly to disk copy 6.5b13Quotetell application "Disk Copy 6.5b13"and the old was sending commands to the regular old version of disk copy!!!Quotetell application "Disk Copy"no fucking wonder
it may very well work simply by changing this from "disk copy" to "disk copy 6.5b13" in the old script!!!! LOL
if we had renamed disk copy 6.5b13 to "disk copy" and deleted the old.. then it might have just worked just by doing that!
YES. Mac Os 9 can read Dual Layer DVD (commercial and writables).
And may be,Toast 5.2.x can write them, I don't remember for sure if I did it sometime.
Maximum file size 2 gigabytes
Maximum data fork size 2 gigabytes
mactron.. that info is straight from the tech info library of apple
you are saying its incorrect?
I restored an OS7.6.1 image onto the drive. It works 100% with the exception of the Digital Performer authorization. Even the Memory thing was fixed, not sure how that happened on OS8.6.
This is gonna save me so much time I can't even begin to explain. I probably spent about 4 months full time over the years just formatting/reinstalling software.
It's an authorization on your hard drive. I believe it's an invisible file and I could only see it when I used Greg's Browser. Maybe we can use Greg's Browser to copy it and restore it when we need it, but I'd rather just reinstall the damn thing myself.Some old school user had fried DP and EXS-24 CD-ROMs for quicker re-auth.
I believe it's an invisible file and I could only see it when I used Greg's Browser. Maybe we can use Greg's Browser to copy it and restore it when we need it, but I'd rather just reinstall the damn thing myself.http://kaleidoscope.net/greg/browser.html (http://kaleidoscope.net/greg/browser.html)
Disk images are always quicker but DP seems to need a burned CD. I bought the original myself so I just use that.
there is multiple versions of the nocd patch for dp that allow u to use a toast image AFAIK
one for 2.7 and another for 3.0,
but this is offtopic!!!! :P
there is multiple versions of the nocd patch for dp that allow u to use a toast image AFAIK
one for 2.7 and another for 3.0,
but this is offtopic!!!! :P
What is not covered thru the magic of clonning with ASR is ONTOPIC. The method to re-authorize quicker ASR clonned images on major DAWs/Samplers/VST(i) should be ontopic too. :(
Why is it that you can't restore the image to a smaller-than-original partition? Has anyone actually tried it?No problem with this.
... size of the destination Hard Disk or partition must be equal or bigger than the image file (uncompressed).
What is not covered thru the magic of clonning with ASR is ONTOPIC. The method to re-authorize quicker ASR clonned images on major DAWs/Samplers/VST(i) should be ontopic too. :(
one other thing.. the startup disk control panel with version #9.2.3 that is packaged with "ASR for MacOSx 1.1"
do u think this control panel is compatible with other versions of mac os (9.1, 9.0, 8.6??) i had the thought
that maybe this control panel could be used to give other lower versions the ability to select different system folders
with a same partition...
does anyone know what added features it has over other versions? has anyone explored this yet?
ASR however refuses to restore the image because it's > 4gb.
From 4GB to Infinity...
4GB image file size limit surpassed. Once the *new script* is applied ASR accept Image files over 4GB. Tested and confirmed.
Great job hageir :)
Please post it here as an attachment for the future
i have some vision 1.x disks i can try your method out with to verify
Haven’t needed to post anything like this in a while but here goes.
I want to use an older version of pro tools and it requires a floppy diskette to do the authorization. I happen to have one, thankfully. I’m going to guess that ASR probably won’t copy over that authorization but correct me if I’m wrong. Don’t want to lose an authorization since once it’s gone, it’s gone.
When I load this page on W10 Avast complaints about kaleidoskope.net doing phishing