Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-10-2003, 12:41 PM
|
#1
|
Member
Registered: Jun 2003
Posts: 62
Rep:
|
autofs trick
Hello!
First please take a look at my auto.master and auto.cdrom
auto.master
===========
/mnt/cdrom /etc/auto.cdrom --timeout=60
auto.cdrom
===========
cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
To view the files on a cdrom, i have to enter 'ls /mnt/cdrom/cd'.
Now i need a trick!
What must i write in the config files that it works with 'ls /mnt/cdrom/', too?
regards,
hampel
|
|
|
07-10-2003, 04:47 PM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
I would set it up like so:
auto.maser:
Code:
/mnt /etc/auto.misc --timeout=60
.
.
.
etc.
auto.misc:
Code:
cdrom -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
floppy -fstype=ext2,rw :/dev/floppy
.
.
.
etc.
Last edited by moses; 07-10-2003 at 04:50 PM.
|
|
|
07-11-2003, 08:46 AM
|
#3
|
Member
Registered: Jun 2003
Posts: 62
Original Poster
Rep:
|
Hello!
Yes but if i take your example code, i cannot see all my subdirectories in /mnt; eg. /mnt/win /mnt/zip /mnt/other are invisible if autofs is started!
So i would have to make entries for all subdirectories of /mnt in auto.misc!
Do you understand my problem?
|
|
|
07-11-2003, 11:15 AM
|
#4
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
Are you automounting all those other subdirs? If not, why not, and if so, why not put them all in the same config file?
As far as I know, you have to have a subdirectory under the mount point referenced in auto.master. Or, I suppose, you could change your auto.cdrom to be an executable program that mounts the drive on /mnt/cdrom, but that's not trivial. . .
|
|
|
07-11-2003, 03:31 PM
|
#5
|
Member
Registered: Jun 2003
Posts: 62
Original Poster
Rep:
|
Hello,
thanks for your help!
I have found the answer (i should first take a look at the man pages next time) in man 5 autofs:
UNSUPPORTED
The automounter does not support direct maps or mount trees (more than
one filesystem to be mounted under a specific automount point), and
handles SunOS‐style replicated filesystems only to the extent that
mount(8) does.
|
|
|
All times are GMT -5. The time now is 07:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|