> Etienne Goyer > Please respond to "This is the lpi-examdev mailing list." > > G. Matthew Rice wrote: > > Etienne Goyer <[EMAIL PROTECTED]> writes: > >> Ian Shields wrote: > >>> FWIW, the blkid command helps a lot with figuring out UUIDs. > >> And so does vol_id. > > > > Forgot to ask, "are both of these commands ubiquitous or are either distro > > specific?" > > Not 100% sure, as I have been pretty exclusive to Ubuntu in the past > couple years, but blkid is part of e2fsprogs, and vol_id is part of udev. > > -- > Etienne Goyer 0x3106BCC2
I think vol_id is in the usual path on Ubuntu, but it is not in Fedora (9 at least). blkid on fedora 9 is in /sbin. Output format is different (vol_id is optimized for use by udev). Here's a sample for a single drive. By default, blkid lists this information for all block devices. [EMAIL PROTECTED] ~]# /sbin/blkid /dev/sdb13 /dev/sdb13: LABEL="FC9-64" UUID="e8292a1f-c5e5-4b41-abab-3bc8596f2287" TYPE="ext3" SEC_TYPE="ext2" [EMAIL PROTECTED] ~]# /lib/udev/vol_id /dev/sdb13 ID_FS_USAGE=filesystem ID_FS_TYPE=ext3 ID_FS_VERSION=1.0 ID_FS_UUID=e8292a1f-c5e5-4b41-abab-3bc8596f2287 ID_FS_UUID_ENC=e8292a1f-c5e5-4b41-abab-3bc8596f2287 ID_FS_LABEL=FC9-64 ID_FS_LABEL_ENC=FC9-64 ID_FS_LABEL_SAFE=FC9-64 Ian Shields Ph.D. Linux Technologist, ISV & Developer Relations IBM Corp Research Triangle Park, NC [EMAIL PROTECTED]
_______________________________________________ lpi-examdev mailing list [email protected] http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev
