42 http://msdn.microsoft.com/en-us/library/aa365247.aspx |
42 http://msdn.microsoft.com/en-us/library/aa365247.aspx |
43 Naming Files, Paths, and Namespaces |
43 Naming Files, Paths, and Namespaces |
44 |
44 |
45 * Block device attributes. |
45 * Block device attributes. |
46 |
46 |
|
47 Include UUID (Universally Unique Identifier) and labels. |
|
48 |
47 $ ls -l /dev/disk/by-uuid/ |
49 $ ls -l /dev/disk/by-uuid/ |
48 lrwxrwxrwx 1 root root 10 2010-11-01 23:41 46B6-1FD4 -> ../../sdb2 |
50 lrwxrwxrwx 1 root root 10 2010-11-01 23:41 46B6-1FD4 -> ../../sdb2 |
49 lrwxrwxrwx 1 root root 10 2010-11-01 23:41 4C30299030298256 -> ../../sda1 |
51 lrwxrwxrwx 1 root root 10 2010-11-01 23:41 4C30299030298256 -> ../../sda1 |
50 |
52 |
51 $ ls -l /dev/disk/by-label/ |
53 $ ls -l /dev/disk/by-label/ |
52 lrwxrwxrwx 1 root root 10 2010-11-01 23:41 bin -> ../../sda3 |
54 lrwxrwxrwx 1 root root 10 2010-11-01 23:41 bin -> ../../sda3 |
53 lrwxrwxrwx 1 root root 10 2010-11-01 23:41 inst -> ../../sda2 |
55 lrwxrwxrwx 1 root root 10 2010-11-01 23:41 inst -> ../../sda2 |
54 lrwxrwxrwx 1 root root 10 2010-11-01 23:41 media -> ../../sdc5 |
56 lrwxrwxrwx 1 root root 10 2010-11-01 23:41 media -> ../../sdc5 |
|
57 |
|
58 $ sudo vol_id /dev/dm-2 |
|
59 ID_FS_USAGE=filesystem |
|
60 ID_FS_TYPE=ext3 |
|
61 ID_FS_VERSION=1.0 |
|
62 ID_FS_UUID=f7484fc9-75ec-4e46-8539-50b1e371b7ef |
|
63 ID_FS_UUID_ENC=f7484fc9-75ec-4e46-8539-50b1e371b7ef |
|
64 ID_FS_LABEL= |
|
65 ID_FS_LABEL_ENC= |
|
66 ID_FS_LABEL_SAFE= |
55 |
67 |
56 $ /sbin/blkid ## from 'e2fsprogs' package |
68 $ /sbin/blkid ## from 'e2fsprogs' package |
57 /dev/sdc2: UUID="46B6-1FD4" TYPE="vfat" |
69 /dev/sdc2: UUID="46B6-1FD4" TYPE="vfat" |
58 /dev/sdb2: TYPE="ntfs" UUID="BC48D3FD48D3B47C" LABEL="inst" |
70 /dev/sdb2: TYPE="ntfs" UUID="BC48D3FD48D3B47C" LABEL="inst" |
59 /dev/sda5: UUID="5240AED140AEBB5D" LABEL="music" TYPE="ntfs" |
71 /dev/sda5: UUID="5240AED140AEBB5D" LABEL="music" TYPE="ntfs" |