Diskutil Mac Manual

I am using Mac OS X 10.6.4 and am struggling with the command: diskutil Whenever I type in diskutil the terminal says:-bash: diskutil: command not found Does anyone know what the problem might be? Can I install the diskutil script (probably by copying some.sh to.

Disk utilities - Format, Verify, Repair (local disks.) This includes options not available in the Disk utility GUI.

FORMAT
The format parameter of erase and partitioning (and RAID creation) is the filesystems name. You can determine this name by looking in /System/Library/Filesystems/<fs>.fs/Contents/Info.plistor by using the listFilesystems verb, which also lists shortcut aliases for common per- sonalities (these shortcuts are defined by diskutil for use with it only).
Some examples include: HFS+, HFS, JournaledHFS+, UFS, MS-DOS, etc.

Beginning with OS X El Capitan, system file permissions are automatically protected. Mac manual clean up windows 10. It's no longer necessary to verify or repair permissions with Disk Utility (source).

Diskutil replaces the disktool utility found in earlier versions of OS X. (disktool is now deprecated)
Examples
List all attached disks and partitions - device names and partition identifiers (equivalent to lsblk on unix):

$ diskutil list

Get the Volume UUID (disk must already be mounted)

$ diskutil info disk0s2

Get the Volume ID of an IPOD

$ diskutil list |grep 'IPOD' |grep -o '(disk[0-9s]*)'

Mount a disk using its Volume ID
$ diskutil mount Disk1

Mount a disk using its UUID
$ diskutil mount B172F107-06D4-39E3-9F7C-57466CD6489B

Erase a disk
$ diskutil eraseDisk UFS UntitledUFS disk3
$ diskutil eraseDisk JHFS+ Untitled disk3

Erase a volume
$ diskutil eraseVolume HFS+ UntitledHFS /Volumes/SomeDisk
Partition a disk

Important: you cannot create non-HFS partitions on a disk if you intend to boot macOS on it.
Use these partitioning commands on a second (or third) disk that you mount after booting.

Resize a volume and create a volume after it, using all remaining space
$ diskutil resizeVolume /Volumes/SomeDisk 50g MS-DOS DOS 0b
Resize a volume and leave all remaining space as unused
$ diskutil resizeVolume /Volumes/SomeDisk 12g
Convert a disk to Core Storage and encrypt it
$ diskutil coreStorage convert disk3s2 -passphrase
Shrink your Core Storage PV in order to make space for a Boot Camp volume
subtract desired Windows size from LV size, to be new LV size, i.e. 150g
$ diskutil coreStorage list
$ diskutil coreStorage resizeStack LVUUID PVUUID 150g ms-dos BOOTCAMP 0

Revert a disk from Core Storage back to plain HFS, possibly decrypting
$ diskutil coreStorage revert disk5
Remove a partition diskutil eraseVolume Free Space not disk0s4
Merge two partitions into a new partition
$ diskutil mergePartitions JHFS+ not disk1s3 disk1s5
Split a partition into three new ones:
$ diskutil splitPartition /Volumes/SomeDisk JHFS+ vol1 12g MS-DOS VOL2 8g JHFS+ vol3 0b

Create a RAID
$ diskutil createRAID mirror MirroredVolume JHFS+ disk disk2
Destroy a RAID
$ diskutil destroyRAID /Volumes/MirroredVolume
Repair a damaged RAID
$ diskutil repairMirror /Volumes/MirroredVolume disk3

Convert volume into RAID volume
$ diskutil enableRAID mirror /Volumes/ExistingVolume

Erase a partition and shrink to add an associated Recovery Partition
$ diskutil splitPartition disk8s2 JHFS+ MacHD R %Apple_Boot% %noformat% %recovery% https://omgest.netlify.app/mac-tools-et-910-manual.html.

Diskutil Mac Manual

“What you want, what you're hanging around in the world waiting for, is for something to occur to you” - Robert Frost

Related macOS commands:

asr - Apple Software Restore
authopen(1)
bless - Set volume bootability and startup disk options.
drutil - Interact with CD/DVD burners
Disk Utility (GUI) - The 'Info' button displays the disk identifier, UUID etc
diskarbitrationd(8)
hdid(8)
hdiutil - Manipulate iso disk images
hfs.util - HFS/HFS+ file system utility (Mount/unmount)
mount - Mount a file system
ntfs.util - NTFS file system utility
ufs.util - UFS file system utility (Mount/unmount)
SetFile(1) - Set extended attributes (Developer Tools)

Copyright © SS64.com 1999-2019
Some rights reserved

Related Articles

  • 1 Run Norton AntiVirus From the Command Prompt
  • 2 Rename Subfolders in Zip Files
  • 3 Reformat a MacBook
  • 4 Enable the Sudden Motion Sensor on a MacBook Pro

Mac OS X Mountain Lion gives users several ways to access the Terminal and three common options for formatting a hard drive. You can launch Terminal within Mac OS X to format hard drives currently not in use; you can also use Mac OS X Recovery to launch Terminal outside the operating system and format hard drives that can't be formatted while Mac OS X is active. Once you enter Terminal, you can choose to reformat a disk and keep the original settings, securely erase a disk to prevent data recovery or perform a standard format. All three options prepare your business computer for a new operating system installation by removing all of your company data.

Identify Hard Drive Disk Identifier

1.

Click the 'Go' menu and select 'Go To Folder..' from the drop-down menu.

2.

Type '/Applications/Utilities/Disk Utility/' and click 'Go.'

3.

Double-click the highlighted 'Disk Utility' icon to open Disk Utility.

4.

Select the hard disk you want to format and click the 'Info' button. Write down the name of the Disk Identifier.

Launching Terminal From Mac OS X

1.

Click the 'Go' menu and select 'Go To Folder..' from the drop-down menu.

2.

Type '/Applications/Utilities/Terminal/' and click 'Go.'

Mcculloch 380 power mac manual. This digital download includes four (4) different McCulloch Power Mac Illustrated Parts List (IPL), two McCulloch Service Manuals and One Owners Manual.

3.

Double-click the highlighted 'Terminal' icon to open Terminal.

Launching Terminal From OS X Recovery

1.

Shut down your computer by pressing and holding the 'Control-Command-Eject' keys simultaneously.

2.

Press and hold 'Command-R' while the computer reboots until the Apple logo appears.

3.

Select 'Utilities' and 'Terminal' to launch the command console and attempt to format troublesome hard drives that can't be formatted within Mac OS X.

Creating and Using a Terminal Format Command

Diskutil Mac Manual Software

1.

Click 'Go,' select 'Go to Folder..' and type '/Applications/TextEdit' into the text field. Click 'Go' and double-click 'TextEdit' to open the TextEdit application.

2.

Type 'diskutil eraseDisk JHFS+ diskname diskidentifier' into the TextEdit document.

3.

Edit the 'diskutil eraseDisk JHFS+ diskname diskidentifier' code in TextEdit.

4.

Change 'eraseDisk' to 'secureErase' if you want to securely erase the disk. Change 'JHFS+' to 'HFS+' if you want a volume that is not journaled. Change 'diskname' to the new name for the disk, or type '%noformat%' to leave the name blank. Replace 'diskidentifier' with the Disk Identifier name retrieved from Disk Utility. If you want to reformat, replace 'eraseDisk' with 'reformat' and delete the 'JHFS+' and 'diskname' parts of the command.

5.

Highlight the code and press 'Command-C' to copy the edited code to the clipboard.

6.

Click on the Terminal prompt and press 'Command-V' to paste the code. Press 'Enter.' Input your administrator credentials and confirm the action, if prompted.

Tip

  • When entering a new name for the disk, it's best to use a single word and don't use special characters.

Warning

  • Information in this article applies to Mac OS X Mountain Lion. It may vary slightly or significantly with other versions or products.

References (3)

About the Author

Avery Martin holds a Bachelor of Music in opera performance and a Bachelor of Arts in East Asian studies. As a professional writer, she has written for Education.com, Samsung and IBM. Martin contributed English translations for a collection of Japanese poems by Misuzu Kaneko. She has worked as an educator in Japan, and she runs a private voice studio out of her home. She writes about education, music and travel.

Photo Credits

  • Medioimages/Photodisc/Photodisc/Getty Images
Cite this Article
Choose Citation Style
Martin, Avery. 'How to Format an OS X Terminal Hard Disk.' Small Business - Chron.com, http://smallbusiness.chron.com/format-os-x-terminal-hard-disk-57815.html. Accessed 25 August 2019.

Diskutil Mac Terminal

Martin, Avery. (n.d.). How to Format an OS X Terminal Hard Disk. Small Business - Chron.com. Retrieved from http://smallbusiness.chron.com/format-os-x-terminal-hard-disk-57815.html

Diskutil Format

Martin, Avery. 'How to Format an OS X Terminal Hard Disk' accessed August 25, 2019. http://smallbusiness.chron.com/format-os-x-terminal-hard-disk-57815.html
Note: Depending on which text editor you're pasting into, you might have to add the italics to the site name.