Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automounting in userspace with ivman
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 25, 26, 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
adrien1977
n00b
n00b


Joined: 03 May 2005
Posts: 38
Location: Chicago (US)

PostPosted: Thu May 19, 2005 3:24 am    Post subject: Reply with quote

Ok what I have realized is that when I open Konqueror and that I type media:/ in the address bar I can see all the mounted drives.
So when I insert my usb key i see the icon apear, then right click unmount safely, then I remove the usb key and the icon disapear.
Is it possible to do the same thing but on the desktop??
thanks
Back to top
View user's profile Send private message
guitarman
Guru
Guru


Joined: 26 Apr 2004
Posts: 307
Location: http://mattsbox.dyndns.org:81/

PostPosted: Wed Jun 01, 2005 4:44 am    Post subject: Reply with quote

Same here, if I put in a cdrom the icon will appear in media:/ and will disapear when I take out the disc so I also want the same to happen on my desktop. I tried going to the desktop properties and selecting the device icons but they only show up if i click on the cdrom in media:/ .
Back to top
View user's profile Send private message
sunder
n00b
n00b


Joined: 05 Feb 2004
Posts: 21
Location: Victoria, BC

PostPosted: Wed Jun 15, 2005 3:18 am    Post subject: Reply with quote

miip wrote:
How can I tell ivman to use captive-ntfs to mount a usb attached harddrive?


Please someone, help me out too. Captive works so well and so does ivman... it would be a shame if they couldn't play together. This might be useful too for other filesystems such as HFS taking precedence over HFS+ although I'm no longed trying to connect and ipod, so I don't know if this is still the case.
Back to top
View user's profile Send private message
RedIpS
n00b
n00b


Joined: 24 Jun 2005
Posts: 17

PostPosted: Fri Jun 24, 2005 12:23 am    Post subject: Reply with quote

Hello
im n00b ..... :P
Why when i run ivm nothink work ?? :(


Code:
[root@redips ~]$ ivman --nofork -d
ivman 0.6.0, http://ivman.sourceforge.net
Compiled against HAL 0.5.x or later
Running in system mode
manager.c:367 (ivm_run_command) Running: echo 0 > /proc/sys/dev/cdrom/lock
manager.c:830 (main) Running through rules for every current property.
manager.c:860 (main) Entering main loop.



dbus 0.33 hal 0.52 ivman from 0.6.0 to 0.6.4 :(
What i do wrong ??
Sorry for my english
Back to top
View user's profile Send private message
wizardofos
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 201

PostPosted: Sun Jun 26, 2005 7:05 am    Post subject: Reply with quote

What exactly doesn't work? What do you expect ivman to do?

I've one problem to: I have this in mv .ivman/IvmConfigActions.xml:

Code:

    <!-- autoplay video DVDs in Totem -->
    <ivm:Match name="hal.volume.disc.type" value="dvd_rom">
        <ivm:Option name="execdvd" value="totem dvd:// &amp;&amp; pumount $hal.volume.mount_point$" />
    </ivm:Match>


when I run ivman as user (no root instances) to test it:

Code:

ivman 0.6.4, http://ivman.sourceforge.net
Compiled against HAL 0.5.x or later
Running in user mode
manager.c:104 (discover_pmount_version) pmount does not accept --async
manager.c:130 (discover_pmount_version) pmount accepts -t <fs>
manager.c:161 (discover_pmount_version) pmount accepts -u <umask>
manager.c:990 (main) Entering main loop.

hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/v
olume_part_1_size_7750606848
IvmConfigCommon.c:131 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/vol
ume_part_1_size_7750606848 is /dev/hdc
IvmConfigCommon.c:233 (ivm_device_is_mountable) /dev/hdc appears to be mountable
manager.c:683 (ivm_media_changed) Attempting to mount /dev/hdc
manager.c:493 (ivm_run_command) Running: /usr/bin/pmount -u 0077  -t   /dev/hdc
Usage:

<pmount man page here>

** (ivman:7946): WARNING **: manager.c/711: Couldn't get mount point of /dev/hdc


The problem is that IvMan calls pmount with parameter -t and no Value for it. Without the "-t" it works...

fabian
Back to top
View user's profile Send private message
hunter3
n00b
n00b


Joined: 11 Jun 2004
Posts: 6
Location: germany

PostPosted: Mon Jul 04, 2005 6:50 pm    Post subject: Reply with quote

adrien1977 wrote:
Ok what I have realized is that when I open Konqueror and that I type media:/ in the address bar I can see all the mounted drives.
So when I insert my usb key i see the icon apear, then right click unmount safely, then I remove the usb key and the icon disapear.
Is it possible to do the same thing but on the desktop??
thanks


did you try kay http://kde-apps.org/content/show.php?content=25647
it pops up a dialog when you insert a cdrom, a usb-stick or another removable mass-storage, like windows xp.
the dialog asks you wether to open konqueror, or other actions.

works only with kde 3.40 or greater.
Back to top
View user's profile Send private message
pif
n00b
n00b


Joined: 08 Jun 2004
Posts: 33

PostPosted: Fri Jul 08, 2005 3:52 pm    Post subject: Reply with quote

Hi!


I have just upgraded ivman, hal and dbus from the gentopia overlay, but now nothing gets automounted anymore( I have pmount installed). The current versions are: ivman - 0.6.4, hal - 0.5.2 and dbus - 0.34.

This is what ivman shows when I start my external USB harddrive:

Code:

dogbert ~ # ivman --nofork -d
ivman 0.6.4, http://ivman.sourceforge.net
Compiled against HAL 0.5.x or later
Running in system mode
manager.c:493 (ivm_run_command) Running: echo 0 > /proc/sys/dev/cdrom/lock
manager.c:104 (discover_pmount_version) pmount does not accept --async
manager.c:130 (discover_pmount_version) pmount accepts -t <fs>
manager.c:161 (discover_pmount_version) pmount accepts -u <umask>
manager.c:960 (main) Running through rules for every current property.
manager.c:990 (main) Entering main loop.

hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_12c8_1f03_100000011BA9
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_12c8_1f03_100000011BA9_if0
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_12c8_1f03_100000011BA9_if0_scsi_host
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_12c8_1f03_100000011BA9_if0_scsi_host_scsi_device_lun0


I have noticed that now when I start hal-device-manager the volumes on the hard drives are not shown in the tree anymore(I remember that they used to show up before). I suspect that this could be the reason that they don't get automounted anymore(that hald does not report them).

Has anybody had this problem? Any ideeas ?

Thank you!
Back to top
View user's profile Send private message
mkrisch
n00b
n00b


Joined: 22 Nov 2004
Posts: 59

PostPosted: Tue Jul 26, 2005 7:14 am    Post subject: nautilus computer:// mount points Reply with quote

before i tried going down the gamin/hal/dbus/ivman/pmount path, nautilus had a nice feature where i would plug in a usb key, and a mount point icon would appear in the computer view of nautilus, and when mounted, as well as my desktop.

can anyone tell me how to get that back?

here's what i'm running:
Code:
[ebuild   R   ] sys-apps/hal-0.5.2  -debug -doc -pam_console +pcmcia 0 kB
[ebuild   R   ] sys-apps/dbus-0.34  +X -debug -doc +gtk +mono +python +qt +xml2 0 kB
[ebuild   R   ] sys-apps/ivman-0.6.4  -debug 0 kB
[ebuild   R   ] sys-apps/pmount-0.9.2  +crypt 0 kB
[ebuild   R   ] app-admin/gamin-0.1.2  -debug -doc 0 kB
[ebuild   R   ] gnome-base/gnome-volume-manager-1.3.2  +crypt -debug -doc 0 kB

devices automount and all that, but i miss the convenience of the nautlius mount point.

thanks
Back to top
View user's profile Send private message
Matteo Azzali
Retired Dev
Retired Dev


Joined: 23 Sep 2004
Posts: 1133

PostPosted: Sat Jul 30, 2005 3:31 pm    Post subject: Reply with quote

I'm using Kde 3.4 , standard fstab (never installed supermount).
I have a strange bug in ivman:
If I start it after boot, with fork=false and debug=true, it works. With error:
Code:

 * Starting Automounter...
10692: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file dbus-message.c line 1723.
This is normally a bug in some application using the D-BUS library.
libhal.c 1856 : Couldn't allocate D-BUS message

If THEN I kill it and restart with fork=ture and debug=false it works.

at restart, instead, fork =true will load but not automount CD or usb devices (seems eject is working),
fork=false will stop my kernel loading giving me the same error above .
_________________
Every day a new distro comes to birth. Every day a distro "eats" another.
If you're born distro, no matter what, start to run.
---- http://www.linuxprinting.org/ ---- http://tuxmobil.org/
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Fri Aug 05, 2005 9:32 am    Post subject: Reply with quote

Matteo Azzali wrote:
I'm using Kde 3.4 , standard fstab (never installed supermount).
I have a strange bug in ivman:
If I start it after boot, with fork=false and debug=true, it works. With error:
Code:

 * Starting Automounter...
10692: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file dbus-message.c line 1723.
This is normally a bug in some application using the D-BUS library.
libhal.c 1856 : Couldn't allocate D-BUS message

If THEN I kill it and restart with fork=ture and debug=false it works.

at restart, instead, fork =true will load but not automount CD or usb devices (seems eject is working),
fork=false will stop my kernel loading giving me the same error above .


Have the same thing starting ivman from user, in fact it seems to do automount, but this is the firse time i try ivman and i don't undertand all the things you said :)
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Fri Aug 05, 2005 10:59 am    Post subject: Reply with quote

I am usind ivman, dbus and hal from portage.
I see that some users has newer version but I am not able to find new ebuild, and versions from cvs from the first post doesn't work.. What can i do ?
Anyway, it seems to work, but i want to get the best i can have :)

EDIT:
As I can see from the ivman homepage there are a lot of new features, an no one of the crucial packet is in portage (like hal, dbus and ivman new versions)
Quote:

* 15 Jun 2005 - Ivman version 0.6.4 released! (http://prdownloads.sourceforge.net/ivman/ivman-0.6.4.tar.bz2?download) Changes from 0.6.3: fixed typo which may have broken pmount option detection for some people.


Latest stable Ivman - ivman-0.6.4 (http://prdownloads.sourceforge.net/ivman/ivman-0.6.4.tar.bz2?download). (Though newer, 0.6 branch is much more stable than 0.5 branch.)

Latest (possibly) unstable Ivman - nightly tarball (http://cvs.sourceforge.net/cvstarballs/ivman-cvsroot.tar.bz2).

Ivman 0.6.x depends on:

* HAL (http://www.freedesktop.org/wiki/Software_2fhal) (supports version 0.4.x and 0.5.x; for ACPI functionality, 0.5.x is required)
* GLib (http://www.gtk.org/) 2.6 or higher
* libxml (http://www.xmlsoft.org/) 2
* pmount (http://www.piware.de/projects.shtml) if you want to do automounting


Can someone tell me where i can get ebuilds or wich way i have to follow ?
Fede
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
mkrisch
n00b
n00b


Joined: 22 Nov 2004
Posts: 59

PostPosted: Tue Aug 09, 2005 12:03 am    Post subject: Reply with quote

federico wrote:
I am usind ivman, dbus and hal from portage.
I see that some users has newer version but I am not able to find new ebuild, and versions from cvs from the first post doesn't work.. What can i do ?

Can someone tell me where i can get ebuilds or wich way i have to follow ?
Fede

gentopia had the latest, but it appears to have been offline for the last week or so.
Back to top
View user's profile Send private message
Zanton
Apprentice
Apprentice


Joined: 16 Jan 2005
Posts: 277

PostPosted: Sat Aug 13, 2005 1:53 pm    Post subject: Reply with quote

hi all,
I'm in trouble with ivman :( I installed dbus, hal and ivman and made them start at the boot. I let the default configs.
Anyway, nothing works at all ^^ When I insert a dvd in my dvd recorder, it doesn't mount it automatically, but I can mount and umount it manually. If I plug in my usb stick, nothing happens. And I can't mount it manually, I got an error message saying /dev/sda does not exist.

Besides I want to run a user instance of ivman (as said in their wiki) but I get this error :
$ ivman
Ikke's Volume Manager, http://ivman.sf.net
15149: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file dbus-message.c line 1723.
This is normally a bug in some application using the D-BUS library.
libhal.c 1856 : Couldn't allocate D-BUS message

And I don't have this error as root.

I'm running fvwm and rox by the way.
Can someone help me ?
_________________
Zanton
Back to top
View user's profile Send private message
Havin_it
Veteran
Veteran


Joined: 17 Jul 2005
Posts: 1247
Location: Edinburgh, UK

PostPosted: Sun Aug 14, 2005 1:07 pm    Post subject: Reply with quote

Apologies if this was already addressed in this rather long thread, but:

I built kde3.4 without the 'hal' USE-flag, and now that I've more carefully read the KDE guide in the Handbook, I assumed this is why my CDs don't automount. In the KDE media:/ page I'm able to double-click and open them without mounting, but no automounting. However, when I run the command

Code:
USE="hal ${USE}" emerge --newuse -p world


...the only thing it wants to emerge is k3b.

So what's the meaning of this? Is the hal use-flag requirement stated in the Handbook bogus?

[NB: hald and ivman appear to be starting correctly, though I haven't done any debugging]

EDIT: Nevermind, it actually does work once I actually took the trouble to reboot. When I posted this I'd only just enabled the Desktop mount-icons in kcontrol. So I guess what the Handbook says is a crock, FWIW.
Back to top
View user's profile Send private message
Tanisete
Guru
Guru


Joined: 12 Mar 2004
Posts: 312

PostPosted: Wed Sep 07, 2005 9:29 pm    Post subject: Reply with quote

Hi to all!!

I'm trying to migrate to the new ivman 0.6.4, but i'm experiencing a few problems. When i plug in a usbstick, some mountpoints are mounted without wirte or read permissions to my normal users... But this does not happen with cd o dvds. Here is ivman output:

Code:
Sep  7 23:23:56 krynn ivman: New Device: /org/freedesktop/Hal/devices/volume_part3_size_676601856
Sep  7 23:23:56 krynn ivman: /org/freedesktop/Hal/devices/volume_part3_size_676601856 is /dev/sdb3
Sep  7 23:23:56 krynn ivman: /dev/sdb3 appears to be mountable
Sep  7 23:23:56 krynn ivman: Invalid match name: storage.removable
Sep  7 23:23:56 krynn ivman: Waiting for user mode Ivmans to mount...
Sep  7 23:24:01 krynn ivman: Attempting to mount /dev/sdb3
Sep  7 23:24:01 krynn ivman: Running: /usr/bin/pmount -u 0002  -t vfat  /dev/sdb3  usbdisk || /usr/bin/pmount -u 0002  -t vfat  /dev/sdb3


My IvmConfigBase.xml (here i put root as ivman starter user.... does this influde?)
Code:
?xml version="1.0" encoding="UTF-8"?>
<ivm:BaseConfig version="0.2" xmlns:ivm="http://www.eikke.com/ivm">
    <!-- Whether or not Ivman should daemonize itself.  Should almost always be true
         for the system-wide version of Ivman. -->
    <ivm:Option name="fork" value="true" />
    <!-- Whether or not to give debugging output.  Warning, this is very verbose! -->
    <ivm:Option name="debug" value="true" />
    <!-- pidfile to use to ensure that only one instance of Ivman will be running -->
    <ivm:Option name="pidfile" value="/var/run/ivman.pid" />
    <!-- user for Ivman to run as.  You can then setup sudo rules for this user. -->
    <ivm:Option name="user" value="root" />
    <!-- group for Ivman to run as. Should have permissions to run 'pmount'. -->
    <ivm:Option name="group" value="plugdev" />
</ivm:BaseConfig>


My fstab:

Code:
dev/kingston3          /media/kingston         vfat    defaults,noauto,users   0 0


Anyone can help me?

EDIT: in fact, i have discovered that this only happen with vfat partitions, that are in a rule for udev to rename them... so strange!!

EDIT 2: I tried to run ivman only as user, with the same result. The most strange thing is that the directory i have created for this device, after ivman mounts it has date of 1970!!

EDIT 3: Ok, my fault. I have to change the vfat umask and gid options in ivman. Now everything is ok again.

Thanks a lot!!
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1353
Location: Mississippi USA

PostPosted: Sun Sep 18, 2005 4:47 am    Post subject: Reply with quote

OK, houston we have a problem. I have been using supermount, stop *itchin, it was working fine for me OK. :P :lol: I noticed that udev updated the other night and I can no longer access my CDs. :cry: I guess it is time to switch to something besides supermount. I've been dreading this. I'm always afraid I will crash my rig or something when I do this.

Since the original post is sort of old, what are the steps to install it now? I notice that ivman is in portage so that is a plus. I don't like that cvs thing either, just thought I would throw that in the pot too. I tried it, no likey. Long story.

Basically, maybe Redeeman can give us a update, either to the original post at the beginning which would be best or here.

Any help or advice would be appreciated.

:D :D :D :D
_________________
My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1353
Location: Mississippi USA

PostPosted: Sun Sep 18, 2005 8:29 am    Post subject: Reply with quote

OK, I jumped in with both feet. I just emerged ivman and let it sort it out. Then I started the services it needed and it was acting a little strange at first but I think it got it sorted out after running a little bit. It wouldn't eject when I hit the button on the drive at first but after a bit it started to working fine. I also found out you have to hit that refresh button with Konqueror. It seems to cache it or something. Works fine with a console though.

I also had to update my kernel, so said the error from hal I think. If you run a not so recent 2.6 kernel, I hope you remember the kernel compile commands. :roll:

This is the part I like, it ran as a user just fine. I can see it in Konqueror or console as dale with no problem. Yea, my name is really Dale. :lol: :lol:

Anyway, so far so good. At least with ivman anyway. Now I have to go figure out what happened to my sound. It sort of don't work anymore. I'm not sure what happened to that. Drivers are in the kernel though.

Later

:D :D :D :D
_________________
My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case
Back to top
View user's profile Send private message
wizardofos
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 201

PostPosted: Thu Sep 29, 2005 1:18 pm    Post subject: Reply with quote

Hi

I use ivman for a couple of weeks now and discovered a problem: When I attach my 250g usbdisk with a 50g vfat and a 200g xfs partition on it, ivman doesn't mount it.

Code:

Sep 29 15:07:58 obsidian ivman: New Device: /org/freedesktop/Hal/devices/usb_device_d49_7100_B613Y8EH_if0_scsi_host_scsi_device_lun0
Sep 29 15:07:58 obsidian ivman: Running: logger `basename /org/freedesktop/Hal/devices/usb_device_d49_7100_B613Y8EH_if0_scsi_host_scsi_device_lun0` attached...
Sep 29 15:07:58 obsidian logger: usb_device_d49_7100_B613Y8EH_if0_scsi_host_scsi_device_lun0 attached...
Sep 29 15:07:58 obsidian ivman: New Device: /org/freedesktop/Hal/devices/storage_model_OneTouch_II
Sep 29 15:07:58 obsidian ivman: /org/freedesktop/Hal/devices/storage_model_OneTouch_II is /dev/sda
Sep 29 15:07:58 obsidian ivman: /dev/sda can't be mounted because it is not a volume
Sep 29 15:07:58 obsidian ivman: Running: logger `basename /org/freedesktop/Hal/devices/storage_model_OneTouch_II` attached...
Sep 29 15:07:59 obsidian logger: storage_model_OneTouch_II attached...
Sep 29 15:07:59 obsidian ivman: New Device: /org/freedesktop/Hal/devices/volume_uuid_f00fcd88_9ac2_4d99_92e8_19dd42fe0405
Sep 29 15:07:59 obsidian ivman: /org/freedesktop/Hal/devices/volume_uuid_f00fcd88_9ac2_4d99_92e8_19dd42fe0405 is /dev/sda2
Sep 29 15:07:59 obsidian ivman: /dev/sda2 appears to be mountable
Sep 29 15:07:59 obsidian ivman: Waiting for user mode Ivmans to mount...
Sep 29 15:08:04 obsidian ivman: Attempting to mount /dev/sda2
Sep 29 15:08:04 obsidian ivman: Running: /usr/bin/pmount -u 0002  -t xfs  /dev/sda2  usbdisk || /usr/bin/pmount -u 0002  -t xfs  /dev/sda2
Sep 29 15:08:04 obsidian ivman: Running: logger `basename /org/freedesktop/Hal/devices/volume_uuid_f00fcd88_9ac2_4d99_92e8_19dd42fe0405` attached...
Sep 29 15:08:04 obsidian ivman: New Device: /org/freedesktop/Hal/devices/volume_uuid_42D8_FC6E
Sep 29 15:08:04 obsidian ivman: /org/freedesktop/Hal/devices/volume_uuid_42D8_FC6E is /dev/sda1
Sep 29 15:08:04 obsidian ivman: /dev/sda1 appears to be mountable
Sep 29 15:08:04 obsidian ivman: Waiting for user mode Ivmans to mount...
Sep 29 15:08:04 obsidian logger: volume_uuid_f00fcd88_9ac2_4d99_92e8_19dd42fe0405 attached...
Sep 29 15:08:09 obsidian ivman: Attempting to mount /dev/sda1
Sep 29 15:08:09 obsidian ivman: Running: /usr/bin/pmount -u 0002  -t vfat  /dev/sda1  usbdisk || /usr/bin/pmount -u 0002  -t vfat  /dev/sda1
Sep 29 15:08:09 obsidian ivman: Running: logger `basename /org/freedesktop/Hal/devices/volume_uuid_42D8_FC6E` attached...
Sep 29 15:08:09 obsidian logger: volume_uuid_42D8_FC6E attached...


When I run "sudo pmount -u 0002 -t xfs /dev/sda1" (or /dev/sda2) for my self I get:
Code:

Error: device /dev/sda2 is not removable


Any suggestions?
Back to top
View user's profile Send private message
Aristona
n00b
n00b


Joined: 02 Oct 2005
Posts: 6

PostPosted: Sun Oct 02, 2005 9:32 am    Post subject: Reply with quote

Hi,

I would like to plug my sd card into my reader and dl the photos into digikam as easy as that. Now I had this working using autofs, but it stopped working when it somehow could not unmount the sd card anymore, putting it onto a higher sd?1 device everytime i reinserted it. (in Digikam you set a certain mount point for the download. so if that changes all the time.... )

Then I tried to do this whole hal dbus ivman thing on a fresh gentoo install and got it to work to some extent....

"STABLE" WAY:
First I went the "stable" way with the older hal dbus and IVMAN that you get when you don't unmask anything. and set hal as useflag
Sure enough the devices I plugged in showed up through media:/ in de konqueror... Klicking on them however brought up a window indicating that the device cold not be found in /etc/fstab /etc/mtab... No mounting.. :-( (This worked before in my old gentoo setup... :()
Furthermore the whole /etc directory gets filled up with files fstab.??? of zero bytes size.

"UNMASKED " WAY:
The Pmount option then seemed apealing.. Unmasked it ... had to unmask newer versions of hal dbus and ivman + deps as dependency .. did that.. I got it all installed.. and sure enough stuff got mounted (as root) in /media. However media:/ in kde does not work anymore due to the new hal dbus and ivman stuff. Reemerging kde against this new stuf will not work as it explicitly depends on older versions... with which pmount in turn won't work... A circular no go.

Furthermore, linux get really mixed up when it somehow soemtimes can't unmount certain drives. Next time you get a completely different mount point. I want it to be the same so that apps that depend on a non-changing mount point always work.

The guides found in the wiki etc do not seem to apply anymore.... is there any guide that would lead me to a correctly working automount system like it does in SuSE Linux? (Sure it works there, I tried myself!)

[/b]
Back to top
View user's profile Send private message
genstef
Retired Dev
Retired Dev


Joined: 13 Jun 2004
Posts: 668
Location: M/Bay/Germany

PostPosted: Mon Oct 03, 2005 7:06 am    Post subject: Reply with quote

there is a new masked kdebase-kioslaves ebuild which containss some patches to support the new dbus/hal api
Back to top
View user's profile Send private message
Erythro73
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2004
Posts: 78
Location: Saint-Jean-sur-Richelieu, Québec

PostPosted: Tue Oct 11, 2005 3:04 am    Post subject: Reply with quote

Do somebody know how to enable audiocd mounting with IVMAN? I can mount every data CD I want on /media/cdrom, but I can't mount an audio cd... Do I miss something?

Also, users can't go in /media/cdrom, even though I put the users argument in fstab, and tried to modify the media permissions...

With Fork = no and debug = yes...


Vampire lestat # ivman
Ikke's Volume Manager, http://ivman.sf.net
6699: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file dbus-message.c line 1723.
This is normally a bug in some application using the D-BUS library.
libhal.c 1856 : Couldn't allocate D-BUS message
IvmConfigActions.c:42 (ivm_device_is_mountable) (null) can't be mounted because it is not a block device

Any thought???

Thank you!
Back to top
View user's profile Send private message
Aristona
n00b
n00b


Joined: 02 Oct 2005
Posts: 6

PostPosted: Sat Oct 15, 2005 3:39 pm    Post subject: Reply with quote

I gat that working! it appeared to be a non-conformistic fsstab I was using and ivamn did not like that (missing 0 0 after each mount line)

Any way, With the new kde 343 it seemed ok to upgrade the whole hal dbus pmount system. It works with the new KDE but now somewho does not detect that I remove a card from the cardreader. I need to disconnect the whole cardreader for it to unmount the drives. The cardreader is built in, so that is rahter cumbersome. mounting is actually fine btw.

Anyone on how to detect the rremoval of cards again without removing the whole cardreader?

Aristona wrote:
Hi,

I would like to plug my sd card into my reader and dl the photos into digikam as easy as that. Now I had this working using autofs, but it stopped working w............ E Linux? (Sure it works there, I tried myself!)

[/b]
Back to top
View user's profile Send private message
roderick
l33t
l33t


Joined: 11 Jul 2005
Posts: 908
Location: St. John's, NL CANADA

PostPosted: Tue Oct 18, 2005 9:32 pm    Post subject: Reply with quote

Not sure if my problems are hal, dbus, ivman or kde related but I'm hoping someone can help with each. I'll outline them blow and followup with my settings.

When I insert a usb stick, it correctly shows the icon on the desktop, and mounts under /media as follows:

Code:
/dev/sda1 on /media/usbdisk type vfat (rw,noexec,nosuid,nodev,quiet,shortname=winnt,uid=105,gid=410,umask=0002)


UID 105 is:

Code:
ivman:x:105:410:added by portage for ivman:/dev/null:/bin/false


GID 410 is:

Code:
plugdev:x:410:rgreening,christine


My username is "rgreening", and I am a part of the plugdev group. I can successfully read/write to the stick, but I cannot unmount it.

Code:
/media/usbdisk is not in the fstab (and you are not root)


I get this from executing "umount" from the command line and from right-click on the usb icon on KDE desktop (safely unmount). It does unmount it properly if I simply remove the stick, but I was hoping for a safe removal (prevent data corruption).

How do I setup the system to allow me to unmount a usbdisk mounted via ivman/pmount? I believe I had this working under an earlier setup (prior to upgrading hal/dbus/ivman/kde to use pmount instead of fstab-sync).

That's the first problem. The next problem is that I no longer get the "cdrom" and "dvdrw" under KDE's media:/ KIOSLAVE.

If I insert a cd into my drive (/dev/hdc), hal/dbus/ivman mounts this as:

Code:
/dev/hdc on /media/hdc type iso9660 (ro,noexec,nosuid,nodev,uid=105,gid=410)


Previously, with fstab-sync, it mounted /dev/cdrom under /mnt/cdrom where /dev/cdrom was a udev generated symlink to /dev/hdc. Now, I can access it from /media/hdc, but KDE doesn't build the icon for the desktop (it did previously) and it doesn't show up in the media:/ devices. The same is true for my DVD-RW drive which is usb connected.

Can anyone offer suggestions?

Here are my specs:

KDE 3.4.3 (with the base KIOSLAVES)
Ivman 0.6.4 (I patched to correct for the pmount -t problem)
Dbus 0.36.2
Hal 0.5.4
Udev 070
Pmount 0.9.3-r3
Gentoo-Sources 2.6.12-r10

I also run ivman in userspace (in addition to running hal, dbus and ivman in the default runlevel). Here's the debug output for inserting/removing the various devices in question. Perhaps this will help:

Code:
rgreening@fortune ~ $ ivman -d

ivman 0.6.4, http://ivman.sourceforge.net
Compiled against HAL 0.5.x or later
Running in user mode
manager.c:104 (discover_pmount_version) pmount does not accept --async
manager.c:130 (discover_pmount_version) pmount accepts -t <fs>
manager.c:161 (discover_pmount_version) pmount accepts -u <umask>
manager.c:991 (main) Entering main loop.

hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_204_6025_noserial
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_204_6025_noserial_if0
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_204_6025_noserial_if0_scsi_host
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/usb_device_204_6025_noserial_if0_scsi_host_scsi_device_lun0
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/storage_model_Flash_Disk
IvmConfigCommon.c:131 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/storage_model_Flash_Disk is /dev/sda
IvmConfigCommon.c:148 (ivm_device_is_mountable) /dev/sda can't be mounted because it is not a volume
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/volume_uuid_8CCB_D141
IvmConfigCommon.c:131 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/volume_uuid_8CCB_D141 is /dev/sda1
IvmConfigCommon.c:233 (ivm_device_is_mountable) /dev/sda1 appears to be mountable
IvmConfigCommon.c:131 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/volume_uuid_8CCB_D141 is /dev/sda1
IvmConfigCommon.c:233 (ivm_device_is_mountable) /dev/sda1 appears to be mountable
hal_interface.c:142 (hal_device_property_modified) Mounted: /org/freedesktop/Hal/devices/volume_uuid_8CCB_D141
hal_interface.c:157 (hal_device_property_modified) Devices table has 1 entries
hal_interface.c:279 (print_device)      "/org/freedesktop/Hal/devices/volume_uuid_8CCB_D141"    "/media/usbdisk"
IvmConfigCommon.c:131 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/volume_uuid_8CCB_D141 is /dev/sda1
IvmConfigCommon.c:233 (ivm_device_is_mountable) /dev/sda1 appears to be mountable

hal_interface.c:62 (hal_device_removed) Device removed: /org/freedesktop/Hal/devices/volume_uuid_8CCB_D141
manager.c:768 (ivm_umount_if_needed) Umounting /media/usbdisk
Error: could not determine real path of the device: No such file or directory
hal_interface.c:62 (hal_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_204_6025_noserial_if0_scsi_host_scsi_device_lun0
hal_interface.c:62 (hal_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_204_6025_noserial_if0_scsi_host
hal_interface.c:62 (hal_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_204_6025_noserial_if0
hal_interface.c:62 (hal_device_removed) Device removed: /org/freedesktop/Hal/devices/storage_model_Flash_Disk
hal_interface.c:62 (hal_device_removed) Device removed: /org/freedesktop/Hal/devices/usb_device_204_6025_noserial

hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/volume_part_1_size_3784343552
IvmConfigCommon.c:131 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/volume_part_1_size_3784343552 is /dev/hdc
IvmConfigCommon.c:233 (ivm_device_is_mountable) /dev/hdc appears to be mountable
IvmConfigCommon.c:131 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/volume_part_1_size_3784343552 is /dev/hdc
IvmConfigCommon.c:233 (ivm_device_is_mountable) /dev/hdc appears to be mountable
hal_interface.c:142 (hal_device_property_modified) Mounted: /org/freedesktop/Hal/devices/volume_part_1_size_3784343552
hal_interface.c:157 (hal_device_property_modified) Devices table has 1 entries
hal_interface.c:279 (print_device)      "/org/freedesktop/Hal/devices/volume_part_1_size_3784343552"    "/media/hdc"
IvmConfigCommon.c:131 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/volume_part_1_size_3784343552 is /dev/hdc
IvmConfigCommon.c:233 (ivm_device_is_mountable) /dev/hdc appears to be mountable

hal_interface.c:62 (hal_device_removed) Device removed: /org/freedesktop/Hal/devices/volume_part_1_size_3784343552
manager.c:768 (ivm_umount_if_needed) Umounting /media/hdc
Error: device /dev/hdc was not mounted by you


Do I need to write special ivman rules to tell it to generate /media/cdrom? And if so, will this allow KDE to correctly see it under the ioslave media:/?

Thanks to anyone who can help resolve my issues.
Back to top
View user's profile Send private message
firephoto
Veteran
Veteran


Joined: 29 Oct 2003
Posts: 1612
Location: +48° 5' 23.40", -119° 48' 30.00"

PostPosted: Tue Oct 18, 2005 10:10 pm    Post subject: Reply with quote

This is what I did for the first problem you describe. I posted in another thread.
Quote:

I added ivman to the kde Autostart folder so it would run on kde startup. You can just right click in the ~/.kde/Autostart folder and Create New.. Link to Application, then enter the name and on the Application tab just put /usr/bin/ivman on the Command: line. Say ok then click the link to start it and you can "Safely Remove" devices now.


Not sure about the second issue.

*edit
removed incorrect pmount.allow info
edit*
_________________
#gentoo-kde on freenode


Last edited by firephoto on Sun Oct 30, 2005 6:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
roderick
l33t
l33t


Joined: 11 Jul 2005
Posts: 908
Location: St. John's, NL CANADA

PostPosted: Wed Oct 19, 2005 11:55 am    Post subject: Reply with quote

firephoto wrote:
This is what I did for the first problem you describe. I posted in another thread.
Quote:

What I did was add my user name to /etc/pmount.allow and then I added ivman to the kde Autostart folder so it would run on kde startup. You can just right click in the ~/.kde/Autostart folder and Create New.. Link to Application, then enter the name and on the Application tab just put /usr/bin/ivman on the Command: line. Say ok then click the link to start it and you can "Safely Remove" devices now.


Not sure about the second issue.


Sounded promising, however, pmount is working. It appears as though KDE is calling umount and mot pmount to unmount the usb drive. THe error provided still appears after I made the changes you described above. In fact, I believe that since pmount was installed with group plugdev and the group is allowed to execute pmount with root priv, that this extra step is redundant (i.e. I am a member of the plugdev group).

Any other suggestions? Like I said, it appears as though KDE is using umount and not pumount for the usb drive and the safely remove option. Is this something that can be fixed in a config file or is this compiled in and a patch needed to be written?

Also, I ran pumount /media/usbdisk from the command line (which KDE should be using for the safely remove) and it works as expected.

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 25, 26, 27, 28, 29  Next
Page 26 of 29

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum