Re: Learned something new


Subject: Re: Learned something new
From: Justin Dieters (enderak@yahoo.com)
Date: Thu Mar 28 2002 - 15:52:49 AKST


perhaps if your drives were constantly being moved around for some reason..
or i would think you could also run into problems where your drives were
constantly being configured differently with cable select on ide if you had
something goofy going on.. or perhaps you wanted to let users only mount
'authorized' floppy disks, in which case you could specify to mount floppies
with only certain disk labels - although it would be easy to get around by
anyone with minimal knowledge or formatting a disk and access to a different
computer..

Justin

----- Original Message -----
From: "Mike Barsalou" <mbarsalou@aidea.org>
To: <aklug@aklug.org>
Sent: Thursday, March 28, 2002 3:16 PM
Subject: Learned something new

>
> 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
>

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



This archive was generated by hypermail 2a23 : Thu Mar 28 2002 - 15:51:39 AKST