+ Post New Thread
Results 1 to 7 of 7
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 ...
  1. #1
    theeldergeek
    Guest

    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

  2. #2

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,190
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56
    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:

    Code:
    Erase a volume
    
    diskutil eraseVolume HFS+ UntitledHFS /Volumes/SomeDisk

  3. Thanks to HodgeHi from:


  4. #3
    theeldergeek
    Guest
    Quote Originally Posted by HodgeHi View Post
    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
    Last edited by theeldergeek; 2nd July 2010 at 02:05 PM.

  5. #4
    theeldergeek
    Guest
    Quote Originally Posted by theeldergeek View Post
    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.
    Last edited by theeldergeek; 2nd July 2010 at 02:50 PM.

  6. #5

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,190
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56
    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.

  7. Thanks to HodgeHi from:


  8. #6
    theeldergeek
    Guest
    Quote Originally Posted by HodgeHi View Post
    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.

  9. #7

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,190
    Thank Post
    299
    Thanked 215 Times in 185 Posts
    Rep Power
    56
    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

SHARE:
+ Post New Thread

Similar Threads

  1. Remotely Stop Services
    By enjay in forum Windows
    Replies: 16
    Last Post: 4th April 2010, 10:10 PM
  2. Remotely deploy .dmg - possible?
    By theeldergeek in forum Mac
    Replies: 3
    Last Post: 23rd March 2010, 10:37 AM
  3. 'Low disk space' Backup Exec D2D after erasing stuff
    By localzuk in forum How do you do....it?
    Replies: 0
    Last Post: 10th December 2009, 09:08 AM
  4. Shutting Down computers remotely
    By marvin in forum Windows
    Replies: 27
    Last Post: 23rd February 2009, 10:01 AM
  5. GPMC- running it remotely
    By Hedghog in forum Windows
    Replies: 7
    Last Post: 24th June 2008, 03:18 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •