Difference between revisions of "Hard drive wiping checklist"

From FreekiWiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This page is outdated. It should be edited soon.
+
=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.
  
=Macintosh Hard drive Wiping procedure=
+
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.  
Mac hard drives are wiped while still inside the system.  This is because Macs take forever to disassemble. Currently Mac hard drives are wiped using the tools available during the network installation. Details are contained in the MacBuild checklists. If you should need to wipe a hard drive using a CD rather than the network you can use the instructions detailed below.
 
  
 
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.
 
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"
 +
|-
 +
|width="20%" align="center"|Steps
 +
|width="80%" align="center"|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==
 
{| fontname="Helvetica" fontsize="12" border="1"  
 
{| fontname="Helvetica" fontsize="12" border="1"  
 
|-
 
|-
|width="40%" align="center"|Steps
+
|width="20%" align="center"|
|width="53%" align="center"|Notes/Detailed Instructions
+
|width="80%" align="center"|
|width="7%"  align="center"|Done
 
 
|-
 
|-
| Connect keyboard, mouse, and network cable to the computer ||
+
| 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 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 from network||
+
| Boot to Network||
Hold down the "'''n'''" key while turning the computer on. Release the key when you see the flashing globe on the screenAt the first stage bootloader, press the "'''l'''" key to boot into Linux.  Press enter at the second stage bootloader to start the process.
+
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.   
 
||
 
||
 
|-
 
|-
| Go through the prompts given and chose the appropriate options||
+
| Start Badblocks||
The options you should select are '''''English''''', '''''United States''''', '''''NO''''', '''''USA''''', and '''''USA'''''.
+
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"
 +
|-
 +
|width="20%" align="center"|
 +
|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"
 
|-
 
|-
| Execute shell ||
+
|width="20%" align="center"|
Once the system asks you to confirm the hard driving partitioning scheme, 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.
+
|width="80%" align="center"|
||  
 
 
|-
 
|-
| Run badblocks ||
+
| diskutil ||
At the prompt type "'''badblocks -wvvf -c1024 -e1 /dev/hda'''" and hit enter. If that command fails, try "'''badblocks -wvvf -c1024 -e1 /dev/sda'''" instead.
+
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]]
+
[[Category:Macintosh Archive]]

Latest revision as of 18: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