Re: Automounting USB drives

2011-05-23 Thread AG

On 19/05/11 13:30, Matt Harrison wrote:

I recently did a base install and then installed a handful of packages
to get myself X and Openbox running on my system using XFE for my file
manager.  I am running into an issue where when I plug my external
(NTFS) hard drive in to my machine, it is not automounting like it
would if I had XFCE installed first.  I added my user to the plugdev
group and I can manually mount it.  However, I would like to have it
automount again without having an entry in /etc/fstab.

Is there a volume manager I can install outside of the DE environment
to get this working again?  I have been searching for a couple of days
now but I have not found anything yet.

Thanks!
-Matt




This may/ not be appropriate to your needs, so FWIW, on my Gnome DE I 
have set up a USB FreeAgent drive which is automounted at bootup (I'm 
the only one using the machine) and refreshes at each login with a link/ 
icon set up to appear on my desktop.


If that's what you are after, then this may help.  This is how I get 
this to work, bearing in mind that some of these rules are to keep the 
drive loaded so that it is available, because these drives have a habit 
of spinning down apparently:


1. Download ntfs-3g from the repos

2. Set up rules
Change the text as you need to for the make, etc., of your drive then 
save as 85-usb-hd-fix.rules:


BUS=="scsi",KERNEL=="sd?",SYSFS{vendor}=="Seagate",SYSFS{model}=="FreeAgentDesktop",RUN+="/usr/bin/usbhdfix 
%k"


3. Write and save config file for usbhdfix

#!/bin/bash
echo 1024 > /sys/block/$1/device/max_sectors
echo 1 > /sys/block/$1/device/scsi_disk:*/allow_restart

4. Copy these 2 files to their respective places

sudo cp 85-usb-hd-fix.rules /etc/udev/rules.d/
sudo cp usbhdfix /usr/bin

5. Initialise

sudo /sbin/mount.ntfs-3g /sbin/mount.ntfs mount

This gives you an automounted usb drive with an icon on your desktop and 
that is always available to you.


I HTH

AG



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4dda5c66.4060...@gmail.com



Re: Automounting USB drives

2011-05-19 Thread Rob Owens
On Thu, May 19, 2011 at 08:30:04AM -0400, Matt Harrison wrote:
> I recently did a base install and then installed a handful of packages
> to get myself X and Openbox running on my system using XFE for my file
> manager.  I am running into an issue where when I plug my external
> (NTFS) hard drive in to my machine, it is not automounting like it
> would if I had XFCE installed first.  I added my user to the plugdev
> group and I can manually mount it.  However, I would like to have it
> automount again without having an entry in /etc/fstab.
> 
> Is there a volume manager I can install outside of the DE environment
> to get this working again?  I have been searching for a couple of days
> now but I have not found anything yet.
> 
Pcmanfm (a file manager) allows you to mount and unmount volumes by
clicking on them.  It's not automatic, but it's very easy.

I see "gnome-volume-manager" in the repositories.  Maybe it's possible
to install that w/o installing most of gnome?  You'd have to edit your
.config/openbox/autostart.sh file to make sure it runs on login.

-Rob


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110519235231.gb16...@aurora.owens.net



Re: Automounting USB drives

2011-05-19 Thread Brian
On Thu 19 May 2011 at 08:30:04 -0400, Matt Harrison wrote:

> Is there a volume manager I can install outside of the DE environment
> to get this working again?  I have been searching for a couple of days
> now but I have not found anything yet.

autofs has been mentioned. There is also thunar-volman, but thunar comes
with it and you may not want that. ivman is another possibility.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110519162513.GB3027@desktop



Re: Automounting USB drives

2011-05-19 Thread Javier Vasquez
On Thu, May 19, 2011 at 7:10 AM, Camaleón  wrote:
> On Thu, 19 May 2011 08:30:04 -0400, Matt Harrison wrote:
>
> (...)
>
>> Is there a volume manager I can install outside of the DE environment to
>> get this working again?  I have been searching for a couple of days now
>> but I have not found anything yet.
>
> If you don't want to manually deal with udev and its rules, you could
> consider "halevt" or "pmount".
>
> Greetings,
>
> --
> Camaleón

Notice autofs is a light and pretty good option...

-- 
Javier.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/banlktik-vubnjgd2ppeoewjovfq7efo...@mail.gmail.com



Re: Automounting USB drives

2011-05-19 Thread Camaleón
On Thu, 19 May 2011 08:30:04 -0400, Matt Harrison wrote:

(...)

> Is there a volume manager I can install outside of the DE environment to
> get this working again?  I have been searching for a couple of days now
> but I have not found anything yet.

If you don't want to manually deal with udev and its rules, you could 
consider "halevt" or "pmount".

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2011.05.19.13.10...@gmail.com