Erasing and Formatting Disks

There are many times when you want to “start over” with a drive, such as when you are upgrading your Mac OS X installation and would rather start from scratch, or when you want to make sure that all of your data is removed from a FireWire drive. Erasing a disk with the Disk Utility is very simple, almost too simple considering the fact that all the data on the disk will be obliterated.

The Erase tab of Disk Utility, shown in Figure 9-7, lets you erase and format a disk with the following options:

Erasing a disk using Disk Utility

Figure 9-7. Erasing a disk using Disk Utility

Volume Format

The Volume Format pull-down list lets you select the filesystem you want to place on the device. For most purposes, you’ll want to use Mac OS Extended (Journaled).

Name

Lets you name the volume that will be created on the disk.

Install Mac OS 9 Disk Driver

Installs the necessary drivers for using the disk with a Mac OS 9 system.

There are additional options hiding behind the Security Options button, shown in Figure 9-8. When you write data to a disk, there is still a faint magnetic remnant of the original data on the drive. Very sophisticated equipment can detect these magnetic traces and re-create data that was once on the drive but erased. Each time data is written to a spot on a disk, the traces from previous data at that spot get covered up and fade. Using the 7-Pass or 35-Pass Erase options, you can be sure (or really, really sure in the case of the 35-Pass) that no data whatsoever is left on the drive.

Secure erase options in Disk Utility

Figure 9-8. Secure erase options in Disk Utility

To use the diskutil command to erase a disk, use one of the following commands:

    diskutil eraseDisk [format] newName [diskid | mountpoint]
    diskutil zeroDisk [diskid | mountpoint]
    diskutil randomDisk [numberOfPasses] [diskid | mountpoint]

For example, to format an external FireWire disk that had the device ID of disk1, use the following:

    $ diskutil eraseDisk "Journaled HFS+" Backup disk1

To write zeros across the entire filesystem of a FireWire disk named Backup, use the following:

    $ diskutil zeroDisk /Volumes/Backup

Tip

One thing to keep in mind when either zeroing or performing the 7- or 35-Pass Erase of a disk is that they take quite a while to run, especially on large disks. After issuing the command, you might want to go off and refinance your house; the commands might be done by the time you get back.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.136.142