Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [diskutil]

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

0
votes
0answers
23 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 ...
0
votes
1answer
51 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(...
2
votes
2answers
50 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. ...
0
votes
0answers
32 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:...
0
votes
1answer
16 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.
2
votes
1answer
96 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
28 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
17 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....
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
424 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 ...
2
votes
1answer
169 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
740 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
84 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
347 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 ...
0
votes
0answers
40 views

Remove all partitions and volumes

Trying to merge all my partitions and volumes so I only have the one big one like you would on a fresh macbook pro. I managed to merge a few partitions that were around that I made when I first tried ...
0
votes
0answers
283 views

partition failed with the error: couldn't unmount disk

After having resized the Mac partition through the CLI from: /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme ...
1
vote
1answer
372 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
34 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
4k 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
77 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 ...
0
votes
0answers
49 views

Troubleshooting Missing Volume/Disk

I have a Mac Mini whose volume "Shadow" has disappeared. Not showing up in Disk Utility. I have a healthy volume called "Alpha" (changed for security). But that volume name is both on a 60 GB SSD ...
0
votes
2answers
945 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 ...
0
votes
2answers
588 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
110 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 ...
1
vote
0answers
33 views

Trying to move OSX to free space above it at top of GPT partition table

This is my partition table according to the gpt tool with GUID's and labels start size index contents 0 1 PMBR 1 1 Pri GPT ...
1
vote
0answers
245 views

How to reset external SSD

The Problem I am trying to completely erase an external SSD; however, whichever way I try to do it, I get a different error. I think I have broken something. I don't care about information on this ...
4
votes
0answers
908 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
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 ...
0
votes
1answer
636 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
1answer
108 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 ...
0
votes
1answer
322 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 ...
5
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
790 views

Force BootCamp to use GPT

I have installed BootCamp manually to the last partition on my SSD /dev/disk0s13. It works, no problems, but every time I manage my partitions from OS X (or any other OS that is not Windows), the ...
3
votes
1answer
363 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 ...
4
votes
2answers
2k 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 ...
1
vote
1answer
204 views

Recovery Mode: FireVault psswd unrecognised and CoreStorage not found

Need some urgent help with my unruly Mac (faced with the prospect of erasing my hard drive after 150 days without backup...) Here is the problem that I have. My Mac got quite slow and I restarted it ...
0
votes
1answer
2k views

You cannot remove the first volume on the disk - Mac

How can I remove "First Volume"(Macintosh HD) on the disk. Minus sign is grayed out. Unable to remove it via recovery either. Even if I erase the volume, I can't use that space for macOS10.12.1... ...
9
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 ...
2
votes
0answers
96 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 ...
1
vote
3answers
3k views

External Disk not recognized, can't unmount, cannot erase

I have an external drive which is only recognised running diskutil list in Terminal, not in the GUI version or Finder: /dev/disk1 (external, physical): #: TYPE NAME ...
2
votes
0answers
327 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 ...
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
1k views

Accidentally removed internal disk before High Sierra installation

I have a 15" mid-2014 MacBook Pro (with a 256GB SSD). Today I wanted to install macOS High Sierra, so I created a bootable USB installation drive. Then I booted into the installer and fired up Disk ...
0
votes
0answers
73 views

iMacs Fusion Drive: only SSD listed, no HDD

I had some problems with a Mac's Fusion Drive. I erased the first MB of the SDD (Terminal in recovery mode). After that I partitioned the SDD again (with GUID). That works. But the HDD is now missing. ...
1
vote
1answer
391 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 ...
1
vote
0answers
621 views

External hard drive disappeared

I’m currently suffering under my newly bought 6TB HDD. I safely ejected it yesterday and when I plugged it in again, nothing happened. I then checked DiskUtility but was presented with a strange thing:...
3
votes
2answers
420 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
702 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: ...