Questions tagged [diskutil]
diskutil is a command line tool for modifying, verify and repairing disks.
167
questions
0
votes
0
answers
9
views
Existing AFPS Time Machine, adding identical drive to create RAID1, possible to do without reformatting?
I did a lot of research already and it seems like this was definitely possible before AFPS (see http://hints.macworld.com/article.php?story=20041013121106176). The command diskutil appleRAID enable ...
1
vote
1
answer
38
views
Unable to reclaim free space after bootcamp uninstall [duplicate]
I'm unable to reclaim free space after uninstalling Boot Camp (done through the Boot Camp Assistant).
Here are some screenshots from Disk Utility and results from diskutil:
$ diskutil list
/dev/disk0 ...
1
vote
0
answers
71
views
Make external SSD appear in Finder
I bought a new external SSD, but when I connected it to my MBP (14" 2021 Ventura 13.0.1, Apple M1 Pro), it did not show up in the Finder (sidebar or anywhere else).
How I can make it show up?
...
2
votes
2
answers
92
views
Inaccessible APFS Partition - no gpt scheme
In an attempt to recover a different external drive altogether, my drive "Libraries" was compromised. Just for it being connected at the same time.
I'll be sure to disconnect drives I'm not ...
1
vote
0
answers
36
views
How to delete (leftover) Windows partition on macOS Catalina?
I just bought a MacBook Pro Mid 2012 Unibody.
It seems to run a fresh Catalina install though I encountered a Bluetooth issue the other day (wouldn't find the Bluetooth device) and decided to clear ...
1
vote
1
answer
65
views
I have 1 TB disk but I'm only seeing 747 GB. How to recover the 253 GB missing?
I am not sure how to solve this.
I used to have macOS Monterey on my iMac late 2015 and it was running a bit slow. So I removed it, formatted the drive and did a fresh install of macOS Mojave, which ...
1
vote
0
answers
139
views
Creating a non-TM snapshot of an external APFS volume
I have an external HDD with several APFS volumes containing all my files. I want to preserve a copy of the files at a given time, in case they get accidentally modified or deleted. Creating manual ...
1
vote
0
answers
24
views
Network Recovery doesn't always load the latest compatible Recovery partition
I am using the Command-Option-R key-combination at start up to load up the latest Recovery Partition online, and then proceed to cloning disk-images using asr and diskutil in terminal.
Normally after ...
0
votes
0
answers
68
views
Need help to fix mac partition with APFS
For some unknown reason, the controller for my USB drive failed and now I'm unable to access the drive. I've tried to do something with gpt, but I guess I only screwed it up.
Could someone help me to ...
1
vote
0
answers
51
views
Why can I unlock a volume from the terminal but not the unlock prompt?
When I try to mount an encrypted image from Finder, it pops up with a password prompt. I am unable to unlock it using that for some reason.
It's not that I don't have the password because I can unlock ...
8
votes
1
answer
3k
views
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 ...
0
votes
1
answer
373
views
One partition on external HDD not mounting, disk not ejecting
I have a problem with my external HDD from Seagate. It was working fine and I was transferring files from it to another external SSD on my MacBook Air (running macOS Monterey). However, the battery on ...
1
vote
1
answer
178
views
Recover "free space" on hard drive
How can I merge the free space on my MacBook with the rest of my hard drive? I tried to run Asahi then removed it
0
votes
1
answer
98
views
How to get full "Media name" from the command line
From the Disk Utility GUI I can pick a physical disk and then click info and I get a Media name of ST325062 4NS Media (this happens to be disk4)
From the command line I can do diskutil info disk4 and ...
0
votes
1
answer
332
views
Hard drive not showing in Recovery Mode despite reformat in HFS+
Same issue as related in this thread but I already did the following:
Re-created a new GPT (GUID) partition table (using GParted, Ubuntu)
Created an HFS+ partition specifically for my MacOS
Re-...
0
votes
0
answers
429
views
APFS Container lost after crash and reboot
My 15" MacBook Pro Late 2016 with a 500GB SSD was occasionally rebooting (but only) during MS-Teams meetings. Anyway, the last crash was destructive and now I get flashing "?" when it ...
2
votes
1
answer
447
views
How to know what the different `roles` do in `diskutil apfs` shell command
I wish to know what these mean, which one I should use, when specifying the <roles> as shown here.
$diskutil apfs addVolume
Usage: diskutil apfs addVolume <containerRefDisk> <fs> &...
0
votes
2
answers
339
views
What happens when you delete GUID_Partion_Scheme?
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: ...
1
vote
2
answers
2k
views
APFS disk plugged in newer system gives "Incompatible Disk" warning in original OS
If you plug an external macOS system disk using APFS into a newer version of macOS you will get a warning afterwards back in your original macOS saying: "Incompatible Disk. This disk uses ...
0
votes
0
answers
190
views
diskutil unmountDisk fails, but lsof shows no processes using the disk
I have a number of external hard drives with multiple partitions each.
Since getting a new Macbook Pro and updating to Monterey, running diskutil unmountDisk on two of these HDs fails with an error ...
1
vote
2
answers
205
views
Merge partition on external hard drive
I wanted to format and merge 2 partitions on my external hard drive.
I used the command :
diskutil erasevolume "Free Space" "" /dev/disks4s4.
But now I lost 30go on 2TB and I can'...
3
votes
1
answer
2k
views
diskutil no longer gives PID of dissenting process?
I recently got a new mac and simultaneously upgraded from Mojave to Monterey.
Formerly, when I ran diskutil unmountDisk <disk here>, if there was a dissenting process, it would provide me with ...
1
vote
1
answer
57
views
Internal NVMe SSD missing 65GB after uninstalling Boot Camp with Boot Camp Manager [duplicate]
I am attempting to reclaim the 65GB or so I previously partitioned using Boot Camp Assistant. I have tried another answer listed before to the same problem however I could not get it to work. I have a ...
2
votes
2
answers
300
views
Is there an open source alternative to diskutil available for macOS?
Is there an open source alternative to diskutil available for macOS? I am hoping to find a command line program that perform the same core functions like:
verify disk or volume
repair disk or volume
...
1
vote
2
answers
132
views
Macbook Air Can Not Start After Trying to Remove Ubuntu
I was trying to remove Ubuntu (dual boot) from my 2017 Macbook Air. Now my computer can not start successfully in either macOS or Linux. When I restart it, it now opens refind, then gnu rnu in both ...
-1
votes
1
answer
28
views
Creating new gpt header for broken SD-Card [closed]
I have a broken SD Card. It is detected by mac OS, but I cannot mount it or store data on it. When using gpt -r show and got this:
/dev/disk8 (external, physical):
#: TYPE ...
0
votes
1
answer
100
views
Unable to Expand APFS Container [closed]
I'm having a problem similar to this one, where I can't expand an APFS container to fill all available space. Here's my disk layout in Catalina:
% sudo diskutil list ...
0
votes
0
answers
123
views
Trying to disable “ignore ownership” option on NTFS partition, not much going right
Cloned a Boot Camp partition from my old Mac with dd (both thus being NTFS), but, unlike the original, it does not show in the boot menu. Research suggests this is because ownership is disabled.
Thus ...
0
votes
1
answer
102
views
Unable to allocate free space at end of disk to Mac
As per screenshot below, my Mac has 1TB storage, but the actual capacity shown in Disk Utility only 816GB. There is 200GB categorised as "free space" when I performed a diskutil list, ...
0
votes
1
answer
1k
views
can't claim free space to my container disk
I have a 500gb ssd and I have 1 container which its size is only 70gb. I can't add the remaining 430gb of storage to this container using disk utility for some reason
I tried adding the remaining ...
0
votes
2
answers
233
views
Script to mount exfat drive
hope you are doing great.
I´m using a Macbook pro 2019 with Big Sur and I have all my photos and videos in a external drive formatted in ExFat.
Each time I have to mount the disk I need to run this ...
0
votes
1
answer
1k
views
How to properly unmount image (dmg / sparsebundle)
[macOS Mojave 10.14.6]
I've recently discovered r/w disk images and the particularly fascinating sparse bundle.
As I understand it, an image (the .dmg or .sparsebundle itself) is "attached" ...
1
vote
0
answers
69
views
Lost macOS boot option after using EaseUS partition to resize Windows partition
I am using a Macbook Air. After I installed Windows 10, I wanted to resize the Windows Partition and create a new partition to use data.
After that, Windows informs me that a recovery error - cannot ...
0
votes
1
answer
435
views
Does "gpt remove" command delete files along with partition? Trying to recover a Mac OS partition Vol Type FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF
I have a Macbook Pro with Big Sur on it, and I installed Linux Mint. I then resized the encrypted Mac OS APFS partition in order to grant Linux more space. After that I created another smaller Linux ...
0
votes
2
answers
465
views
APFS Volume does not increase in size
I have an issue with an APFS volume that resides inside a SparseBundle.
I tried to increase its size (similar to this: Is it possible to increase size of an APFS volume?), but failed.
Unfortunately, I ...
1
vote
0
answers
167
views
Recover Apple CoreStorage Volume, LVG, Logical Volume Group -container / partition / volume
I wasn’t able to mount the disk on my MacBook (I had removed both hard drives from iMac, since it’s logic board went bad and I thought not to put more money on Apple products due to such bad hardware ...
1
vote
1
answer
7k
views
How to make remove free space and make APFS container take it up
I am on 11.1 Big Sur beta.
I have a partition with no disk identifier called (free space)
I would like to remove this, and then make the APFS container take up the free space.
Here is a screenshot of ...
0
votes
0
answers
275
views
How do I move a partition in on macOS?
I'm migrating data from a 525GB drive to a 1TB drive. Part of the reason I'm doing this is the APFS container got messed up on the 525GB drive (I have backups).
The first thing did was dd the data ...
4
votes
1
answer
821
views
How to mount a .dmg file with a different volume name (or modify it once mounted)?
MacOS Catalina, 10.15.6
Given a .dmg file, foo.dmg, I want to be able to attach it so that its contents will be visible in the Finder application under the Locations section with an arbitrary name, ...
1
vote
2
answers
177
views
How to set a consistent location for drives mounted on boot?
Each time I reboot my computer, when I run diskutil list the order of the mounted drives changes: /dev/disk0 becomes /dev/disk1 and vice versa. This creates problems for applications and scripts that ...
1
vote
2
answers
3k
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 ...
3
votes
2
answers
166
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
3
answers
5k
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:...
1
vote
0
answers
49
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
1
answer
1k
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 ...
2
votes
1
answer
151
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 ...
2
votes
2
answers
1k
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
1
answer
200
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
1
answer
733
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
0
answers
183
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 ...