LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-04-2005, 04:09 AM   #1
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Rep: Reputation: 31
Automount Problems


I've got my Slackware installation almost the way I want it, but I'm a few steps away.
I used some udev rules to point my devices to precisely where I'd like them. In particular, I have devices /dev/cruzer_micro_256, /dev/jumpdrive_128, and /dev/lexar_sd_512.

So I began writing my autofs rules, following this page closely: http://www.greenfly.org/tips/usb_drive.html I got this far through my udev rules.

/etc/auto.master
Quote:
/var/autofs/removable /etc/auto.removable --timeout=2
/etc/auto.removable
Quote:
cruzer_micro_256 -fstype=vfat,uid=1002,gid=1002,umask=002 :/dev/cruzer_micro_256
jumpdrive_128 -fstype=vfat,uid=1002,gid=1002,umask=002 :/dev/jumpdrive_128
lexar_sd_512 -fstype=vfat,uid=1002,gid=1002,umask=002 :/dev/lexar_sd_512
The author of the above tutorial also has written a bash script /etc/hotplug/usb/usb-storage to symlink his devices where he'd like them. I'm not worried about that yet, although I'll make an attempt at that when I get the autofs working.

From what I understand, as soon as I access /var/autofs/removable, any devices that are attached should be mounted. So if my jumpdrive is plugged in, /var/autofs/removable/jumpdrive should be created. But this isn't the case. The devices themselves do work if I mount them manually, so I know there's a problem in the autofs process--can someone help?
 
Old 02-04-2005, 04:24 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Actually I access my devices with cd /misc/mydevice, I used auto.misc instead of your
auto.removable, so you may access your device with cd /removable/cruzer_micro_256, I don't know.

Why use auto.removable as it is auto.misc by default ?
When you install autofs package, it installs templates in /usr/doc/autofs-x.x.x/samples, so just copy
auto.master and auto.misc in /etc.
 
  


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
automount or something like that? e1000 Linux - Hardware 3 11-19-2005 12:31 AM
Problems with automount in FreeBSD auricle *BSD 4 08-08-2005 12:10 PM
Automount. How ? LinxNew Linux - General 6 05-12-2005 09:52 AM
automount cd problems Huntdawg Linux - Software 1 10-30-2003 04:26 PM
Using automount (yes or no) yapp Linux - General 6 09-17-2003 03:38 AM

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

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