Monday, December 23, 2024

terminal – “gpt get better: operation not permitted: get better” when making an attempt to get better an exterior HD utilizing “sudo gpt get better /dev/disk”

I plugged in an outdated WD My Passport exterior HD (WDBACX0010BBK-00) into my 2020 Macbook Air M1 on Sonoma 14.5, solely to seek out that the disk doesn’t present up on finder. Disk utility exhibits a WD Digital CD with minimal capability, with all of the Disk Utility choices greyed out as an uninitialised disk.

I attempted to mount by way of diskutil in terminal:

% diskutil mount /dev/disk4
Quantity on disk4 didn't mount
If it has a partitioning scheme, use "diskutil mountDisk"
For those who suppose the quantity is supported however broken, attempt the "readOnly" possibility

Then to mount the total disk in readonly mode:

% diskutil mountDisk readonly /dev/disk4
Quantity(s) mounted efficiently

I left it to chew at that for some time, and in that point additionally obtained a pop up which learn The disk you hooked up was not readable by this laptop. Nonetheless nothing might be seen in finder or within the Volumes listing by way of terminal. Nevertheless, working diskutil listing once more, I can see there’s a new “slice”, which wasn’t there earlier than (disk4s0) :

% diskutil listing              
...
/dev/disk4 (exterior, bodily):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:        CD_partition_scheme                        *36.1 MB    disk4
   1:              CD_ROM_Mode_1                         31.5 MB    disk4s0

Now in an try to know and (hopefully) get better the info, following the suggestions right here in a blogpost by nbalkota in 2013, making an attempt the next:

% sudo gpt get better /dev/disk4
gpt get better: operation not permitted: get better

Why am I not permitted to make use of get better / how can I get this to run?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles