Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Disk Commands

The tools listed in this section perform operations on disks, file systems, partition tables, and disk images.

Table A-4  Commonly-used disk-related and partition-related tools

Tool

Description

diskutil

Mounts and unmounts volumes and disks, checks disks for consistency, erases optical disks, wipes disks with a security wipe, partitions disks, manipulates RAID sets, and so on.

This utility is the command-line counterpart to the Disk Utility application.

fsck, fsck_msdos, fsck_hfs

Checks a file system for consistency.

hdiutil

Creates and manipulates disk images, including attaching disk images for mounting.

mount and umount

(Also mount_afp, mount_autofs, mount_cd9660, mount_cddafs, mount_fdesc, mount_ftp, mount_hfs, mount_msdos, mount_nfs, mount_ntfs, mount_smbfs, mount_udf, mount_union, mount_url, mount_volfs, and mount_webdav)

Mounts and unmounts volumes.

If you unmount automounted volumes behind the back of the disk arbitrartion system, you can cause strange behavior in the GUI. Use these commands with care, and if you are trying to unmount an automounted volume, use hdiutil or diskutil instead.



< Previous PageNext Page > Hide TOC


Last updated: 2008-04-08




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice