Sample Header Ad - 728x90

/dev/disk/by-id on macOS?

10 votes
4 answers
2789 views
Suppose that we are doing some operations on drives using for example diskutil. Usually we use /dev/diskX to indicate which drive we are working on, but the number X could change next time we connect the drive to computer, so we have to look at and check the number X again and again. On Linux we have /dev/disk/by-uuid. How could we get this on macOS?
Asked by Ma Joad (461 rep)
Feb 21, 2023, 02:13 PM
Last activity: Aug 22, 2023, 12:05 PM