LinuxQuestions.org
Help answer threads with 0 replies.
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 08-25-2006, 01:49 PM   #1
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Rep: Reputation: 33
The basics of automounting


Hello all,
Over the past few days, I have been doing some research on how to go about automounting USB connected drives within Slackware. I have come across many topics that suggest the use of udev, pmount, and portmap to accomplish such tasks. I have been working with creating static links to devices with a udev script, but have had minimal success with this. Basically, what I would like to accomplish is the following:

1. Plug in a USB hard drive to an available USB port on my computer
2. Have Slackware automatically mount this USB drive and be able to access its contents by changing to its mount directory (such as typing in "cd /media/usbdisk" from the console)

That's pretty much all that I wish to accomplish, and would like to know the exact steps to take in order to enable this functionality. Thank you in advance.
 
Old 08-25-2006, 02:18 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You need to make sure you have autofs installed and running as a service.

You need to find out what is the partition that the usbdisk is being recognized as. It's usually /dev/sda1. Check by inserting it then watching the output in /var/log/messages and dmesg.

Modify /etc/auto.master and create /etc/auto.usbdisk as follows:

auto.master:

/media /etc/auto.media --timeout=60

auto.media:

usbdisk -fstype=vfat :/dev/sda1

Restart the autofs service then run 'ls /media/usbdisk'
 
Old 08-25-2006, 02:33 PM   #3
swampdog2002
Member
 
Registered: Jul 2005
Distribution: Slackware 12.2, 13.0, openSUSE 11.2
Posts: 400

Original Poster
Rep: Reputation: 33
Thanks for the reply. Is autofs something that appears within /etc/rc.d directory to start automatically, or is this a process somewhere else that needs to be installed? Also, for other USB drives, would I make them point to /dev/sdb1, /dev/sdc1, and so forth? Thanks in advance.
 
Old 08-25-2006, 03:00 PM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Yes it should be in /etc/rc.d if the package is installed and enabled. I usually just connect the and watch what device name it uses.
 
  


Reply

Tags
automount



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 cybersaga Slackware 4 02-03-2005 11:53 PM
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

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

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