Am 27.08.2010 10:50, schrieb Nikos Chantziaras:

> Applying labels to your filesystems is trivial.  Simply use the e2label
> utility (it's in the sys-fs/e2fsprogs package and installed by default,
> so there's nothing new to emerge).  For example, if your hda1 is your
> root partition and your hda2 your swap, you can label them like this:
> 
>   e2label /dev/hda1 GentooRoot
>   e2label /dev/hda2 GentooSwap
> 
> Note: hda1, not just hda.  You are labeling the filesystem on a
> partition, not the whole drive.

Would that work for raid-devices as well?

# /etc/fstab
/dev/md0        /       ext4    noatime,nobarrier,nodiratime    0 1

Just curious ...

Umm, why not try it?

# e2label /dev/md0 gentooRoot
# ls /dev/disk/by-label/gentooRoot -l
lrwxrwxrwx 1 root root 9 27. Aug 12:14 /dev/disk/by-label/gentooRoot ->
../../md0

cool ...

thx, Stefan

Reply via email to