Guest theeldergeek Posted July 2, 2010 Posted July 2, 2010 Using ARD3, is there a way to remotely erase a Volume on an iMac? All my machines are partitioned; obviously I have the boot partition, then I have another called "Scratch" which the students use for temporary files when video editing etc. I want to erase the entire contents of the 'Scratch' drive but leave the Volume intact. How could I do this without having to visit each machine? Clients and 10.5.8
HodgeHi Posted July 2, 2010 Posted July 2, 2010 I think DiskUtil would be the command you need. diskutil Near the bottom is an example of how to erase a volume. I think this is what you need to do. I am not 100% certain though so you may want to either test it on something first or wait for someone else to pipe up. I think it should work though. The command in the example is: Erase a volume diskutil eraseVolume HFS+ UntitledHFS /Volumes/SomeDisk
Guest theeldergeek Posted July 2, 2010 Posted July 2, 2010 (edited) I think DiskUtil would be the command you need You da man! I've just tried it an it works a treat, except I didn't realise that "UntitledHFS" needs to be the name I want the volume to be And thanks for the link too Edited July 2, 2010 by theeldergeek
Guest theeldergeek Posted July 2, 2010 Posted July 2, 2010 (edited) I've just tried it an it works a treat, except ... ... it has set the permissions to "read only" for everyone, whereas I need this to be 'read/write'. Not urgent, but is there anything I can add to the command to both erase it and make it rw ? I was thinking chmod 777 but as I am unsure, I don't want to try it until I get further advice. Edited July 2, 2010 by theeldergeek
HodgeHi Posted July 2, 2010 Posted July 2, 2010 chmod -R 777 should do it. 7 is for read write execute for owner, 7 is read write execute for group and 7 read write execute for everyone else. -R i think propergates the permissions down the hierarchy. Make a note of the permissions on the drive first and then give it a go. If it fails change it back. read and execute is 5 IIRC Run man chmod at the terminal prompt to get more of an idea. Also do some research online about chmod. They tend to simplify what it does. Worked for me. Or possibly someone with a little more knowledge of the command might come along.
Guest theeldergeek Posted July 2, 2010 Posted July 2, 2010 chmod -R 777 should do it. 7 is for read write execute for owner, 7 is read write execute for group and 7 read write execute for everyone else. -R i think propergates the permissions down the hierarchy. Make a note of the permissions on the drive first and then give it a go. If it fails change it back. read and execute is 5 IIRC Run man chmod at the terminal prompt to get more of an idea. Also do some research online about chmod. They tend to simplify what it does. Worked for me. Or possibly someone with a little more knowledge of the command might come along. That worked. In ARD > UNIX I put : sudo chmod -R 777 /Volumes/Scratch having set the user to 'root' That has set everything to read/write across the board which is what I want.
HodgeHi Posted July 2, 2010 Posted July 2, 2010 Then I'm glad i could help Well done by the way. This is the exact same way I learnt. Using guides and the help of this site makes me what I am today. Along with the trials and errors. You're on the right track me thinks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now