GETDEVPATH(8) BSD System Manager's Manual GETDEVPATH(8)NAMEgetdevpath — translate device partial or label to device path
SYNOPSISgetdevpath [-qr] devname ...
DESCRIPTION
The getdevpath utility directly calls the getdevpath(3) function for each
supplied device name, translating the device name to a device path.
The -q option will generate just the translated output, one per line. An
empty line is generated if the device name could not be translated.
The -r option will take the translated device name and do a further
translation of it if it is a softlink, returning the contents of the
softlink.
FILESgetdevpath will search the /usr/local/etc/devtab, /etc/devtab, and
/etc/defaults/devtab files for label translations.
EXAMPLESgetdevpath da0
getdevpath /dev/da0
getdevpath serno:ABC123
getdevpath MyDisk
SEE ALSOgetdevpath(3), devtab(5), fstab(5)HISTORY
The getdevpath utility appeared in DragonFly 2.3
BSD July 10, 2009 BSD