Difference between revisions of "Hard drive wiping checklist"

From FreekiWiki
Jump to navigation Jump to search
m (new doc, in progress)
 
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
=Macintosh Hard drive Wiping procedure=
 
=Macintosh Hard drive Wiping procedure=
Mac hard drives are wiped from CD while still inside the system.  This is because Mac's take forever to disassemble. Please follow the steps below to wipe a hard drive. If you come across problems, such as ''the system won't boot from CD'', you can refer to [[Mac Build Tips 'n Tricks]] for troubleshooting.
+
Some Mac models are very time consuming and difficult to disassemble, full of fussy, breakable parts. In certain cases it is best to wipe the system's hard drive in the unit. In this case, most drives are currently wiped in OSX, further development for Linux live environment boot options are needed.
  
 +
Remember wiping the hard drive will take some time to complete, so you'll want to make sure you have the computer on the testing shelf or in a location you can leave it for a bit. Be sure to let your instructor know the status of the system before the end of the shift.
 +
 +
Please follow the steps below to wipe a hard drive.  If you come across problems, such as ''the system won't boot from CD'', you can refer to [[MacBuild Tips 'n Tricks]] for troubleshooting.
 +
==OSX Netboot==
 
{| fontname="Helvetica" fontsize="12" border="1"  
 
{| fontname="Helvetica" fontsize="12" border="1"  
 
|-
 
|-
|width="40%" align="center"|Steps
+
|width="20%" align="center"|Steps
|width="53%" align="center"|Notes/Detailed Instructions
+
|width="80%" align="center"|Notes/Detailed Instructions
|width="7%"  align="center"|Done
 
 
|-
 
|-
| Turn computer on||
+
| Boot from network||
 +
Hold down the "'''Option'''" key while turning the computer on (Note: using option key rather than "''n''" prevents the builder from accidentally ending up at a login or desktop screen in more cases). Release the key when you see the boot preferences screen. Select the Globe and --> to boot to OSX.
 
||
 
||
 
|-
 
|-
| Insert Ubuntu 8.04 Alternative Install CD then turn off computer||
+
| Use '''Disk Utility'''||
 +
Select '''Disk Utility''' from the bottom tray. Select the system hard drive, and click on the '''Erase''' tab. Select '''Security Options''' and select the 7 Pass erase, and OK. Click the '''Erase''' button.
 
||
 
||
 +
|}
 +
 +
==OSX via External Hard Drive==
 +
{| fontname="Helvetica" fontsize="12" border="1"
 +
|-
 +
|width="20%" align="center"|
 +
|width="80%" align="center"|
 +
|-
 +
| Boot from external drive ||
 +
Connect the computer to an external hard drive with the Mac OSX image installed. Power the drive on. Turn on the computer and hold down the '''Option''' key. Select the external drive from the boot options menu and continue. Follow the '''Disk Utility''' Steps from above to wipe the drive.
 +
|}
 +
 +
==Netboot in Target Disk Mode==
 +
{| fontname="Helvetica" fontsize="12" border="1"
 +
|-
 +
|width="20%" align="center"|Steps
 +
|width+"80%" align="center"|Notes/Detailed Instructions
 
|-
 
|-
| Boot from CD||
+
| Boot in Target Disk Mode||
Hold down the "'''c'''" key while turning the computer on. Release the key when boot menu appears and type "'''rescue'''"
+
Hook Mac to power and to a PC via firewire.  Attach a keyboard to the Mac and power it on, holding the '''"T"''' key for at least 20 seconds to ensure that it boots into Target Disk Mode instead of an OS. Release the key when you are sure the computer is booting correctly.
 
||
 
||
 
|-
 
|-
| Go through the prompts given and chose the appropriate options||
+
| Boot to Network||
The options you should select are '''''English''''', '''''United States''''', '''''NO''''', '''''USA''''', and '''''USA'''''.
+
Power up the PC and immediately hold down '''F12''' (or whichever key selects Booting from the Network), release the key when the PC shows it is booting from the network.
 
||
 
||
 
|-
 
|-
| Execute shell ||
+
| Start Badblocks||
Use the tab key to "'''go back'''" two screens to a menu of options. Use the arrow key to highlight "'''Execute shell'''" and press enter.  
+
When prompted, on the PC select '''Hardware Testing''', then '''Disk Testing'''.  The PC will verify the HDD specs and you should hit enter to confirm them.  Once the hardware has been verified, badblocks will start and takes a very long time to complete.  When it has finished, the PC will display the results of the tests.  If the HDD wipe succeeded, press enter on the PC and disconnect the Mac.  If the HDD wipe failed, press enter on the PC, disconnect the Mac, and proceed to remove the HDD from the machine.
||  
+
||
 +
|}
 +
 
 +
==Ubuntu via Terminal==
 +
{| fontname="Helvetica" fontsize="12" border="1"
 
|-
 
|-
| Run badblocks ||
+
|width="20%" align="center"|
At the prompt type "'''badblocks -wvvf -c3 /dev/hda'''" and hit enter.  
+
|width="80%" align="center"|
||
+
|-
 +
| badblocks ||
 +
Use a live disk to boot to Ubuntu. Open '''Terminal''' and type 
 +
$ sudo badblocks -wvvf /dev/sda -c 1024
 +
and hit enter. If that command fails as your instructor to help you determine the device name.  
 +
|}
 +
 
 +
==OSX via Terminal==
 +
{| fontname="Helvetica" fontsize="12" border="1"
 
|-
 
|-
| ||
+
|width="20%" align="center"|
||
+
|width="80%" align="center"|
 
|-
 
|-
||
+
| diskutil ||
 +
Boot to OSX using any of the methods above (test and see if recovery mode Command+R works as well). Open '''Terminal''' and type
 +
$ diskutil secureErase 2 /dev/sda
 
|}
 
|}
 +
 +
==Documentation Needed==
 +
*Live boot CDs for both OSX and especially PPC Ubuntu
 +
*OSX 10.6 Flash Drive options
 +
*Can one run diskutil from OSX recovery mode? If so, no peripherals would be needed
 +
 +
 +
;About OSX secure erase:
 +
http://support.apple.com/kb/HT3680
 +
 +
[[Category:Macintosh Archive]]

Latest revision as of 17:40, 5 November 2013

Macintosh Hard drive Wiping procedure

Some Mac models are very time consuming and difficult to disassemble, full of fussy, breakable parts. In certain cases it is best to wipe the system's hard drive in the unit. In this case, most drives are currently wiped in OSX, further development for Linux live environment boot options are needed.

Remember wiping the hard drive will take some time to complete, so you'll want to make sure you have the computer on the testing shelf or in a location you can leave it for a bit. Be sure to let your instructor know the status of the system before the end of the shift.

Please follow the steps below to wipe a hard drive. If you come across problems, such as the system won't boot from CD, you can refer to MacBuild Tips 'n Tricks for troubleshooting.

OSX Netboot

Steps Notes/Detailed Instructions
Boot from network

Hold down the "Option" key while turning the computer on (Note: using option key rather than "n" prevents the builder from accidentally ending up at a login or desktop screen in more cases). Release the key when you see the boot preferences screen. Select the Globe and --> to boot to OSX.

Use Disk Utility

Select Disk Utility from the bottom tray. Select the system hard drive, and click on the Erase tab. Select Security Options and select the 7 Pass erase, and OK. Click the Erase button.

OSX via External Hard Drive

Boot from external drive

Connect the computer to an external hard drive with the Mac OSX image installed. Power the drive on. Turn on the computer and hold down the Option key. Select the external drive from the boot options menu and continue. Follow the Disk Utility Steps from above to wipe the drive.

Netboot in Target Disk Mode

Steps Notes/Detailed Instructions
Boot in Target Disk Mode

Hook Mac to power and to a PC via firewire. Attach a keyboard to the Mac and power it on, holding the "T" key for at least 20 seconds to ensure that it boots into Target Disk Mode instead of an OS. Release the key when you are sure the computer is booting correctly.

Boot to Network

Power up the PC and immediately hold down F12 (or whichever key selects Booting from the Network), release the key when the PC shows it is booting from the network.

Start Badblocks

When prompted, on the PC select Hardware Testing, then Disk Testing. The PC will verify the HDD specs and you should hit enter to confirm them. Once the hardware has been verified, badblocks will start and takes a very long time to complete. When it has finished, the PC will display the results of the tests. If the HDD wipe succeeded, press enter on the PC and disconnect the Mac. If the HDD wipe failed, press enter on the PC, disconnect the Mac, and proceed to remove the HDD from the machine.

Ubuntu via Terminal

badblocks

Use a live disk to boot to Ubuntu. Open Terminal and type

$ sudo badblocks -wvvf /dev/sda -c 1024

and hit enter. If that command fails as your instructor to help you determine the device name.

OSX via Terminal

diskutil

Boot to OSX using any of the methods above (test and see if recovery mode Command+R works as well). Open Terminal and type

$ diskutil secureErase 2 /dev/sda

Documentation Needed

  • Live boot CDs for both OSX and especially PPC Ubuntu
  • OSX 10.6 Flash Drive options
  • Can one run diskutil from OSX recovery mode? If so, no peripherals would be needed


About OSX secure erase

http://support.apple.com/kb/HT3680