Search:  
Gentoo Wiki

Gentoo:/dev/disk/by-uuid

This directory is part of the Gentoo Structure index.
Parent Directory Children Related Links

About

UUID is the abbreviation for Universally Unique Identifier, see Wikipedia.

The files in this directory are symlinks to the /dev/hd* or /dev/sd* disk device files and can be used to persistent identify a device in configuration files.

To find the UUID for your device, use blkid, which is part the e2fsprogs package since version 1.26:

# blkid
/dev/hda1: UUID="1b50a494-c9e4-4d92-91a6-31b6662b7231" TYPE="ext2"
/dev/hda2: UUID="3eb9c4b5-fb87-4728-a5ae-5f06d40493bd" TYPE="swap"
/dev/hda3: UUID="0f19ba2a-8506-49a1-b23f-f8676727e54a" SEC_TYPE="ext2" TYPE="ext3"
/dev/sde1: LABEL="USB-120GB" UUID="3212-4c62" TYPE="vfat"

In configuration files use instead of the device file the UUID:

File: /etc/fstab
# <device file system>                    <mount point> <type>  <options> <dump> <pass>
/dev/hda1                                 /boot         ext2	defaults  0      2
UUID=1b50a494-c9e4-4d92-91a6-31b6662b7231 /boot         ext2	defaults  0      2

Children

Links

Retrieved from "http://www.gentoo-wiki.info/Gentoo:/dev/disk/by-uuid"

Last modified: Wed, 27 Aug 2008 04:11:00 +0000 Hits: 982