Active5 years, 10 months ago

Diskutil(8) BSD System Manager's Manual diskutil(8) NAME diskutil- modify, verify and repair local disks SYNOPSIS diskutil quiet verb options DESCRIPTION diskutil manipulates the structure of local disks. It provides informa- tion about, and allows the administration of, the partitioning schemes, layouts, and formats of disks. Disk Utility in Mac OS X 10.4 (Tiger) will not let the user choose third party file systems such as Tuxera NTFS for Mac when creating and formatting volumes, but in Mac OS X 10.5 (Leopard) this has been fixed. The command line utility diskutil (a command line version of Disk Utility) works with Tuxera NTFS for Mac in 10.4 and above.

I am using Mac OS X 10.6.4 and am struggling with the command:

Whenever I type in diskutil the terminal says:

Does anyone know what the problem might be? Can I install the diskutil script (probably by copying some *.sh to some destination and adding something to the bash.profile)?

Andrea
1,4363 gold badges14 silver badges16 bronze badges
MaccaiusMaccaius

3 Answers

diskutil is a system administrator command. That's why it's not in the default search path for ordinary users.

The usual way to run it is to run sudo diskutil. The sudo command runs a command as the system administrator (root). sudo searches for the command in a different search path (it sets the PATH environment variable to a diffent value before searching for the command name), which includes /usr/sbin where system administrator commands such as diskutil reside.

If you do want to run diskutil as your ordinary user, specify the full path: /usr/sbin/diskutil.

GillesDownloadGilles
54.9k15 gold badges119 silver badges167 bronze badges
Gaff

Diskutil Mac Terminal

16.3k11 gold badges50 silver badges65 bronze badges
MaccaiusMaccaius

Check your PATH (echo $PATH). diskutil is in /usr/sbin. Add it to your path if it isn't already there. If it is, then yes, diskutil is missing. (/usr/sbin/diskutil is an executable itself, not a shell script.)

JRobertJRobert

Mac Manual Download

Not the answer you're looking for? Browse other questions tagged macosbashterminaldisk-utility or ask your own question.