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.
I have done a lot googling and found some ways to automount my lovely USB flashdrive. However, I found that it does not work as I thought.
And I have no idea on locating the problem.
At the time when 'mount -a' is run, hotplug has still not been run so you can't automount at that point in time. I'd put a line to mount it in
/etc/rc.d/rc.local instead.
Do you mean that you are able to just unplug it without any umount/eject command?
yes, I just cd into /misc/mydevice and it is automatically mounted
then when I no longer use it, I cd to my home directory then it is automatically umounted
I wait one second before disconnect it, tough to make sure
If you use the default kernel, autofs is already compiled (as module) so you just :
installpkg autofs
then copy /usr/doc/autofs-xx.xx.xx/samples/auto* in your /etc, edit /etc/auto.misc to suit your
needs and start /etc/rc.d/rc.autofs
I use a konqueror link as icon in KDE so I just click on it to mount it and show the photos, when
I close the konqueror window, the usb camera is umounted
(I checked that with mount command without argument the first time)
if you use the flash drive alot, you could just make bash scripts that mount and unmount, and stick them on your desktop... assuming your using a window manager with desktop icons... but you get the idea.
Originally posted by Cedrik If you use the default kernel, autofs is already compiled (as module) so you just :
installpkg autofs
then copy /usr/doc/autofs-xx.xx.xx/samples/auto* in your /etc, edit /etc/auto.misc to suit your
needs and start /etc/rc.d/rc.autofs
I followed your instructions. And I copied rc.autofs.in into /etc/rc.d/ as there is none.
I rename the file to rc.autofs and chmod its permission with +x flag.
tried to start it.
No luck.
Error message:
tsun@sKex:/etc$ /etc/rc.d/rc.autofs
/etc/rc.d/rc.autofs: Unknown system, please port and contact autofs@linux.kernel.org
One more thing, I issued 'mount' to mount my usb flashdrive and found usbfs in the screen with command 'mount'.
Anything deal with that? (Usbfs, the name looks cool )
tsun@sKex:~$ mount
/dev/hda2 on / type reiserfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/hda1 on /mnt/hda1 type vfat (rw,umask=000,iocharset=utf8)
/dev/hdb1 on /mnt/hdb1 type vfat (rw,umask=000,iocharset=utf8)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /mnt/usb type vfat (rw,umask=000)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.