/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Useful built-in macOS command-line utilities
(weiyen.net)
700 points
yen223
| 4 comments |
06 Nov 24 05:51 UTC
|
HN request time: 7.19s
|
source
Show context
zitterbewegung
◴[
06 Nov 24 13:19 UTC
]
No.
42061843
[source]
▶
>>42057431 (OP)
#
The terminal version of Disk Utility is actually much better than the GUI (it doesn't hang and the app is glitchy.
Docs are at
https://ss64.com/mac/diskutil.html
replies(3):
>>42063091
#
>>42063294
#
>>42069049
#
1.
zazaulola
◴[
06 Nov 24 14:47 UTC
]
No.
42063091
[source]
▶
>>42061843
#
`pdisk` might be more convenient if you've worked with `gdisk` on ArchLinux
https://manpagez.com/man/8/pdisk/
replies(2):
>>42063313
#
>>42064752
#
ID:
GO
2.
e40
◴[
06 Nov 24 14:59 UTC
]
No.
42063313
[source]
▶
>>42063091 (TP)
#
diskutil does more than edit partitions, though.
3.
Tsiklon
◴[
06 Nov 24 16:30 UTC
]
No.
42064752
[source]
▶
>>42063091 (TP)
#
If you have a modern Mac you have very little business using `pdisk`. It is only for editing disks mapped with an “Apple Partion Map”. This is obsolete replaced in practice by GPT on modern apple machines.
replies(1):
>>42065177
#
4.
zazaulola
◴[
06 Nov 24 16:54 UTC
]
No.
42065177
[source]
▶
>>42064752
#
`gdisk` supports GPT, but to partition system SSD you need to deactivate System Integrity Protection:
gdisk /dev/disk0
↑