Questions tagged [diskutil]

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

Filter by
Sorted by
Tagged with
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 ...
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 ...
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 ...
50
votes
7answers
85k 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 ...
2
votes
1answer
926 views

Find specific attached disk, not volume, by Applescript

I have a script I use to format any inserted SD card, copy data from specific folders to it, then eject. Each format/copy is triggered manually, as part of a batch process involving maybe a hundred ...
8
votes
2answers
17k views

How to fix Mac hard drive partition showing as Fdsik_partition_scheme

My situation seems very similar to how to fix GUID hard drive corrupted to MBR but with enough differences that I haven't been able to put together a confident solution. I have a 3TB Toshiba drive in ...
15
votes
3answers
98k 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 ...
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 ...
4
votes
3answers
4k 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 ...
4
votes
4answers
20k 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: ...
4
votes
1answer
17k 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 ...
4
votes
0answers
2k 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 ...
2
votes
1answer
534 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
1k 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 ...
3
votes
0answers
476 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
1k views

Disk image of OS + Recovery partition?

I'm working with multiple OS X versions frequently and I'd like to have an image which contains a particular OS version's system partition and its recovery partition. Is this possible? (the disk where ...
1
vote
1answer
563 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 ...
1
vote
1answer
124 views

Can I safely remove a broken recovery partition?

Can I remove the broken recovery partition? $ diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme ...
1
vote
1answer
1k 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 ...
0
votes
1answer
950 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
1answer
1k 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 ...