LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 12.2 automount external drives? (http://www.linuxquestions.org/questions/slackware-14/slackware-12-2-automount-external-drives-749116/)

Allamgir 08-20-2009 03:19 PM

Slackware 12.2 automount external drives?
 
I would like to have external drives like USB flash drives and external hard drives automounted to /media when I connect them. The problem is that I'm not using GNOME, KDE, Xfce, or any of the bigger desktop environments. In fact right now I don't even have a window manager installed, I'm just going straight from the framebuffer. I would like some kind of daemon or other software to run at boot to automount drives. Even after I do get a window manager set up, it will be minimal like XMonad or dwm, neither of which have software for this purpose.

When I used Arch Linux, there was something called skvm that a member of the community developed and put in the AUR. All I had to do was add "skvm" to the daemons list and it would start up at boot, automounting drives as I plugged them in. This worked perfectly, so hopefully there is something like this for slackware.

All of the searching I did led me to stuff that was either hard to obtain for slackware or didn't work on 12.2. Surely there are other slack minimalists out there. What do you do?


Even if I don't get automounting, whenever I plug in a USB drive nothing shows up in /media, so I don't know what to run the "mount" command on.

KingX 08-20-2009 04:10 PM

I am sure their are auto-mounting tools available for slack.. I personally don't use any, so can't help you their. But can help you in your mounting problem.

When you plug in a usb, you first need to find out what device node was given to it. Type the following command:
Code:

dmesg | tail
This will tell you where your drive is, as in is it /dev/sdc, /dev/sdb, etc.

Once you have that information, you would use the mount command as root (wait about 5 seconds after plugging in the device)
Code:

mount -t vfat /dev/assigned/to/usb /where/you/want/to/mount/it
Once you are done using it, and want to unplug it don't forget to run
Code:

umount /where/usb/was/mounted

Allamgir 08-20-2009 04:14 PM

Thank you! But do I have to run mount with "-t vfat" or can I just do "mount" on it's own.

KingX 08-21-2009 06:28 PM

The t switch is for "type", as in what "type" of filesystem is on the media that you are trying to mount. I always specify it, you can try mounting without the -t switch and see what results you get. :)


All times are GMT -5. The time now is 04:57 PM.