Home › Forums › OS X Server and Client Discussion › Questions and Answers › ASR scan from terminal not working
- This topic has 6 replies, 2 voices, and was last updated 22 years, 11 months ago by
bossa nova.
-
AuthorPosts
-
July 8, 2003 at 7:55 pm #356057
bossa nova
ParticipantI 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.July 9, 2003 at 2:27 am #356061bossa nova
ParticipantJoel,
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??
July 15, 2003 at 1:54 am #356107bossa nova
ParticipantOk 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 Partitioncouldn’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 Partitioncouldn’t erase target – Operation not permitted.
—–end of terminal session
July 15, 2003 at 6:08 pm #356117bossa 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 Partitioncouldn’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 256Couldn’t enable permissions for “/Volumes/G4 1GHz”
Try using -disableOwnerscouldn’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 1GHzcouldn’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 volumecouldn’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!
July 18, 2003 at 5:59 am #356141bossa nova
ParticipantI 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.
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed