Questions tagged [diskutil]

diskutil is a command line tool for modifying, verify and repairing disks.

Filter by
Sorted by
Tagged with
67
votes
6answers
96k views

How do I get detailed SMART disk information on OS X (Mavericks or later)

I'm trying to get a detailed SMART status report on the drives in my Mac. I'm not talking about "Verified," I'm talking about the detailed report that's about 100 lines long listing all the vital ...
29
votes
7answers
51k views

External drive does not mount after plug off without eject

I accidentally unplugged my hard drive without properly ejecting it, and now the drive does not mount when plugged in. What can I do to make it work again? I can see the disk in lsusb and diskutil ...
14
votes
3answers
94k views

How can I delete a partition (coreStorage logical volume?) from the Terminal?

I finally understood why Disk Utility will not change the partitions on my HDD, even though I added the most recent one myself (maybe significant: to test Yosemite DP) with it. Now I see it says it ...
8
votes
2answers
12k views

How to fix Mac hard drive partition showing as Fdsik_partition_scheme

My situation seems very similar to how to fix GUID hard drive corrupted to MBR but with enough differences that I haven't been able to put together a confident solution. I have a 3TB Toshiba drive in ...
8
votes
1answer
3k views

macOS partition startup Volume type FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF

I have encountered a nearly identical issue to the one in this question (and this too: Data Not Backed Up, Partition Type: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF), but my hard drive's main partition is ...
7
votes
2answers
17k views

Difference between “diskutil unmount” and “diskutil unmountDisk”?

Sometimes when I try to unmount a disk using the "diskutil" command I get the following message: $ diskutil unmount /dev/disk1 disk1 was already unmounted or it has a partitioning scheme so use "...
6
votes
0answers
9k views

Is there a way to clean up possibly invalid disks that only show up on Mac OS Recovery through ‘diskutil list’ in Terminal? Does Recovery use them?

Hopefully that question is clear enough, and hopefully this is just me being silly. When I boot into the Recovery Partition, go into Terminal, and run 'diskutil list', I get quite a few tiny and ...
5
votes
1answer
655 views

Why won't an fsck-declared-good volume mount?

I have a CoreStorage logical (virtual), encrypted volume that will not mount, even though fsck_hfs declares it clean. Does anyone know what the deal is here? Here is the drive information: /dev/...
5
votes
0answers
83 views

How to allow an internal disk to sleep on 10.13

I have an internal disk which is noisy and seldom used. With previous versions of OSX I was able to spin it down by using diskutil eject, but with the latest High Sierra 10.13.4, after a few seconds ...
4
votes
2answers
3k views

How can I create a bootable drive for ArchLInux on macOS?

I'm trying to figure out how to do the equivalent of these instructions for creating an archlinux bootable drive on a Mac. (I'm using a Micro SD to USB adapter.) I found these instructions on ...
4
votes
3answers
2k views

Reclaim lost space from Bootcamp Partition

First off, sorry I didn't understand you had to use apples bootcamp software to deal with bootcamp partitions. I wanted to stop using bootcamp, so I deleted the partition through disk manager some ...
4
votes
4answers
16k views

Couldn't open device

I can not partition nor use a removable USB disk without file system. I obtained the following informations: sh-3.2# diskutil info disk2 Device Identifier: disk2 Device Node: ...
4
votes
0answers
1k views

Unable to find an APFS Container Reference after fixing FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF error

After following this guide and giving my partition the proper GUID, i can't access it. Is there a way to recover the container reference its supposed to have or at least a way for me to extract data ...
3
votes
1answer
9k views

How to reclaim free space partition on macOS High Sierra?

I was trying to expand my main drive by deleting a third partition I used to have after deleting and formatting with free space: sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk0s2 I ...
3
votes
1answer
142 views

Can´t mount encrypted external hdd after encryption was interrupted

After I plug the disk it requests the password, I enter it and then it says it is not readable by my computer. Then with Terminal I ask diskutil cs list and displays that info about the volume (see ...
3
votes
2answers
177 views

How do I rename the Boot Camp partition?

The partition is currently called BOOTCAMP, and I would like it to be called Windows. When I try to rename the partition is Disk Utility, no error is displayed, but the change is not persisted (i.e. ...
3
votes
4answers
19k views

EFI system partition repair

I'm having a problem with the internal SSD on one of my Macs running 10.10. It was working fine when I was browsing the web one day and then suddenly froze with the spinning beachball; I couldn't ...
3
votes
2answers
514 views

Is it possible to recover a formatted macOS partition

Backstory: After I went to the Apple Store today, the drive in my Mac was wiped by an employee as I was supposed to have it replaced. The replacement unit had an issue though, so they gave me my old ...
3
votes
1answer
158 views

How to parse output from diskutil activity in bash script

I want to be able to run a bash script over each line output from diskutil activity", I haven't been able to figure out how to do this though. I thought maybe I could simply: diskutil activity | ...
3
votes
1answer
15k views

Creating a partition in unallocated space

I left some unallocated space on my external HD (around 200 GB) and now I would like to create a partition on it using gpt in terminal since the Disk Utility tool on El Capitan is not even showing the ...
3
votes
2answers
18k views

How can I create a bootable USB drive for Ubuntu from OS X?

I've decided to switch from OS X to Ubuntu. I'm following the documentation on Ubuntu's site for creating a bootable USD Drive. I converted the ISO to IMG. I ran diskutil list. I inserted my flash ...
3
votes
1answer
3k views

diskutil fails to fix Fusion Drive

My iMac suddenly stopped booting, failing to mount the disk at boot. Running diskutil repair fails with this error: bash-3.2# diskutil repairVolume disk3 Started file system repair on disk3 ...
2
votes
1answer
29 views

I accidentally caused one of my encrypted drives to start converting into a decrypted drive. How can I stop it?

One of my external hard drives used for Time Machine backups has an encrypted HFS+ volume. While in the process of trying to re-associate the backup with my system, I accidentally told it to start ...
2
votes
1answer
822 views

diskutil info disk0 shows --> Volume Name: Not applicable (no file system)

When i use below command in mac terminal diskutil info disk0 I get: Device Identifier: disk0 Device Node: /dev/disk0 Whole: Yes Part of Whole: ...
2
votes
1answer
235 views

Tried to fix filesystem type: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF and probably made it worse

I have a MacBook Air 11 inch which I recently tried to install Linux on with a swap partition and a root partition. In my stupidity I used the “disks” program under “try ubuntu now” to delete the ...
2
votes
1answer
6k views

Removing EFI partition from external Disk?

A few months ago I decided to format an external HD that I wish to use with my Mac mini, but I can not use 100% of it. In the formatting process, a partition called EFI appeared. When I open the Disk ...
2
votes
2answers
963 views

Strange virtual disk. Delete or leave?

I have two virtual disks: Main macOS disk Bootcamp windows disk When I use diskutil listin command line, it shows me: So what the /dev/disk1 is? Should I delete it? And what is EFI EFI disk0s1 is? ...
2
votes
1answer
806 views

Find specific attached disk, not volume, by Applescript

I have a script I use to format any inserted SD card, copy data from specific folders to it, then eject. Each format/copy is triggered manually, as part of a batch process involving maybe a hundred ...
2
votes
1answer
10k views

Create a partition on SD card for ext4 filesystem

I've got an SD card and want to create a partition on it for the ext4 fs. The partition must start after 1MB. This 1MB will be used for a bootloader (u-boot). I'm doing this on OS X Yosemite. Here's ...
2
votes
1answer
320 views

After deleting Bootcamp .. I failed to merge free disk space using Disk Utility

After deleting Bootcamp partition I cannot merge it back to Macintosh HD partition nor even using it to install windows again. Using Disk Utility this is what happens: I tried to login to MacOS ...
2
votes
1answer
66 views

100% full USB stick un-mountable after forced eject

During an rsync my USB stick became 100% full without me noticing it. When I tried to eject it, I got a message that it was in use, but no application was named and I could not see anything that was ...
2
votes
1answer
73 views

Help Unmouting disk if UUID is mounted until a Specific Time

Every morning I have the same routine. I come into work and plug in my peripherals including my Time Machine Backup. I have my Time Machine scheduled to only run one daily backup at 3:30pm. I ...
2
votes
2answers
10k views

diskutil verifyVolume / : POSIX reports: Exec format error

I'm having problems with my main system OSX volume. When running sudo diskutil verifyVolume / : $ sudo diskutil verifyVolume / Password: Started file system verification on disk1 OSX Verifying ...
2
votes
1answer
9k views

How to mount Core Storage volume under Linux (or force conversion on unrevertible volume)?

I tried to mount HFS+ partition in Linux today, but I had problem with hfsplus: unable to find HFS+ superblock I've found later that this partition is in fact Core Storage container for the logical ...
2
votes
0answers
42 views

Difference between “diskutil mount” and “sudo mount”

I was looking for a way to mount the EFI partition on macOS when I realized there was actually two commands to mount a partition: mount and diskutil mount. What is the difference between them? I ...
2
votes
1answer
420 views

How many APPLE_APFS partitions is a disk allowed to have?

I am using macOS High Sierra Version 10.13.2. The following two examples indicate that a disk is only allowed one APPLE_APFS partition. The output below from a Terminal application window shows that ...
2
votes
0answers
111 views

Salvage data from fusion drive

I have a 2015 iMac 27 inch that had a fusion drive. I recently replaced the fusion drive with a SSD drive. It seems that my iMac had two storages. One is an 128GB SSD drive connected via PCI and a ...
2
votes
0answers
99 views

Recover deleted encrypted boot drive, need all data back

Is there a way for me to recover all of my data from an encrypted SSD? MacOS Sierra, MBP early 2013, 16 GB RAM, 768 GB SSD, 2.8 GHz. My computer went black screen due to another problem with my ...
2
votes
0answers
370 views

How do I recover from Disk Utility hang without system restart?

I have external CDROM connected to MBP and I wanted to read one data CD. The media was in bad shape (scratched) so macOS could not read anything. I wanted to eject the disk and try another media, just ...
2
votes
1answer
1k views

Cannot reformat external drive with no file system

This whole mess started with trying to encrypt Time Machine backups. I have a 4TB Lacie P9230 external drive which has been working for about a year just fine. The drive has been partitioned into two ...
2
votes
1answer
1k views

Disk image of OS + Recovery partition?

I'm working with multiple OS X versions frequently and I'd like to have an image which contains a particular OS version's system partition and its recovery partition. Is this possible? (the disk where ...
2
votes
0answers
609 views

UDF support removed from El Capitan?

In previous versions of OS X, I used the UDF format extensively. I recently had to upgrade to El Capitan, and now none of my UDF drives are readable (Finder prompts me to intialize the disk). Since ...
2
votes
2answers
3k views

Hard Drive Formatting Error in Terminal

I have tried formatting and partitioning this brand new hard drive and it has failed on multiple computers using multiple methods. It is a LaCie Porsche Design 4TB hard drive. Here is the commands I ...
1
vote
2answers
11k views

Disk Utility on Mavericks fails because “disk is too small”

I'm on mavericks and I am trying to delete a partition of an external hard drive. This is its schema Partition1: 50GB "MavericksBackup": Bootable backup Partition2: 187GB "Home Data": Absolutely ...
1
vote
3answers
5k views

Recover corrupted Mac HFS+ drive (image) under Linux

I'm trying to recover an apparently corrupted disk. It appears that through improper shutdown the drive has been somehow killed. It's the main partition of a Macbook Pro. I've used dd to copy the ...
1
vote
1answer
468 views

How to resize Apple partition?

How to resize for Linux? /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *250.1 GB disk0 1: ...
1
vote
1answer
164 views

What are disks “MadRiver5M993.iPhone”, “ Bittersweet6M149.iPh…” as shown by “diskutil list”

When I type diskutil list, I see disks I don't recognise: /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme ...
1
vote
2answers
1k views

How do I create an encrypted APFS volume from the command-line?

I'm trying to automate creating an encrypted APFS image with files in it. What I have so far: >>> hdiutil create -megabytes 1 -layout GPTSPUD -fs apfs -volname encryption encryption.dmg ...
1
vote
1answer
36 views

Why do I have an extra hard drive? [closed]

When I go to "About this Mac" it shows I have 1 500GB hard drive, but when I use diskutil list it shows I have 2 500GB. Can someone explain this please? My USB drive says its encrypted in diskutil ...
1
vote
1answer
389 views

How to recover trashed GUID partition table?

I did something stupid. I ran (something like) diskutil partitionDisk /dev/disk2 GPT HFS+ newdisk against the wrong disk. It was one of those moments where you realize what you've done, as you're ...