Questions tagged [diskutil]

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

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
0answers
92 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
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
0answers
5k 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 ...
3
votes
0answers
74 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 ...
3
votes
0answers
463 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
0answers
126 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
111 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
699 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 ...
1
vote
0answers
29 views

Macbook Pro 2015 barfed during Boot Camp partitioning, rebooted to uninitialized APFS drive

I was trying to run Boot Camp to have access to the windows Steam library. Boot Camp kept failing and it would then hang on "error: please wait while we reset the partitions to the usual configuration,...
1
vote
0answers
118 views

External Hard Drive accidentally turned off and won't show any files

I recently bought a hard drive and when I connected it to my laptop, the partition option was not available in Disk Utility. So I looked on the Apple Forums and found a solution, which included ...
1
vote
0answers
46 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 ...
1
vote
0answers
44 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 ...
1
vote
0answers
95 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 ...
1
vote
0answers
22 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 ...
1
vote
0answers
59 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 ...
1
vote
0answers
24 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 ...
1
vote
0answers
36 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....
1
vote
0answers
128 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 ...
1
vote
0answers
160 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
771 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:...
0
votes
0answers
37 views

Is there any way of setting the default mount point for an APFS volume? (10.14/Mojave)

I can create an APFS volume in 10.14/Mojave, with a command like % sudo diskutil apfs addVolume disk1 APFSX Stuff -mountpoint /stuff The intention is to create a case-sensitive volume, and have it ...
0
votes
0answers
170 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
67 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 ...
0
votes
0answers
175 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 ...
0
votes
0answers
48 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
0
votes
0answers
39 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 ...
0
votes
0answers
215 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, ...
0
votes
0answers
246 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
0answers
95 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. ...
0
votes
0answers
164 views

Merge all partitions back to single volume

I was trying to install windows 10 on my Retina Mid 2015 MBP using bootcamp, and ran into a few problems during the installation. Without going into too much of detail, this is what i have right now, ...