Skip to contentSkip to conversation

Mount opts depending on fs type?

DISCUSSION vda 1 participant 1 message Nov 19, 2001

lore
Share & tools
lore

vda

author
#0 lore raw

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