Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've had this linux machine running for a few years now, no problems etc. Very happy.

Last night I did some updates and when I booted up this morning my dual screens were screwy so I updated the Nvidea driver with

the machine is running

Linux workstation.localdomain 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/Linux

The above is the only significant change.

I have an additional hard drive that mounts to /mnt/1TB

cat /etc/fstab

/dev/mapper/vg_workstation-lv_root /                       ext2    defaults        1 1
UUID=57473c69-4e82-450e-a0a2-9db51d10288c /boot                   ext2    defaults        1 2
/dev/mapper/vg_workstation-lv_home /home                   ext2    defaults,user_xattr        1 2
/dev/mapper/vg_workstation-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/sde1       /mnt/1TB        ext2    defaults    0 0

This fstab like the machine has been stable, not changed for some time but now each time the machine boots it changes is dev name for example sometimes it's found at /dev/sda1 and sometimes at /dev/sde1 ?? Weird?

I am able to manually mount the drive i.e. mount /dev/sda1 /mnt/1TB/ and the data is all there and usable but I would rather have the fstab mount it than me. What's gone wrong? What's got corrupted?


share|improve this question
up vote 10 down vote accepted

If your BIOS is detecting devices in a different order you can mount by label or by UUID. (You can see your /boot mount is already doing this.)

LABEL=filesystemlabel         /mnt/directory      type     options


UUID=uuidhere                 /mnt/directory      type     options

You can get the UUID with the blkid command or the label with e2label. (Assuming ext2/ext3.) If it has no label, you can set it e2label also, or tune2fs.

share|improve this answer
Thanks very much I used the LABEL suggestion. – Andrew May 8 '12 at 19:23
Aren't CentOS partitions defined by label (and now UUID) by default? – ewwhite May 9 '12 at 0:36
Every device does have a UUID but your filesystem doesn't have to have a label. It depends on if one was given when you mkfs'd. Still, the /etc/fstab entry can be created however you want. – Aaron Copley May 9 '12 at 14:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.