LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-20-2009, 03:19 PM   #1
Allamgir
Member
 
Registered: Aug 2009
Posts: 50

Rep: Reputation: 17
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.
 
Old 08-20-2009, 04:10 PM   #2
KingX
LQ Newbie
 
Registered: Aug 2009
Location: San Jose, CA
Distribution: Slackware
Posts: 11

Rep: Reputation: 1
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

Last edited by KingX; 08-20-2009 at 04:11 PM.
 
Old 08-20-2009, 04:14 PM   #3
Allamgir
Member
 
Registered: Aug 2009
Posts: 50

Original Poster
Rep: Reputation: 17
Thank you! But do I have to run mount with "-t vfat" or can I just do "mount" on it's own.
 
Old 08-21-2009, 06:28 PM   #4
KingX
LQ Newbie
 
Registered: Aug 2009
Location: San Jose, CA
Distribution: Slackware
Posts: 11

Rep: Reputation: 1
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.
 
  


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
How to automount windows drives in fc7 siddhi817 Linux - Newbie 1 05-07-2008 12:21 PM
Automount USB drives in KDE Xeratul Linux - Software 5 05-21-2007 04:03 PM
automount dvd-rw, usb drives? darkangel29 Linux - Hardware 0 02-26-2007 01:08 AM
USB drives don't automount Ashrack Linux - Hardware 2 02-13-2007 01:22 PM
How to automount windows drives in FC6? S_VIN Fedora 3 11-24-2006 05:13 AM

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

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