LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-24-2004, 02:23 AM   #1
cybersaga
LQ Newbie
 
Registered: Sep 2004
Location: Welland, ON Canada
Distribution: Slackware 10.0
Posts: 11

Rep: Reputation: 0
Automounting


So I've been spending the past few hours trying to figure out how to get automounting working when I should have been in bed with my wife. So I'll drop off a question and come back to it whenever it is that I'll get up, and hope there are some answers.

First of all, my understanding of automounting is when the disk goes in (or when it's needed) it's mounted. When I hit eject, it at least attempts to unmount and eject. I'm speaking mostly of CDs here.
I've looking into how to make it happen quite a bit. I thought autofs is the best bet, since I just upgraded to a 2.6.9 kernel yesterday, and noticed the autofs module is included. I managed to find an autofs script (now in /etc/rc.d/rc.autofs) from this thread. But from what I understood from that thread is, after setting up say, auto.rd as in his example, the cdrom's path would now be /mnt/rd/cdrom. Why the change? And is there a way to keep it the same old /mnt/cdrom?

What I basically need is a quick walkthrough of what should go in the auto.master and auto.* file(s) to make this all work. I have a CD-RW/DVD, CDROM and a floppy, and kernel 2.6.9 as I said above.
 
Old 12-24-2004, 11:01 AM   #2
cybersaga
LQ Newbie
 
Registered: Sep 2004
Location: Welland, ON Canada
Distribution: Slackware 10.0
Posts: 11

Original Poster
Rep: Reputation: 0
I've run into supermount too, which seems to be exactly what I want, except I can't find a patch for 2.6.9. Or rather, I did, but for 2.6.9-ck2 which confuses me even more.
Is this the patch I need, or is there another one?
 
Old 12-24-2004, 02:07 PM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
I use autofs to mount an usb camera and a nfs share

cp /usr/doc/autofs-3.1.7/samples/auto.misc /etc
cp /usr/doc/autofs-3.1.7/samples/auto.master /etc

auto.master :
/misc /etc/auto.misc

cat auto.misc :
olympus -fstype=auto,users,uid=501,gid=100 :/dev/olympus
sites -fstype=nfs,rw,rsize=8192,wsize=8192,hard,intr server:/home/web

So after /etc/rc.d/rc.autofs restart, the settings are taken in account
after that, when I cd /misc/sites the nfs share is mounted and when I cd /misc/olympus, the
usb camera is mounted (whith an help from udev to create /dev/olympus).

Last edited by Cedrik; 12-24-2004 at 02:09 PM.
 
Old 02-03-2005, 11:29 PM   #4
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Rep: Reputation: 31
Does the included 2.4.26 kernel support autofs?
 
Old 02-03-2005, 11:53 PM   #5
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Yes as modules, autofs or autofs4.
 
  


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
AutoMounting .???...............yes, Again :) hamoksh Linux - Newbie 7 08-15-2003 02:07 PM
automounting?? graffitici Linux - Hardware 6 07-04-2003 03:58 AM
AutoMounting dkc_ace Linux - Hardware 2 05-13-2003 01:57 PM
Automounting vector Linux - General 4 03-19-2003 05:00 PM
automounting cornelius Programming 3 07-05-2002 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:41 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