LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2013, 06:48 AM   #1
tpprynn
Member
 
Registered: Oct 2013
Location: Kent, UK
Distribution: Debian
Posts: 63

Rep: Reputation: 0
Which .deb do I add to a 'standard iso' Debian install to get usb disks to automount


Using 64 bit Debian 7.2 on self-built AMD/nVidia pc and Atom N2800 type netbook. Installed from the 'standard' iso (no desktop, about 450mb).

I imagine that for some reason there is a missing package on my pc and netbook which deals with automounting pendrives and external hard drives. I have just about learnt this morning how to mount drives manually but I have about eight pendrives and can't imagine I need to do this every time. At the moment I'm using the file manager called Gentoo (not the distro) as I am trying to keep the system light and unspoiled by anything with gnome, gnome keyring or gtk3 in (everything else still works and looks fine as I am using the DWM window manager).

I have commented out the drive in fstab that can cause problems (as I understand it because it was the one used to install the OS). No difference with or without that hash though.
 
Old 10-28-2013, 08:57 AM   #2
zrdc28
Member
 
Registered: Dec 2007
Location: Alabama USA
Distribution: Slackware current
Posts: 309

Rep: Reputation: 55
Go to /etc/rc.local and put the commands that you use to mount the pens and add to it! That will mount them at boot up time.
 
Old 10-28-2013, 09:21 AM   #3
tpprynn
Member
 
Registered: Oct 2013
Location: Kent, UK
Distribution: Debian
Posts: 63

Original Poster
Rep: Reputation: 0
Worth a try but I felt fairly sure that wouldn't work. I think the window manager DWM bypasses some things that other WMs use, and /etc/rc.local does seem to be one of these. I've failed so far to get DWM to use some redshift settings too. Thanks anyway. Hopefully someone will know the missing package, that must be the easy way.
 
Old 10-28-2013, 11:51 AM   #4
tpprynn
Member
 
Registered: Oct 2013
Location: Kent, UK
Distribution: Debian
Posts: 63

Original Poster
Rep: Reputation: 0
The command 'sudo mount -t automount /dev/sdf1 /media/usb0' does work, possibly in conjunction with 'sudo adduser [my name] fuse' which I tried anyway having one NTFS drive. I just need to find out how to make it stick. There doesn't seem to be a dedicated DWM forum as such or I could get clarification.
 
Old 10-28-2013, 12:47 PM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Do not try zrdc28's solution: you don't want your system trying to mount a usb stick at boot up if there isn't one plugged in. And does rc.local still exist under systemd anyway?

Automounting is a feature usually controlled by a desktop: no desktop, then probably no automounting. Here's one man's solution, but it involves installing a bit of Gnome.
http://www.math.ucla.edu/~jimc/docum...cal-mount.html
 
Old 10-28-2013, 02:37 PM   #6
tpprynn
Member
 
Registered: Oct 2013
Location: Kent, UK
Distribution: Debian
Posts: 63

Original Poster
Rep: Reputation: 0
No desktop, no automounting - I think I understand that now. The linked solution I can't use because it would involve gnome-keyring I see, which is only slightly below dentists in my book of unliked things.

It was a bit foolish of me not to mention that I am using the Slim display manager, which has turned out to be relevant I think. I am now able to start the otherwise ignored Redshift (to alter some washed out colours on my monitor) from within its config file as there is space for... well, you can see where I've inserted Redshift below in this passage from /etc/slim.conf:

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
#login_cmd exec /bin/sh - ~/.xinitrc %session
login_cmd exec /bin/bash -login /etc/X11/Xsession %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
sessionstart_cmd bash -c 'redshift -l 51.4:0.4 -O 6800 -g 0.8:0.8:1.0'
# sessionstop_cmd some command

So I wonder if I can make a script, after brushing up on scripting, which I've found a strain, that will both start Redshift as above and also deal with the pendrives. I can substitute that where my Redshift line currently is.

I have also found udisks-glue which sounds promising going by the man page.

I'm assuming the many DWM users find a way round this anyway...

Last edited by tpprynn; 10-28-2013 at 03:36 PM.
 
Old 10-29-2013, 04:52 AM   #7
tpprynn
Member
 
Registered: Oct 2013
Location: Kent, UK
Distribution: Debian
Posts: 63

Original Poster
Rep: Reputation: 0
As udisks-glue did nothing I took an easy way out, but one that's not seemed to cause irritation. I've installed Thunar, which has brought a bit of Xfce in with it but nothing I can't ignore. A decent file manager that automounts disks. Redshift I've kept in slim.conf, so now all I need to do is get a clock and battery monitor on the panel/menu and then I can just get on with using a computer as a means to several ends without faffing under the bonnet or getting dragged further into an OCD nightmare, or worse still beginning to eye up the cobwebby Windows 7 DVD in the corner of the room. That's the theory anyway...
 
  


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
Can iso images for OS instalation boot from USB Flash Disks? esgol Linux - Newbie 6 08-01-2012 04:47 AM
[SOLVED] Is it possible to automount usb disks with acl enabled? nokangaroo Ubuntu 4 05-11-2011 09:43 PM
Can standard *deb files be installed in a nexenta install...? Alexvader Solaris / OpenSolaris 2 03-04-2011 05:07 PM
[SOLVED] Xubuntu 9.10 fresh install usb automount failure FAT: IO charset ISO-8859-1 not found morebass Linux - Newbie 4 03-02-2010 01: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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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