Re: autofs example
Quoting Frank Trenkamp (letho@t-online.de):
> On Monday 12 February 2001 11:21, Hanno Böttcher wrote:
> > I think you mean to mount it on startup, right? So you have to edit
> > /etc/fstab.
>
> uhm, I think, actually he meant what he said. ;) I think Robin wants to
> access his Windows partition by not mounting it at startup, but rather only
> when needed, right?
Well, I too assumed they wanted it at startup. After all, it said:
I have a win98 partition on /dev/hdb1. I want to mount that automatically,
instead of explicitly using 'mount -t vfat /dev/hdb1 /win98'. I looked at
the docs for autofs but found it confusing. How do I do it?
I assumed they asked about autofs because they had assumed that's how
it *had* to be done.
Now I've never used automounting at all. What benefit does it confer
when used with a fixed partition? (I can see the virtues with
removable disks and remote machines like your NFS mount below.)
> root@caladan:~# cat /etc/auto.mnt
> gamont -rw,no_root_squash,rsize=4096,wsize=4096 gamont:/home
> win -fstype=vfat,uid=0,gid=100,umask=002 :/dev/hda2
> cdrom -fstype=iso9660,ro,uid=0,gid=100,umask=002 :/dev/scd0
> floppy -fstype=auto,nosuid,nodev,umask=002,uid=0,gid=100 :/dev/fd0
Cheers,
--
Email: d.wright@open.ac.uk Tel: +44 1908 653 739 Fax: +44 1908 655 151
Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer: These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.
Reply to: