Questions tagged [diskutil]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
43 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
0answers
29 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
0answers
19 views

Create a new partition in available space

I want add a new fat32 partition (disk2s2) in all available space leaves but all my leaved space is before an existing extFat (disk2s1) I want to keep diskutil list disk2 /dev/disk2 (external, ...
0
votes
1answer
49 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
2answers
68 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
0answers
28 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 ...
0
votes
1answer
432 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
0answers
24 views

Correct procedure to grow an iSCSI partition from an expanded LUN

I'm using the Daemon Tools iSCSI initiator. I have created a practice iSCSI target and LUN on my QNAP. At first, it was 7GB. I took the LUN offline and increased the size to 16GB. I reconnected to ...
0
votes
0answers
61 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 ...
0
votes
0answers
27 views

SD Card will not erase/format or unmount during erase

I'm trying to erase and reinstall Raspberry Pi OS to an SD Card, with no success. I followed the directions in another thread but am still stuck. So far here's what I've done (in Terminal after ...
0
votes
0answers
22 views

2TB USB drive not showing in diskutil, fsck not running, not showing in Finder

I recently purchased a 2TB USB drive and loaded a few files onto it after formatting it to FAT32 so I could use it on my TV. I accidentally unplugged it without unmounting/ejecting it first and ever ...
4
votes
0answers
156 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
2answers
90 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 ...
0
votes
0answers
27 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
2answers
1k 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 ...
0
votes
0answers
19 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 ...
3
votes
2answers
111 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
3k 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
0answers
43 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
150 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
1answer
57 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
2answers
626 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
90 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
275 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
140 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 ...
2
votes
1answer
347 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 ...
0
votes
2answers
212 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 ...
6
votes
1answer
1k 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 ...
0
votes
0answers
175 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
81 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
153 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 ...
2
votes
0answers
59 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 ...
4
votes
2answers
309 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
3answers
1k 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 ...
1
vote
0answers
48 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 ...
0
votes
2answers
74 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 ...
1
vote
1answer
864 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 ...
2
votes
1answer
726 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 ...
1
vote
0answers
270 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 ...
3
votes
1answer
552 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 ...
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
213 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
85 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 ...
0
votes
3answers
1k 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
27 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 ...
2
votes
1answer
108 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 ...
3
votes
1answer
912 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
110 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
453 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
1answer
3k 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. ...