Actually DrakX already does something like this. When it does the scanning of the disks, it finds labels. Eg I have a partition that I call "iso" for iso images. This is nonstandard, but drakx finds it anyway. However, it does not do it for all the partitions, only for the older ones, but for native linux fs, at least ext2. Maybe the setting of the names is something that was done under my RedHat systems.
The right place I think would be to do it in the mount(2) API. Then all mounting would record the mounting name. Keld On Wed, Mar 06, 2002 at 09:31:51PM +0100, Keld J�rn Simonsen wrote: > On Wed, Mar 06, 2002 at 06:27:50PM +0100, Stephane Gourichon wrote: > > 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. > > > > > 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...) > > The last-mounted-directory seems like the better idea if that is already > integrated in some programs. Then others could make use of it too. > > Kind regards > keld
