Gentoo Archives: gentoo-user

From: "Stefan G. Weichinger" <lists@×××××.at>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers
Date: Fri, 27 Aug 2010 10:15:55
Message-Id: 4C779040.1090101@xunil.at
In Reply to: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers by Nikos Chantziaras
1 Am 27.08.2010 10:50, schrieb Nikos Chantziaras:
2
3 > Applying labels to your filesystems is trivial. Simply use the e2label
4 > utility (it's in the sys-fs/e2fsprogs package and installed by default,
5 > so there's nothing new to emerge). For example, if your hda1 is your
6 > root partition and your hda2 your swap, you can label them like this:
7 >
8 > e2label /dev/hda1 GentooRoot
9 > e2label /dev/hda2 GentooSwap
10 >
11 > Note: hda1, not just hda. You are labeling the filesystem on a
12 > partition, not the whole drive.
13
14 Would that work for raid-devices as well?
15
16 # /etc/fstab
17 /dev/md0 / ext4 noatime,nobarrier,nodiratime 0 1
18
19 Just curious ...
20
21 Umm, why not try it?
22
23 # e2label /dev/md0 gentooRoot
24 # ls /dev/disk/by-label/gentooRoot -l
25 lrwxrwxrwx 1 root root 9 27. Aug 12:14 /dev/disk/by-label/gentooRoot ->
26 ../../md0
27
28 cool ...
29
30 thx, Stefan