2001-11-19 14:34:02

by Denis Vlasenko

[permalink] [raw]
Subject: Mount opts depending on fs type?

Since I frequently insert/remove hdds from my boxes,
I think it is useful to have conditional mount options
defending on type of detected fs type, something along the lines:

mount -O vfat:a,b,c -O ntfs:.... -o.... device dir

-O fs:opt[=val],opt[=val],...
Apply these options if filesystem 'fs' is autodetected on device
-o ...
Apply these always

A similar thing is probably needed for automounter.
Or maybe I am stupid and some script trickery could do it too...
--
vda