Question : how does LABEL work in /etc/fstab ?

I have a bunch of hard drives that I swap physically into my internal bay of my laptop.  I have issues especially when I run Gentoo with Ubuntu plugged in.  Gentoo seems to have a homicidal hatred for Ubuntu.

To fix this, I feel I realize I have to use UUID to detect the hard drives to mount them properly when not in the internal bay.  I have been trying to figure out how this LABEL facility works.. Is it possible to use UUID to detect a hard drive, and then give it a LABEL that will make sense to me (e.g. Ubuntu 10.04), or how does this LABEL thing actually work?

Answer : how does LABEL work in /etc/fstab ?

seting labels to ext2/ext3/ext4 is easy:
  e2label /dev/xxx TheNewShiningLabel
Regarding LVM you need to open the device with:

vgscan
vgimport <VolumeGroupname>    (VolumeGroupname from previous...)
after that you should have your lvm volumes in /dev/mapper/<whatever their name is>

When specifying UUID= or LABEL=  there should be NO " on those lines.
Random Solutions  
 
programming4us programming4us