On Sun, Sep 16, 2001 at 09:38:54PM -0400, Tom Oehser wrote:
> 
> There is probably an easier way, but certainly the first line of
> 'dumpe2fs' shows the volume label, perl would easily parse that.

Well, I did find another way to do it: "mount -l". Now to:

* rewrite the script to use that instead of parsing fstab, and then

* make sure it works correctly both with and without label
  support.

Drat.

It appears that the version of mount in tomsrtbt 1.7.316 does not
support labels (no -l option) but mke2fs does support them (the man
page indicates that the -L switch is there, but I haven't tried it
yet). That will do what I need on tomsrtbt, so I should be set,
assuming I can get the script to work correctly. We will see.

Thanks for your answer, though.

> 
> -Tom
> 
> On Sun, 16 Sep 2001, Charles Curley wrote:
> 
> > Date: Sun, 16 Sep 2001 19:32:49 -0600
> > From: Charles Curley <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: [tomsrtbt] labels in fstab
> >
> > Red Hat 7.1 (and possibly earlier versions) uses labels in fstab to
> > identify some hard drives instead of the hard drive file name in
> > /dev. So, for example, "LABEL=/boot" translates to /dev/hda1. Does
> > tomsrtbt understand these lables?
> >
> > Alternatively, in RH 7.1, is there any way to make that translation in
> > a perl script, so I can feed the device file name to my restore
> > scripts?
> >
> > Thanks
> >
> > --
> >
> >             -- C^2
> >
> > No windows were crashed in the making of this email.
> >
> > Looking for fine software and/or web pages?
> > http://w3.trib.com/~ccurley

-- 

                -- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley

PGP signature

Reply via email to