You are not logged in.

#1 2006-01-08 13:24:20

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

automount

Just thought i'd say somthing about the auto mount choices availiable.

I use to use submount which worked like a charm but then after about a
year of not using my computer I reinstalled arch. I read up on ivman, hal
and dbus and finally got it working but never worked 100 percent and
considering all i have is a cdrw and dvdrom it was just too much hassle.
I finally ditched ivman and went to autofs. It was alot less hassle but
still didn't work that great. I decided to go back to submount and
afterwards I thought geeze how easy can it get. You basically insall it
and the only changes you have to make is to the fsttab and it works
great with no glitches. I guess maybe im not a true linux geek cause
the less I have to tinker with stuff, the happier I am.

Much thanks to lanrat for his contribution submount pkgbuild found
here...

http://bbs.archlinux.org/viewtopic.php?t=5537

I had to change the mirror in the pkgbuild to...
source=(http://heanet.dl.sourceforge.net/sourceforge/submount/submount-0.9.tar.gz)

here's a copy of my fstab implemted for submount.

/dev/hdc /mnt/cdrw subfs fs=cdfss,ro,iocharset=iso8859-1,umask=0 0 0
/dev/hdd /mnt/dvdrom subfs fs=cdfss,ro,iocharset=iso8859-1,umask=0 0 0
/dev/fd0 /mnt/floppy subfs fs=floppyfss,iocharset=iso8859-1,sync,umask=0 0 0

Anyway, hope this helps sombody. I'm actually surprised submount isn't
part of the current arch packages considering how well it works and
how easy it is compard to the other automount options.


-- archlinux 是一个极好的 linux

Offline

#2 2006-01-11 23:32:51

xaos5
Member
Registered: 2005-12-30
Posts: 75

Re: automount

I was wondering what options for auto mounting where. I tryed out debian sarge and seen that feature in it, so I take it they are using submount. I'll probably try this out later.

Offline

#3 2006-01-12 00:58:11

lunke
Member
From: Sweden
Registered: 2005-05-21
Posts: 86

Re: automount

KDE and Gnome both have built in volume managers, gnome-volume-manager works great outside Gnome. Both requiring no configuration at all, only hal and dbus.

Another alternative is, as you said, Ivman.

Automounting isn't really kernel stuff, it should be handled in user space through hal/dbus.

Offline

#4 2006-01-12 15:43:53

hackmeister
Member
From: Easton, PA - USA
Registered: 2005-11-10
Posts: 35
Website

Re: automount

I've tried all the options and HAL & DBUS seem to work the best for me.


http://tllts.org - The Linux Link Tech Show

Offline

#5 2006-01-12 21:51:15

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: automount

hackmeister wrote:

I've tried all the options and HAL & DBUS seem to work the best for me.

Agreed.  I use KDE though.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#6 2006-01-13 00:19:48

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 671
Website

Re: automount

@ Leigh > did you give lanrat's custom udev rules a glinch ?

it's able to automount / unmount internal or external storage devices playing with Udev only smile


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#7 2006-01-17 13:55:57

hackmeister
Member
From: Easton, PA - USA
Registered: 2005-11-10
Posts: 35
Website

Re: automount

Snarkout wrote:
hackmeister wrote:

I've tried all the options and HAL & DBUS seem to work the best for me.

Agreed.  I use KDE though.

So do I and it works fine.


http://tllts.org - The Linux Link Tech Show

Offline

#8 2006-01-17 14:27:51

Snarkout
Member
Registered: 2005-11-13
Posts: 542

Re: automount

Works fine for me too - I should have made that clearer.  The KDE part of my comment was in reference to the fact that AFAIK, automounting in KDE Just Works as long as you have those two daemons running.  I imagine it's more difficult to get implemented in, say, fluxbox.


Unthinking respect for authority is the greatest enemy of truth.
-Albert Einstein

Offline

#9 2006-01-24 07:44:39

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: automount

kozaki wrote:

@ Leigh > did you give lanrat's custom udev rules a glinch ?

it's able to automount / unmount internal or external storage devices playing with Udev only smile

I read what lanrat has done. It sounds pretty cool. I'm assuming the rules
are ran as a script? This is very tempting! I'll give it a go and see what
happens. Thanks!


-- archlinux 是一个极好的 linux

Offline

#10 2006-01-24 14:46:15

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: automount

Commands are run from udev rules directly by udevd. Nothing else is necessary (no fstab or anything, filesystem type is "autodetected" before mounting). You just need to create rules file and restart udev with udevstart or just reboot.

Rules could be moved and grouppped to shell script(s) but I prefer to have only one file with everything in it.
Rules file can be customized and simplified too because I wanted to have both /mnt and /media links which is not a must.
Also I use a special mount options for vfat and all other filesystem types are mounted with a "general" mount rule. You can add options for other filesystems very easy.

The rules file looks scary but it's in fact very simple. And it never broke for me unlike other automounting solutions (submount was the second most stable and easy to configure solution according to my experience).

The only thing is udev rules don't work with cdrom/dvd eject button. AFAIR there is no "eject button pressed" event that udev could understand and use in the rule. So for cdrom I'm using modified auto-eject-cdrom utility. It's tiny and does the job but requires an entry in fstab. It works more or less like submount.
I hope some day I will be able to use the eject event in udev rules and forget about all windows-like solutions...

Offline

#11 2006-01-25 08:48:34

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: automount

Thanks for the info lanrat. I managed to get everything working but did
end up with cd's or dvd's not wanting to eject like you mentioned. Ugg.
When I run in kde it's no big deal though.  It does seem like alot of
work at first but isn't that difficult. Just getting the rules correct is the
biggest thing and I found tons of info on the net about udev and rules.

I'm not gonna give up on it even though submount worked flawless
for me. I have two hard drives and dual boot with two arch installs.
one i use with minimal software to keep it light and fast for running
cad software and the other I play with. if I mess one up it's alot
easier to recover from the other hardrive. If I was more linux techy
savy so to speak I would volenteer for testing new packages but im
still trying to get my first pkgbuild to work. I'm good at manipulating
prebuilt pkgbuilds but making one from scratch is'nt as easy as it
seems, at least for me hmm


-- archlinux 是一个极好的 linux

Offline

Board footer

Powered by FluxBB