Questions tagged [diskutil]

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

Filter by
Sorted by
Tagged with
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
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 ...
0
votes
2answers
823 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 ...
0
votes
1answer
87 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
1answer
23 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.
0
votes
1answer
72 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 ...
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 ...
0
votes
1answer
35 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
938 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 ...
0
votes
1answer
3k views

You cannot remove the first volume on the disk - Mac

How can I remove "First Volume"(Macintosh HD) on the disk. Minus sign is grayed out. Unable to remove it via recovery either. Even if I erase the volume, I can't use that space for macOS10.12.1... ...
0
votes
1answer
303 views

diskutil and df show different sizes

I had a failure trying to repartition an external drive (a Drobo array) using Disk Utility. Now Disk Utility says my drive is 8.8 TB, but it has only one partition on it using 5.4 TB using up "all" ...
0
votes
1answer
2k views

External HDs spontaneously unmount themselves, now one won't remount

I have a short stack of WD bus-powered external drives connected to my mid-2010 17" MBP through a 10-port powered hub. (According to specs, the hub supplies more than enough amperage to power all of ...
0
votes
2answers
606 views

diskutil moving partitions into order for merging

I just had my first attempt with diskutil mergePartitions - it was on a backup disk and I ended up loosing all partitions in between :p Having learnt from my mistake that mergePartitions merges from ...
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 ...
0
votes
1answer
59 views

Deleted Partitions and Wasted Storage

After doing diskutil list: /dev/disk0 (internal): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme 500.3 GB ...
0
votes
1answer
1k views

Accidentally ran command to erase volume with “no format”, how can I get it back?

I accidentally ran this command and now I am missing 100gb of space, how can I get it back? All help appreciated!! diskutil eraseVolume free %noformat% disk0s2 Terminal gives this diskutil info: ...
0
votes
1answer
569 views

Different partition configuration between gpt and fdisk

After resizing my HFS partition (to solve a case sensitive/insensitive problem) I found out my BOOTCAMP partition was no longer accessible. As I navigate the web, I found out this is a common issue ...
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
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 ...
0
votes
0answers
48 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
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 ...
0
votes
0answers
236 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
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....
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
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 ...
0
votes
1answer
308 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(...
0
votes
0answers
295 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
949 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
2answers
938 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): #: ...
0
votes
0answers
96 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, ...
0
votes
1answer
317 views

How to recover this damaged CoreStorage PV records?

I have played something following https://www.reddit.com/r/osx/comments/2wzlxc/a_corestorage_primer_aka_why_you_cant_manipulate/ ,like: hdiutil attach -nomount ram://$[2048*1024] diskutil cs ...
0
votes
1answer
646 views

Use shell wildcard OR with diskutil

I have the following terminal command, which matches volumes called A001R45R, A123R45R, etc. diskutil eraseVolume HFS+ FreshMag /Volumes/*R45R But I also want it to match volumes called B001R4G5, ...
0
votes
1answer
2k views

Why does the diskutil shows I have two local hard drives? [duplicate]

I was trying to get my NTFS drive to work today and I discovered that the diskutil thinks I have two local hard drive. This phenomenon is not occurred on my Macbook Pro. Do anyone know why? Here is ...

1 2
3