A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [diskutil]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
225 views

How to create a read-only RAM disk on macOS from the command line?

On macOS Catalina, a RAM disk with 512MB space can be created with the following command: diskutil eraseVolume HFS+ "RAMDisk" `hdiutil attach -nomount ram://1048576` On Ubuntu, a RAM disk and its ...
0
votes
0answers
46 views

command silently failing when running from the root's crontab

I have a script that runs diskutil and since diskutil needs permissions to run I'm running the script from the root's crontab. Steps: sudo su root crontab -e sh /test.sh Nothing ever happens ...
0
votes
0answers
57 views

Mac Hangs on boot, Macintosh HD partition intermittent failures

I have the following problem: My 2016 MacBook Pro (El Capitan) hangs on boot. The progress bar loads to near completion, after that it stops. The laptop heats up and eventually shuts down. What I ...
1
vote
1answer
42 views

What is the difference between this disks (0 and 1) on my Mac?

I want to know how does my Mac use this disks. What is the difference between this disks (0 and 1) on my Mac? And what is the difference between internal and synthesized? I would be appreciated if ...
1
vote
0answers
37 views

Mac partition shows as type FFFF-FFF… - partition doesn't show in boot menu

I have a Ubuntu 16.04 partition running on my Mac alongside the MAC OS. It started recently that I could only boot into a black screen in the Mac OS and now the partition in the boot menu has ...
0
votes
0answers
71 views

APFS Container ERROR -69808

I'm attempting to recover data from an APFS volume. Running diskutil apfs list returns the following: +-- Container ERROR -69808 ====================== APFS Container Reference: disk5 ...
4
votes
2answers
221 views

Double Erased my 64GB flash drive, but failed both. How to fully erase it again and make it work?

TL;DR I formatted an USB drive on my AndroidTV which failed, and am now trying to fix it from my Mac. Right now I can see the drive in diskutil list but it neither shows up in Finder nor in Disk Util. ...
0
votes
3answers
167 views

How long should diskutil resetUserPermissions take (Catalina)?

I am following this article because of this issue. The Terminal has been going on for about 2.5hrs and I do not know of a way to see a progress bar or know if it is stuck or if something else is ...
1
vote
0answers
37 views

Can I recover a drive after accidentally allocating it to a fusion drive?

I made an incredibly boneheaded mistake. I typed diskutil cs create Fusion\ Drive disk1 disk2 instead of diskutil cs create Fusion\ Drive disk0 disk1 (while I was looking at the list to make sure I ...
0
votes
2answers
23 views

Should diskutil list an unmounted drive?

diskutil list showed the presence of an external drive.  But nether Finder nor df showed it.  And there was no "oops" pop-up when I unplugged it. Is diskutil list supposed to show everything plugged ...
1
vote
1answer
89 views

Partition space with the command diskutil partitionDisk

Why if I run the commande below, I don't have 8G partition but 7,9? diskutil partitionDisk disk2 hfs+ 14 8G hfs+ 15 8G hfs+ 13 8G Started partitioning on disk2 Unmounting disk Creating the partition ...
0
votes
0answers
34 views

Why does “diskutil eraseVolume …” add an extra “Apple_Free” partition

My question is about why "diskutil eraseVolume" adds an extra partition to an APM partition table. A little history will help understand the situation better I think -- had a 240GB APM style disk on ...
0
votes
0answers
12 views

Logical volume has bad name - how to rename? [duplicate]

My CoreStorage disk has a name containing both single and double quotes and every effort to rename it has failed. Time Machine has refused to work ever since so I feel like I'm out a limb with my data....
1
vote
0answers
40 views

How to Recover Sparsebundle With Missing File System

I'm trying to recover data from an encrypted sparsebundle on macOS Mojave (10.14.6) that I just discovered became corrupted at some point in the past. It was created several years ago. I have the ...
0
votes
0answers
25 views

erase usb pen drive with format ISO 9660 protection

It seems that diskutil is unable to erase/format my pen drive with the format ISO 9660 (Joliet), it appears to be a "CD like protection" thanks
3
votes
1answer
128 views

MacOS: two hard drives, one empty

I was trying to recover my Mac from a backup but something went wrong (the recovery was very slow) so I ended up installing a clear MacOS. However, I did something wrong with diskutil, and now have ...
0
votes
0answers
22 views

Diskutil won't resize APFS container Error: -69521

200GB unused, but can't change APFS container size due to minimum requirement I've got this exact same problem here, same error, same message, I tried everything in there already but nothing ...
1
vote
0answers
21 views

dd sticking and not working

So, I used: sudo dd if=/Users/****/Downloads/kali-linux-2019-2-amd64-iso.dmg of=/dev/disk2 bs=1m to flash a bootable usb drive, but it never started copying... So now I can't access/mount/unmount ...
0
votes
1answer
75 views

Adding a new hard drive to RAID1 software RAID fails

I've got a Mac Pro 1.1 running macOS Server 10.6.8 that I want to use as a RAID-Server. I use Disk Utility to run a RAID1 set with two 500GB hard drives. Now adding a third 500GB hard drive to the ...
1
vote
0answers
50 views

Accidentally deleted my encrypted coldstorage drive. Can I recover it somehow? diskutil cs delete MAC

The hard drive connection broke in my macbook pro. I used a sata to usb cable and put it on the mac, it still didnt boot. I went into Recovery. I believe the drive originally had 3 partitions. One ...
0
votes
2answers
353 views

How to fix a Damaged APFS disk?

I have an issue with a 1TB 850 Evo, serving as an external disk in a SATA enclosure. I would Really like to recover the data I have on it so any help would be greatly appreciated. The disk has been ...
1
vote
0answers
23 views

Resized MacOS partiton after debian install, now volume has no type and MacOS wont boot

I was dual booting debian alongside MacOS. Debian hasn't been bootable for some time (unknown reason) so I decided to remove the leftover linux partions and resize my main MacOS parition to fill the ...
0
votes
0answers
148 views

diskutil eraseDisk won't work on Mojave with SSD Samsung 860 EVO Media

I try to format my SSD Samsung EVO on MacBook Pro (13-inch, Mid 2012) Mojave 10.14.6 (18G87) using terminal app but it trows for me this error below: Actually I had same kind of same issue before, ...
2
votes
1answer
53 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
196 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
34 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
69 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 ...
0
votes
0answers
41 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
195 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(...
3
votes
2answers
939 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
165 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
20 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
1k 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
61 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
30 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
2k 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
813 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
434 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
0answers
4k 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
120 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
30 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
732 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 ...
1
vote
1answer
689 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: ...
3
votes
0answers
70 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 ...
4
votes
1answer
11k 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
90 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 ...
2
votes
2answers
2k 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
817 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
151 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 ...
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 ...