Questions tagged [diskutil]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Can `diskutil cs deleteVolume` be undone?

I've by accident executed diskutil cs deleteVolume on the wrong, encrypted drive. According to the manual, this will lead to data loss, but how bad is it? It surely didn't overwrite the whole disk. ...
0
votes
1answer
78 views

Cannot resize APFS container after updating to Big Sur

I've installed Big Sur beta 2 and tried to use Boot Camp Assistant but I got the error "disk could not be partitioned". Also tried to partition manually but "a problem occurred while ...
75
votes
7answers
112k 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 ...
0
votes
0answers
11 views

Internal SSD not showing up in disk utility or under diskutil list

When I started the laptop is was showing the icon with the ? within the folder. I tried to install the OS but was not able to find the hard drive disk in disk utility or in terminal after using ...
1
vote
4answers
3k 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 ...
2
votes
1answer
53 views

How do I make 1 empty partition out of an external USB disk?

I made a mistake with dd and now my external USB disk looks as follows: $ diskutil list (... output ...) /dev/disk2 (external, physical): #: TYPE NAME ...
5
votes
1answer
657 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 ...
3
votes
2answers
94 views

Prevent certain APFS volumes from being deleted in Disk Utility.app

I can open Disk Utility and permanently erase any highlighted, internal APFS disk volume not being used to boot the currently running operating system, just by clicking the delete or - (minus) button, ...
3
votes
3answers
1k views

dd on Catalina gives “Permission denied” error even after grant it Full Disk Access in Security and Privacy

date; sudo dd bs=1M if=2020-02-13-raspbian-buster-full.img of=/dev/rdisk3; date Thu Apr 23 20:22:45 PDT 2020 Password: dd: failed to open '/dev/rdisk3': Permission denied Thu Apr 23 20:...
0
votes
1answer
940 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
0answers
33 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
1answer
61 views

format/Erase Equivalence Disk Utility and Terminal Command diskutil

What is the diskutil equivalence from Disk Utility of Format/Erase with Format MS-DOS(FAT) and Scheme GUID Partition Map. Format/Erase with Format MS-DOS(FAT) and Scheme Master Boot Record. In other ...
0
votes
0answers
50 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 ...
2
votes
2answers
252 views

How to delete a boot partition from MacOS Catalina

A few years ago I created a second boot partition on a MacBook, called "BootOS". I would like to delete this partition and merge the space back into the remaining partition. I have found a question/...
0
votes
1answer
63 views

How can I hide a ramdisk from Finder?

I'm creating ramdisks on MacOS following the usual procedure (ie: diskutil erasevolume HFS+ mydisk after hdiutil attach -nomount ram://SIZEINBLOCKS). They work, but they show up in Finder windows with ...
1
vote
1answer
127 views

Unable to mount partition

I've combined two partition formatted as NTFS for dual boot system with bootcamp. I did this while running windows using a special program to adjust partitions. but after a necessary restart according ...
1
vote
0answers
123 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 ...
0
votes
1answer
143 views

Create encrypted partition for Time Machine from command line using diskutil or gpt, instead of Disk Utility?

I can use Disk Utility to create an encrypted partition, intended for Time Machine backups. I would choose the Mac OS X Extended (Journaled, Encrypted) format. However is there also away to achieve ...
2
votes
1answer
368 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
2answers
138 views

How to create a read-only shadow for existing RAM disk on macOS?

Read-only RAM disk can be created with method described in this post, so how to create a read-only shadow mount point for existing RAM disk while keeping the original mount point unchanged with ...
0
votes
0answers
171 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
69 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
53 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 ...
8
votes
1answer
5k 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
1answer
2k 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
3answers
570 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 ...
2
votes
0answers
50 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
240 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
251 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
2answers
824 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
47 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
1answer
358 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
2answers
39 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 ...
0
votes
0answers
13 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
121 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
56 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
265 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
45 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
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 ...
0
votes
1answer
146 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
64 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
26 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 ...
3
votes
0answers
6k 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 ...
2
votes
1answer
70 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
449 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
1answer
89 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 ...
7
votes
2answers
5k 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
313 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
2k 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
1answer
24 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.