Go Back   MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 8, 2013, 10:46 AM   #1
bmehilos
macrumors newbie
 
Join Date: Feb 2007
Location: Illinois
NetBoot Automatic Secure Erase

Server noob here. I work at a university where all machines that are going to be put in storage or recycled have to have their hard drives erased securely with a 3-pass erase. Automating this over a small LAN is easy for all of the PCs we have, as they have PXE, so getting DBAN on them from a server is a breeze.
Macs don't have this ability, and going around, booting from an install disk or volume, going into Terminal and wiping the drive on the hundreds of Macs we have is a bit more work than I feel it needs to be. I'd like to somehow get some Macs connected to a small LAN (server+switch, nothing crazy) and just immediately start wiping their drives. As far as I can tell OS X Server allows for Automator actions to be run post-install during imaging, but I'm wondering if there is a way to get a shell script Automator action to run right off the bat and start erasing the drives once they connect to the server.

Am I even looking in the right direction with OS X Server/Automator/etc, or are there other, easier ways to set something like this up with other tools I've overlooked?

Thanks in advance
__________________
End of line
bmehilos is online now   0 Reply With Quote
Old Jul 9, 2013, 12:19 PM   #2
aarond12
macrumors 6502a
 
aarond12's Avatar
 
Join Date: May 2002
Location: Dallas, TX USA
If you have Mac OS X Server running on a machine, you can create a NetBoot image. Once that's configured correctly on the server, restarting the Mac with the N key held down boots to that NetBoot image. You could put the erase process in the NetBoot image so it would automatically run.
__________________
Voted "Most likely to start his own cult" by my high school class.
aarond12 is offline   0 Reply With Quote
Old Jul 9, 2013, 01:16 PM   #3
stuckwithme247
macrumors regular
 
Join Date: Jan 2003
Quote:
Originally Posted by bmehilos View Post
Server noob here. I work at a university where all machines that are going to be put in storage or recycled have to have their hard drives erased securely with a 3-pass erase. Automating this over a small LAN is easy for all of the PCs we have, as they have PXE, so getting DBAN on them from a server is a breeze.
Macs don't have this ability, and going around, booting from an install disk or volume, going into Terminal and wiping the drive on the hundreds of Macs we have is a bit more work than I feel it needs to be. I'd like to somehow get some Macs connected to a small LAN (server+switch, nothing crazy) and just immediately start wiping their drives. As far as I can tell OS X Server allows for Automator actions to be run post-install during imaging, but I'm wondering if there is a way to get a shell script Automator action to run right off the bat and start erasing the drives once they connect to the server.

Am I even looking in the right direction with OS X Server/Automator/etc, or are there other, easier ways to set something like this up with other tools I've overlooked?

Thanks in advance
When you boot using NetBoot to do a NetRestore you simply go to the Utilities menu - > Disk Utility. From there you can choose whatever secure erase option you would normally be able to choose.

The other way would be to use the built-in scripting options of NetRestore (see attached pic).

You will probably want to first take a Mac and install all the extra common software that you will want to have on the image, then with the System Image Utility create a NetRestore image from that Mac.
Attached Thumbnails
Click image for larger version

Name:	netrestore.jpg
Views:	76
Size:	305.5 KB
ID:	422312  
stuckwithme247 is offline   0 Reply With Quote
Old Nov 6, 2013, 04:29 PM   #4
bmehilos
Thread Starter
macrumors newbie
 
Join Date: Feb 2007
Location: Illinois
In the interest of posterity, so if someone happens across this thread via Google, they know the solution I found.

Write the terminal commands for "diskutil" to do a three pass erase (I forget the arguments, but diskutil is an easy command to learn) as a script. Add script to start up items for the main user of a NetBoot image. Set autologin. The moment the NetBoot image loads and you login, the drive will begin to erase (since your "startup disk" is actually on the network, you won't get any guff from OS X).
__________________
End of line
bmehilos is online now   1 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > OS X > Mac OS X Server, Xserve, and Networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Disk Utility secure erase "7 pass secure erase" Appletise OS X Mavericks (10.9) 12 May 7, 2014 03:54 PM
Weird and Wonderful Tiger Netboot Imager Makes Panther Netboot!?! AmestrisXServe Mac OS X Server, Xserve, and Networking 0 Feb 14, 2014 05:37 AM
Secure erase Tech198 OS X 10.8 Mountain Lion 1 Jan 15, 2013 10:33 PM
Can't perform a secure erase CrimsonStrider OS X 10.8 Mountain Lion 7 Nov 20, 2012 11:31 AM
Secure Erase Before Selling AppleJaxKid MacBook 2 Jun 13, 2012 12:02 PM

Forum Jump

All times are GMT -5. The time now is 01:09 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC