Questions tagged [diskutil]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
31 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 ...
1
vote
1answer
25 views

External disk does not show in “diskutil list” after premature eject, what can I do?

This question is related to External drive does not mount after plug off without eject, but the difference is that in my case, the drive did not appear in the Disk Utility application nor in diskutil ...
0
votes
0answers
22 views

SSD 860 evo slow format/write/read

MacBook Pro 13 early 2011 Coming from a 850 evo Booting from High Sierra USB Installed 860 but disk info and gpt show take a couple of minute to complete. Had problem with sata cable but now my 850 ...
0
votes
1answer
52 views

Mac SSD Partition Type Incorrect

I have been using an external SSD as my primary drive on my iMac for over a year. I'm not sure if it got unplugged or nudged while powered up but it now doesn't work. I can mount the drive but I get ...
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 ...
0
votes
1answer
76 views

Asign unallocated free space on external volume to (new) partition OSX

I formated a external USB drive to mount with 10 different volumes. (Actually I forgot how i made this work) The drive will not show as being partitioned in drive utility in OSX but show all volumes(...
0
votes
0answers
33 views

How to repair damaged SD card on macOS?

I inserted a 32GB micro-sd card into an HP F320 (car camera) and the card is damaged because F320 only supports capacities up to 16GB. This card cannot be read on F320 and cannot be successfully ...
3
votes
2answers
184 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. ...
2
votes
1answer
240 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 ...
0
votes
1answer
18 views

Unable to restore the lot space to Container disk0s2

Here you can see 251.0 GB is disk0 and 169.0 GB is disk0s3. I had erased and deleted disk0s2. Now I want to use all the capacity left in disk0 to disk0s2. Kindly help.
0
votes
0answers
69 views

Completely clear/delete/erase/wipe/destroy a USB drive using the gpt command line utility?

I want to completely delete all GPT (meta)data off an USB drive, so I can create a fresh new GPT. So I do: sudo gpt destroy disk3 No errors, seems OK. However if I do: sudo gpt -r show disk3 I get:...
1
vote
3answers
2k views

Can’t increase partition size of cloned volume in Mac OS X 10.11 (El Capitan)

I have a MacBook with a 120 GB SSD. I bought a new one with 240 GB. I cloned the content from the old one over with an ICY BOX cloning device. I inserted new SSD in the MacBook and everything is fine ...
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 ...
0
votes
1answer
42 views

2012 Macbook Pro second SSD

I have a 2012 MacBook Pro with a 500GB Samsung SSD running Mojave. I replaced the optical drive with a hard drive and everything worked fine. Recently, I replaced the old hard drive in the optical ...
1
vote
0answers
23 views

Is it possible to cancel the revert core storage operation?

Something is off here. I issued diskutil cs revert /dev/disk6 and in the second, my macmini's USB controller stopped working and hard ejected (like pulling their plugs) all other attached USB devices....
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 ...
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 ...
0
votes
2answers
1k views

Resize APFS Container

I've just been able to reassign the correct format to my SSD to APFS, see this question. however I notice that my Container isn't set to the proper size. I assume this is because the drive previously ...
1
vote
1answer
113 views

Reinstalling MacOSX on MacBook from scratch (deleted Macintosh HD volume)

I had Bootcamp Windows on my MacBook Pro. When I wanted to resize the partition and reinstall windows, I opened Bootcamp app but couldn't do it for some reason that I don't remember. Therefore, I used ...
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: ...
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 ...
1
vote
1answer
390 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 ...
0
votes
1answer
700 views

Unable to remove Bootcamp partition from Mac OS X El Capitan

Yes, I know this question has been asked many, many times. I promise I have tried everything all of the solutions that I could find. I'm running OC X El Capitan on a MacBook Air. My latest attempt ...
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 ...
3
votes
2answers
515 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 ...
1
vote
1answer
410 views

Unable to Extend Macintosh HD partition to use Free Space

After a failed Linux installation I'm unable to extend my Macintosh HD logical volume to recover unused space. I'm on v10.12.6 of macOS Sierra. Trying to remove the "Free space" partition in Disk ...
0
votes
1answer
2k views

External HDs spontaneously unmount themselves, now one won't remount

I have a short stack of WD bus-powered external drives connected to my mid-2010 17" MBP through a 10-port powered hub. (According to specs, the hub supplies more than enough amperage to power all of ...
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 ...
1
vote
1answer
1k views

Unable to allocate the free space to main volume

I've been trying to allocate the left unallocated free space after uninstalling the ubuntu. As there are no options available in disk utility to do that now. The unshaded part is unallocated. I ...
0
votes
1answer
752 views

How to recover lost partition after diskutil erasevolume noformat

I previously had 2 partitions on my 1TB hard drive... - Partition 1 (disk0s4): Macintosh HD (which had OS-X and all my data) - Partition 2 (disk0s2): Apple HD (which was a back-up partition) I erased ...
0
votes
1answer
753 views

Mounted drive does not show up on Disk Utility, Desktop, Finder Sidebar

I've an external drive that consists of 2 partitions, one NTFS that I use for storing stuff and one Journaled that I use for TimeMachine. I've connected the drive to my Mac but now the NTFS partition ...
1
vote
1answer
579 views

Failed attempt to fix macOS partition startup volume set to FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF

I attempted to fix an issue I encountered yesterday my MacBook Pro (13-inch, Mid 2012) following instructions in the top answer of this thread. I'm afraid I may have inadvertently destroyed my data by ...
0
votes
1answer
804 views

Accidentally ran command to erase volume with “no format”, how can I get it back?

I accidentally ran this command and now I am missing 100gb of space, how can I get it back? All help appreciated!! diskutil eraseVolume free %noformat% disk0s2 Terminal gives this diskutil info: ...
2
votes
1answer
321 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 ...
0
votes
0answers
2k views

Can't erase disk, Error: -69760

I am trying to format a USB drive, however I am faced with the following error: sh-3.2# diskutil unmountDisk force /dev/disk3 Forced unmount of all volumes on disk3 was successful sh-3.2# diskutil ...
1
vote
0answers
108 views

MacBook Pro Mid 2009 shows forbidden sign but boots when holding command key

After upgrading from High Sierra 10.13.x (can't remember) to High Sierra 10.13.6, something went wrong with the boot partition. When turned on the MacBook shows the forbidden sign. However when I ...
0
votes
1answer
28 views

I created free space and I don't know to recover it

So I followed this answer here Merge partitions with Macintosh HD And I ended formatting my old bootcamp partition into free space. But now I am unable to see the free space anywhere. When I go to ...
0
votes
1answer
517 views

Can't extend APFS after erasing old partition as free space [duplicate]

My problem is very similar to this one: Extend main APFS partition fails with "target disk is too small for this operation" I erased an unused 80 GB partition as free space, and I would ...
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 ...
1
vote
1answer
470 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: ...
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
7k 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 ...
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 ...
29
votes
7answers
52k 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 ...
0
votes
2answers
670 views

Disk Utility shows partition NOT appearing through diskutil list

HighSierra, 500 GB SSD Disk Utility shows two partitions that does not appear through diskutil list. First, the ouput from diskutil list: sh-3.2# diskutil list /dev/disk0 (internal, physical): #: ...
1
vote
0answers
134 views

Accidentally deleted external USB Drive and now I can't access it

I accidentally formatted an external USB Drive to APFS, I needed to change it back so I found this walkthrough: https://www.techrepublic.com/article/how-to-revert-back-to-apples-hfs-from-apfs/ and I ...
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 ...
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 ...
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 ...
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 ...