Home Forums OS X Server and Client Discussion Questions and Answers ASR scan from terminal not working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #356057
    bossa nova
    Participant

    I am trying to run the “-imagescan” call in the terminal and it’s not working.

    Can anybody tell me what I am doing wrong?

    here it is the way I typed it:

    [Admin:/Volumes/Test Partition] root# /usr/bin/asr -imagescan ./Volumes/Test\ Partition/HD.ro_asr.dmg
    /usr/bin/asr: Command not found.

    #356061
    bossa nova
    Participant

    Joel,

    I am guessing that it is installed by default on server but not on a standard 10.2.6 image am I correct? Is it on the Dev disk or??

    #356107
    bossa nova
    Participant

    Ok so I got asr installed and it looks like it worked when I made my image. Now I can’t get it to restore to the correct volume. Any ideas?

    Here’s my command line session:

    [Admin:/Volumes/Test Partition] root# asr -source /Volumes/OS\ X\ Boot\ disk/test\ partition\ files/HD.ro_asr.dmg -target /Volumes/Test\ Partition/ -erase -noprompt
    Validating target…done
    Validating source…done
    Erasing target device /dev/disk2s9…/sbin/newfs_hfs: /dev/disk2s9 is mounted on /Volumes/Test Partition
    /sbin/newfs_hfs failed with error 256
    /Volumes/Test Partition

    couldn’t erase target – Operation not permitted.
    [Admin:/Volumes/Test Partition] root# sudo asr -source /Volumes/OS\ X\ Boot\ disk/test\ partition\ files/HD.ro_asr.dmg -target /Volumes/Test\ Partition/ -erase -noprompt
    Validating target…done
    Validating source…done
    Erasing target device /dev/disk2s9…/sbin/newfs_hfs: /dev/disk2s9 is mounted on /Volumes/Test Partition
    /sbin/newfs_hfs failed with error 256
    /Volumes/Test Partition

    couldn’t erase target – Operation not permitted.

    —–end of terminal session

    #356117
    bossa nova
    Participant

    …ok now trying something different. On this second attempt I was trying to restore to a firewire drive that was partitioned into 3 volumes. I was thinking maybe it wasn’t working because it didn’t want to write to a firewire volume that was partitioned. (don’t ask me why-I just think some firewire volumes are finicky)

    So this time I booted from the firewire drive instead and I installed an additional drive right into the machine and tried again. Can anyone see the error in my ways in the following terminal session?

    Last login: Tue Jul 15 10:44:20 on console
    Welcome to Darwin!
    [My-Computer:~] My% asr -source ./HD.ro_asr.dmg -target /Volumes/Test\ Partition -erase -noprompt
    Validating target…done
    Validating source…/usr/bin/hdid: “/Users/My/HD.ro_asr.dmg” unrecognized: No such file or directory.
    couldn’t validate source – No such file or directory.

    [My-Computer:~] My% where asr
    /usr/sbin/asr
    [My-Computer:~] My% asr -source /HD.ro_asr.dmg -target /Volumes/Test\ Partition -erase -noprompt
    Validating target…done
    Validating source…done
    Erasing target device /dev/disk2s9…/sbin/newfs_hfs: /dev/rdisk2s9: Permission denied
    /sbin/newfs_hfs failed with error 256
    /Volumes/Test Partition

    couldn’t erase target – Operation not permitted.
    [My-Computer:~] My% asr -source /HD.ro_asr.dmg -target /Volumes/G4\ 1GHz -erase -noprompt
    Validating target…/sbin/mount_hfs: Operation not permitted
    /sbin/mount failed with error 256

    Couldn’t enable permissions for “/Volumes/G4 1GHz”
    Try using -disableOwners

    couldn’t validate target – Operation not permitted.
    [My-Computer:~] My% asr -source /HD.ro_asr.dmg -target /Volumes/TV\ G4\ 1GHz -erase -noprompt
    Validating target…done
    Validating source…done
    Erasing target device /dev/disk1s9…/sbin/newfs_hfs: /dev/rdisk1s9: Permission denied
    /sbin/newfs_hfs failed with error 256
    /Volumes/G4 1GHz

    couldn’t erase target – Operation not permitted.
    [My-Computer:~] My% asr -source /HD.ro_asr.dmg -target /Volumes/G4\ 1GHz
    Validating target…”/Volumes/G4 1GHz” is not a volume

    couldn’t validate target – No such file or directory.
    [My-Computer:~] My% mount /Volumes/G4\ 1GHZ
    mount: /Volumes/G4 1GHZ: unknown special file or file system.
    [My-Computer:~] My%

    —-end terminal session.

    This is really getting frustrating. I have to get this image finished and the pc guys think this is really funny and have made some very dry Mac jokes. Maybe pc’s really are the answer. It’s slow going trying to learn this stuff from bulletin boards and trial and error.

    Anyone wanta have an ASR party? I will bring the beer!

    #356141
    bossa nova
    Participant

    I finally got it figured out. I will post my summary as soon as I have tested it thoroughly. There were two suggestions I got from other boards, one about the relative path and another about unmounting the drive before trying to restore. I did get it to restore…just want to test to make sure there are no problems.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed