Questions tagged [diskutil]

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

diskutil manipulates local disks. It can be used to modify, verify or repair them.

167 questions
109
votes
8 answers

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 statistics of the drive. Anyone know how to do this…
Mike Akers
  • 1,193
  • 2
  • 8
  • 6
76
votes
8 answers

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 list. So far, I've tried: sudo diskutil unmountDisk…
Charles
  • 891
  • 1
  • 7
  • 8
15
votes
3 answers

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 won't change either partition, because it has…
László
  • 451
  • 1
  • 6
  • 17
10
votes
2 answers

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 partitioning a flash drive, but I'm not sure how to apply…
Becca Dee
  • 227
  • 3
  • 8
10
votes
2 answers

Difference between "diskutil unmount" and "diskutil unmountDisk"?

Sometimes when I try to unmount a disk using the "diskutil" command I get the following message: $ diskutil unmount /dev/disk1 disk1 was already unmounted or it has a partitioning scheme so use "diskutil unmountDisk" instead when I replace…
slightly_toasted
  • 656
  • 1
  • 7
  • 20
9
votes
1 answer

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 formatted in APFS. When I tried correcting the…
Gnu slash Gints
  • 93
  • 1
  • 1
  • 6
8
votes
1 answer

All of a sudden can't open .dmg files on Monterey

My MacBook Pro 13" M1 crashed last night, I think because I switched off my external USB-C monitor. I logged in as normal but since then I am not able to open .dmg files. When I try to open using DiskImageMounter.app, nothing at all happens, no…
Hackeron
  • 237
  • 2
  • 10
8
votes
3 answers

How to fix Mac hard drive partition showing as FDisk_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 a USB enclosure being used on a Mac with OS X El…
Doug Smith
  • 83
  • 1
  • 1
  • 4
7
votes
1 answer

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 couldn't find anything about their differences online.
user255044
7
votes
2 answers

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 Utility app, the partition is not displayed, but…
Caio Kawasaki
  • 173
  • 1
  • 1
  • 5
6
votes
1 answer

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 read-only shadow can be created by: mount -t tmpfs…
Vej
  • 163
  • 7
6
votes
1 answer

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 eraseDisk JHFS+ MacOS /dev/disk3 Started erase on…
joseluisbz
  • 766
  • 2
  • 9
  • 24
6
votes
0 answers

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 seemingly invalid disks (starting at…
Jake Lee
  • 61
  • 1
  • 3
5
votes
0 answers

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 it powers up again. I am looking for a way to stop…
5
votes
1 answer

Why won't an fsck-declared-good volume mount?

I have a CoreStorage logical (virtual), encrypted volume that will not mount, even though fsck_hfs declares it clean. Does anyone know what the deal is here? Here is the drive information: /dev/disk4 (external, physical): #: …
Mark Adler
  • 519
  • 2
  • 7
  • 20
1
2 3
11 12