SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
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.
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'
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.