Mac Thread, Erasing volume remotely in Technical; Using ARD3, is there a way to remotely erase a Volume on an iMac?
All my machines are partitioned; obviously ...
2nd July 2010, 01:01 PM #1
Erasing volume remotely
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
IDG Tech News
2nd July 2010, 02:39 PM #2
I think DiskUtil would be the command you need.
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
2nd July 2010, 03:03 PM #3
Last edited by theeldergeek; 2nd July 2010 at 03:05 PM.
2nd July 2010, 03:33 PM #4
... 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 ?
Originally Posted by theeldergeek
I was thinking chmod 777 but as I am unsure, I don't want to try it until I get further advice.
Last edited by theeldergeek; 2nd July 2010 at 03:50 PM.
2nd July 2010, 04:03 PM #5
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.
2nd July 2010, 04:24 PM #6
That worked. In ARD > UNIX I put :
Originally Posted by HodgeHi
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.
2nd July 2010, 06:03 PM #7
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
By enjay in forum Windows
Last Post: 4th April 2010, 11:10 PM
By theeldergeek in forum Mac
Last Post: 23rd March 2010, 11:37 AM
By localzuk in forum How do you do....it?
Last Post: 10th December 2009, 10:08 AM
By marvin in forum Windows
Last Post: 23rd February 2009, 11:01 AM
By Hedghog in forum Windows
Last Post: 24th June 2008, 04:18 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)