Subject: Learned something new
From: Mike Barsalou (mbarsalou@aidea.org)
Date: Thu Mar 28 2002 - 15:16:57 AKST
I found out today what the "label" entry in a fstab means. Here is an
example:
label=/ / ext2 defaults 1 1
The label=/ is a reference to the disk label on the drive. So if for
example you need to move root to /dev/hdb1 for some reason, you can label
the drive with:
e2label /dev/hdb1 /
And this will label that partition with / (it could be anything <16 chars)
when the machine boots up and reads the fstab, it will locate the root drive
as being the drive with the label /
You could change the fstab to look like this:
label=mike / ext2 defaults 1 1
Then run the e2label program:
e2label /dev/hdc1 mike
It would try and mount /dev/hdc1 as root.
Maybe someone with more experience can show how this is practical.
Mike
This archive was generated by hypermail 2a23 : Thu Mar 28 2002 - 15:18:45 AKST