LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 07-10-2003, 12:41 PM   #1
hampel
Member
 
Registered: Jun 2003
Posts: 62

Rep: Reputation: 15
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
 
Old 07-10-2003, 04:47 PM   #2
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
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.
 
Old 07-11-2003, 08:46 AM   #3
hampel
Member
 
Registered: Jun 2003
Posts: 62

Original Poster
Rep: Reputation: 15
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?
 
Old 07-11-2003, 11:15 AM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
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. . .
 
Old 07-11-2003, 03:31 PM   #5
hampel
Member
 
Registered: Jun 2003
Posts: 62

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trick Yum volvogga Linux - Newbie 4 08-18-2005 05:53 PM
!(last command) trick? belorion Linux - General 5 07-03-2005 01:01 PM
a trick id like to learn czarherr Linux - Software 7 03-03-2004 05:05 AM
2 problem trick felipe_ced Linux - Newbie 1 08-20-2003 10:57 AM
How to trick a router Citizen Bleys Linux - Networking 4 01-31-2002 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration