On Aug 23, 2007, at 9:18 AM, kelsey hudson wrote:
I cannot stress enough:
Label your filesystems and mount by label.
If you have any filesystems you regularly use that are attached by
USB/Firewire, or you have several computers and occasionally juggle
hard drives between them, use filesystem UUIDs instead.
Both ext2/3 and XFS (and likely most filesystems in regular use in
Linux) support UUIDs. In my fstab at home, I have to uniquely
identify my pair of backup drives, since they're firewire, and
usually disconnected/off.
UUID=83999712-b060-4494-9a27-3a3c3eb8cb6f /export/backup1 xfs
noauto,defaults 0 0
UUID=d690e4b9-97ff-446e-bc57-0e1fe7ac3914 /export/backup2 xfs
noauto,defaults 0 0
For ext2/3:
[EMAIL PROTECTED](pts/1):~ 23 # tune2fs -l /dev/hda1 | grep UUID
Filesystem UUID: b1967d2e-1174-468a-ac9c-d81ee27d2928
For xfs:
[EMAIL PROTECTED](pts/1):~ 29 # xfs_admin -u /dev/hda5
UUID = ca91a421-1dc1-4406-b589-1af714ce1dc3
It's much better than using labels, because labels are duplicated
across systems, and mounting "LABEL=/" in /etc/fstab, when you
install a hard drive from a second system in order to recover data,
can cause serious problems. I really wish the distro vendors would
switch to mounting by UUID by default, as it guarantees that you're
really getting the filesystem you think you are. This is even more
important if you install multiple distributions on your system, and
they all want to mount by label.
Gregory
--
Gregory K. Ruiz-Ade <[EMAIL PROTECTED]>
OpenPGP Key ID: EAF4844B keyserver: pgpkeys.mit.edu
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list