On 6 Mar 2002, Guillaume Cottenceau wrote:

> Keld J�rn Simonsen <[EMAIL PROTECTED]> writes:
>
> > Wish: I have a number of file systems, and I would like
> > the install program to find them automatically. DrakX
> > already does so for standard partitions like / /home
> > /var etc. I thought if there was in the root of
> > each file system a .mount file that just contained the path
> > on which to mount it would save me grief and maybe 10 minutes
> > everytime I install. Just an idea.
>
> Is ".mount" just your guess/invention or something which is
> supposed to be a standard?

There is a more standard way: the filesystem volume label.
the -L option of mke2fs or tune2fs allows a 16 character-long volume
label.

ext2 and relatives also have a not-well-enough-known field, the
"last-mounted-directory", which is I guess an excellent candidate for
this purpose.

See in mke2fs or tune2fs :
        [-L volume-label] [-M last-mounted-directory]


We could consider that on modification of the fstab, the configuration
tools set the "last-mounted-directory" of the filesystems to the
directory where it is supposed to be mounted ?

This would give a precious hint for a smarter installer (and for some
rescue/upgrade tools, also, in case /etc/fstab is lost...)

See my next message, too (regarding Automatic mount).

-- 
St�phane Gourichon - Labo. d'Informatique de Paris 6 - AnimatLab
http://animatlab.lip6.fr - philo du dimanche http://amphi-gouri.org/

"Bonjour, je ne suis qu'une phrase entre guillemets dans une signature,
mais si vous me recopiez dans votre signature automatique d'e-mail,
alors je pourrai continuer � me reproduire comme un virus. Merci !"


Reply via email to