You are not logged in.

#1 2010-07-10 13:51:57

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

What do YOU use to automount?

Hi, big_smile

This is half a poll and half a support topic.

I would like to know what Archers use to automount removable devices like CDs, DVDs, USB devices and SD cards, since HAL has been deprecated.

I've used thunar-volman (which uses hal) for a long time, and I would like to get exactly the same behaviour (insert device, automount, user can umount), just without using thunar and HAL (my file manager is vifm, atm).

The best solution appeared to be Udev rules, but actually I found that CDs and DVDs do not automount at all. In addition I found that there were several time and permissions issues when using rsync on these drives.
I don't know if this is just due to bad-written rules or there's some Udev limit but unfortunately I don't have the knowledge to investigate further.

I've also taken a look at Autofs but it doesn't seem to be what I'm looking for as it doesn't allow dynamic automounting of devices, but instead requires statically configured mountpoints.

As a result, I now start thunar --daemon at every login and even if this works perfectly I'm not satisfied for the reasons posted above.

So my question is: how do you automount?
If you use Udev, what rules do you use?

Thanks everyone! smile

Last edited by rent0n (2010-07-10 13:52:07)


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#2 2010-07-10 14:14:09

lordmetroid
Member
Registered: 2009-09-27
Posts: 75

Re: What do YOU use to automount?

I generally do not find any problem mounting removable storage media manually so I do not use any automount nowdays. A few month ago I did use nautilus which I started when I wanted to mount and manipulate files however it never worked all that great so now I have no filemanager installed at all and does everything through xterm.

Last edited by lordmetroid (2010-07-10 14:15:29)

Offline

#3 2010-07-10 14:17:55

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: What do YOU use to automount?

usb: one of the udev rules from our wiki
cd/dvd: access /dev/sr0 directly for burn/rip/playing and just mount manually for the occasional data disc

Offline

#4 2010-07-10 14:22:39

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: What do YOU use to automount?

I use pcmanfm-0.5.2 with HAL. Just because HAL is deprecated does not mean we need to stop using it right this second. It works, that's what matters. Once pcmanfm-1.0 is released, with it's direct udisks support, I'll check that out. But really, I don't see any need to rush away from HAL.

Offline

#5 2010-07-10 16:20:33

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: What do YOU use to automount?

udev rules for usb.

I find that I normally do not handle CD/DVD. And if I have to sometime, I just manually mount them.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2010-07-10 17:31:29

vik_k
Member
From: Pune, India
Registered: 2009-07-12
Posts: 227
Website

Re: What do YOU use to automount?

same here.

usb: udev rules (using brisbin33's automount script) ..actually thanks for that
cd/dvd: manual mounting


"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette

Offline

#7 2010-07-10 18:15:42

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,398

Re: What do YOU use to automount?

A full bloated kde4 desktop with device notifier plasmoid still using hal smile


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#8 2010-07-10 18:21:27

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: What do YOU use to automount?

usb: manually (actually, with an openbox keybind C+A+m)
dvd: manually with 'mount /dev/cdrom /media/dvd'

Offline

#9 2010-07-10 18:36:56

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: What do YOU use to automount?

Well, some interesting results!

@Gusar: you made a good point, I'll keep that in mind.

@brisbin33, @Inxsible, @vik_k: could you post / link / point me to the udev rule you're using for usb devices? I would need ntfs support and user umount but  I can't seem to find the right rule on the wiki.
Also, how do you manually mount CDs/DVDs? I mean, you have left uncommented the CD/DVD fstab entries or what?

@archman-cro: could you please post your openbox keybind for usb mounting?


rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686

Offline

#10 2010-07-10 18:39:48

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: What do YOU use to automount?

Offline

#11 2010-07-10 18:45:11

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: What do YOU use to automount?

@rent0n: Sure thing!

    <!-- Keybinding for mounting usb from /dev/sdb1 -->
    <keybind key="C-A-m">
      <action name="Execute">
        <execute>sudo mount -o rw,noauto,async,user,umask=1000 /dev/sdb1 /media/usb</execute>
      </action>
    </keybind>
  </keyboard>

I use this for sdb1 node cause it always mounts there.

Offline

#12 2010-07-10 18:45:12

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: What do YOU use to automount?

I use the first rule in the link provided by anonymous_user.

No my fstab entries for CD and DVD are still commented. I just manually mount a CD using the mount command. The thing is, I find myself using CDs and DVDs so less that I haven't has an issue with it.

Most times, when I used to put in a CD, its to burn an Archlinux iso for my old computers which did not support usb booting. Now my newer computers support usb booting, so even burning Arch isos is no longer used by me.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#13 2010-07-10 19:02:47

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: What do YOU use to automount?

@archman-cro - Im guessing you added the mount command to the sudoers file right? Otherwise you wouldn't be able to enter your password.

Offline

#14 2010-07-10 20:39:52

vik_k
Member
From: Pune, India
Registered: 2009-07-12
Posts: 227
Website

Re: What do YOU use to automount?

@rent0n checkout brisbin33's automount script, it contains the rules itself & some other good features.

however for unmounting, i have allowed it through sudo but you can also use pmount as stated in the wiki.

hope that helps...

Last edited by vik_k (2010-07-10 20:40:59)


"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette

Offline

#15 2010-07-10 23:26:16

useradded
Member
From: Edinburgh, UK
Registered: 2010-05-15
Posts: 77

Re: What do YOU use to automount?

For usb I'm using udev rules produced from reading the wiki, forums, and google.  That problem is [SOLVED].

For cd/dvd I have found no automount solution.  Sure, as brisbin33 says, playing (music) CDs/burning/ripping doesn't require any mounting, just direct access to /dev/sr0, and the need to mount data CDs becomes less with every passing day.  But, BUT, it would be nice to have a post-HAL method of automounting optical disks.

Right now as a solution I have pmount installed and have emelfm2 mount/umount CDs/DVDs using pmount/pumount via right click - but this is not automounting and I don't, right now, know how I could set up an automount solution for CDs/DVDS sans HAL - I think this might be at the core of Rent0n's original question.


It's fine - and true for me - to say that "I use CDs so infrequently that it doesn't matter", but there really should be a way of automounting CDs/DVDs if necessary.  No doubt, as with everything in the Linux world, this will be resolved relatively quickly, but right now there is some confusion surrounding this issue, I think.   

Nothing in this thread so far has cleared this confusion up, at least for me.

Offline

#16 2010-07-10 23:36:36

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: What do YOU use to automount?

@anonymous_user: Exactly. USER   ALL = NOPASSWD: /bin/mount

Offline

#17 2010-07-11 01:33:38

vrkalak
Member
From: Santa Fe, NM, USA
Registered: 2010-02-04
Posts: 26
Website

Re: What do YOU use to automount?

I use either Xfce or a straight Openbox, this is how I 'mount'

I use PCManFM (file manager) and have installed "disk-manager" . . . I can easily access all partitions, USB, CD, external hard-drives through PCManFM.
Never had a problem opening anything, saving, moving files around ... everything works this way.

Last edited by vrkalak (2010-07-11 01:35:09)


Fluxbox Junkie!! | <Debian> <ArchLinux> | my DeviantART

Offline

Board footer

Powered by FluxBB