[Linux-users] Mini rant: sda vs hda

Bill Campbell linux-sxs at celestial.com
Thu Oct 11 10:49:09 PDT 2007


On Thu, Oct 11, 2007, Collins Richey wrote:
>On 10/11/07, Bill Campbell <linux-sxs at celestial.com> wrote:
>> Now is there any comprehensible documentation on
>> how to set/use UUID?
>>
>
>I'm not aware of any. However, by the nature of UUID, it's not
>something you can set, rather it is calculated. In practicality, the
>ways to get the uuid are
>
>1. 'blkid /dev/xxxx'
>2. 'ls -al /dev/disk by-uuid. There is are directories
>/dev/disk/[by-id  by-label  by-path  by-uuid], and I presume these are
>created by udev or its siblings.

On the CentOS systems I've been working with recently, they refer
to disks by LABEL, which has to be set somewhere as in the
/etc/fstab file below.  The /boot/grub/menu.lst file has similar
things for the root file system.  I had assumed that they were
adding something to the disk's partitioning information with
these label names.

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/backroot         /backroot               ext3    noauto          0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=SWAP-hda3         swap                    swap    defaults        0 0
/dev/scd0               /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
/dev/hdc                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0

Bill
--
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

No man's life, liberty, or property are safe while the legislature is in
session. -- Mark Twain



More information about the Linux-users mailing list