LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-19-2016, 02:21 PM   #1
mike_mck2
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 41

Rep: Reputation: 1
How does Mint automount work ?


I'm dual booting Slackware and Mint at the moment. I installed Mint to try to work out some printing issues I had, but I have now run across something I find to be very cool indeed.

Mint automounts my usb attached digital camera for me. I tried mounting it in Slackware, but really had no idea where to even begin trying to mount it. I don't mind manually mounting, if I can figure out how, but automounting is very nice.

I used to use Linux, specifically Slackware, years ago when Slackware was still with Walnut Creek, but for one reason or another eventually went back to single booting Win.

Now, I'm determined to get rid of win entirely, once and for all, which means I need to work out all the issues that I would normally end up booting back into win for. Getting pics of my digital camera is one of them.

Any help, advice, or tips greatly appreciated.

Last edited by mike_mck2; 02-19-2016 at 08:32 PM.
 
Old 02-19-2016, 02:52 PM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,125

Rep: Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297Reputation: 7297
What version of Slackware and what desktop are you using?
A complete install of Slackware and your camera should be automatically mounted.
In Slackware64-current and KDE 4.14.3, my camera is automatically mounted as a external storage device within seconds of plugging the cable into a USB port.

Last edited by cwizardone; 02-19-2016 at 02:56 PM.
 
Old 02-19-2016, 03:05 PM   #3
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
To enable auto-mounting in XFCE click on Applications---->Settings---->Settings Manager---->Removable drives and Media. Put a check mark beside the Removable Storage items you want to auto-mount. Done.
 
Old 02-19-2016, 03:16 PM   #4
mike_mck2
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 1
Ah, good points.

I am using Slackware64 -current, but i3 is my wm. I did use XFCE for awhile, but much prefer i3. I didn't think the wm would factor into automounting.
I did do a full install, and I'm using the Slackware Huge kernel. I used to compile my own kernel's, etc...but have since found that using the distro kernel leads to less problems in the long run.

I used lsusb, and that does list my camera, but it's not mounted, and I could not determine which device it would be for manually mounting it.

I prefer to use the CLI if at all possible, as I find it to be faster and easier to use.
 
Old 02-19-2016, 03:27 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Check dmesg to see what the device is likely called. If it is mtp/ptp based (rather than standard USB storage like a thumbdrive), it won't give you a drive designation (like /dev/sdd), but mtp-detect should dump a ton of info. With automounting, you'd also likely need to be a member of the proper group(s). The groups a standard user should be a part of are:

Code:
users lp floppy audio video cdrom plugdev power netdev scanner
These are added with the adduser script by pressing the up arrow when it asks.

Automounting both my phone (mtp) and thumbdrives works properly for me using KDE. I've never used i3, so I'm not sure how limited it is to the WM/DE, but it might be worth trying a different one to see if it is a configuration issue or a limitation of i3.
 
Old 02-19-2016, 03:40 PM   #6
siralucard
LQ Newbie
 
Registered: Feb 2013
Distribution: Slackware
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by mike_mck2 View Post
...I prefer to use the CLI if at all possible, as I find it to be faster and easier to use.
gphoto2 may be what you're looking for.
 
Old 02-19-2016, 03:40 PM   #7
siralucard
LQ Newbie
 
Registered: Feb 2013
Distribution: Slackware
Posts: 2

Rep: Reputation: Disabled
See http://www.linuxdevcenter.com/pub/a/...6/digicam.html
 
Old 02-19-2016, 04:19 PM   #8
mike_mck2
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 1
Okay, getting closer.

I switched over to XFCE, and it does indeed automount for me, as /dev/sdb1. I had checked dmesg, and this also showed it as being sdb1, but trying to manually mount it from the CLI gave me the error message that /dev/sdb1 does not exist!

Ideally, I want to be able to mount this and others myself, since I'm not always in X, and even when I am, i3 does not automount.


I can't seem to understand why it does not even exist from the command line, but it does according to which WM i'm using.
 
Old 02-19-2016, 04:51 PM   #9
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Back in i3, provide the relevant lines from dmesg for your device and your command used to try and mount the device with the error message. That might help us track down the issue.
 
Old 02-19-2016, 05:06 PM   #10
mike_mck2
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 1
Okay, made some progress thanks you guys/gals.

Ran lsmod and captured the output from the mounted and unmounted states:

Unmounted:

Module Size Used by
vfat 10415 0
fat 52764 1 vfat
uas 13331 0
usb_storage 51267 1 uas

Mounted:

Module Size Used by
vfat 10415 1
fat 52764 1 vfat
uas 13331 0
usb_storage 51267 2 uas

Those are the module differences, of course.

I also added a line to my /etc/fstab for mounting, using the same mount options that XFCE used:

/dev/sdb1 /media/usb vfat auto,rw,nodev,uid=0,gid=0,shortname=mixed,flush,uhelper=udisks2 0 0

So, it looks like I just need to load additional modules?
 
Old 02-19-2016, 05:13 PM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Modules should be handled automatically (plus, I don't see any difference between the unmounted and mounted entries). You certainly can put a line in your fstab, but if you have any other devices plugged in before you plug in your camera, it won't work. It'd probably be better to reference it by its UUID or label rather than /dev/sdb1, as those aren't as likely to cause conflicts.
 
Old 02-19-2016, 06:46 PM   #12
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
You might want to look at https://udisks.freedesktop.org/docs/latest/ and the udisks command.

Desktop environments register for D-Bus events that indicate disks available for mounting.
 
Old 02-19-2016, 07:17 PM   #13
mike_mck2
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 1
Ah, that udisks looks pretty interesting. I'll start delving into that now.

That's also a good point about the fstab entry. I had not considered that different devices might or might not be plugged in. I'll change it to reference the UUID.b

AHA! Too cool. Changed the fstab to reference the UUID, and now I can mount/unmount from the cli. Absolutely perfect!

My undying gratitude to all you guys/gals, you saved me hours of trial and error, and I still learned a lot. Progress is being made.

Last edited by mike_mck2; 02-19-2016 at 07:26 PM.
 
Old 02-20-2016, 06:50 AM   #14
jrigg
LQ Newbie
 
Registered: Jan 2016
Posts: 18

Rep: Reputation: Disabled
'lsblk -a' lists all block devices, including those plugged in to USB, and shows which are mounted or available for mounting.

Last edited by jrigg; 02-20-2016 at 10:19 AM.
 
Old 02-20-2016, 10:38 AM   #15
imitis
Member
 
Registered: Oct 2007
Location: Latvia, Liepaja
Distribution: Slackware
Posts: 92

Rep: Reputation: 29
in my wm setup i use devmon from udevil package https://slackbuilds.org/repository/1...?search=udevil
 
1 members found this post helpful.
  


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 do automount scripts work? flyinggeorge Linux - General 1 08-03-2013 11:01 AM
LXer: How to automount partitions in Ubuntu 13.04 and Linux Mint 15 LXer Syndicated Linux News 0 06-07-2013 07:01 AM
Disabling Nautilus automount for external hd on Mint 6 midnightreport Linux - Newbie 5 05-23-2009 05:24 PM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 12:34 PM
how to make automount work? jaan kaer Linux - Hardware 3 02-21-2004 07:20 AM

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

All times are GMT -5. The time now is 03:05 PM.

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