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 ... 21, 22, 23 ... 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Pubare
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2003
Posts: 81
Location: Lafayette, LA

PostPosted: Sun Feb 20, 2005 1:37 am    Post subject: Reply with quote

Ok, decided to start over with the packet rule and use direct program calls instead of /etc/init.d/cdrw... But I think my approach to this is too simple-minded (as I said, I'm not a developer at all :) ). It seems to me that it should work, but I am pretty comprehension-limited.

Here are the rules I have defined in ConfigActions (note that I use non-standard mount points, goofy like that):

<!-- unlock all removable devices - harmless for devices without tray locking -->
<ivm:Match name="storage.removable" value="true">
<ivm:Option name="unlock" value="true" />
</ivm:Match>

<!-- try to mount any mountable volume at all -->
<ivm:Match name="ivm.mountable" value="true">
<ivm:Option name="mount" value="true" />
</ivm:Match>

<!-- don't mount blank cds in burner -->
<ivm:Match name="hal.block.device" value="/dev/hdc">
<ivm:Match name="hal.volume.disc.is_blank" value="true">
<ivm:Option name="mount" value="false" />
</ivm:Match>
</ivm:Match>

<!-- test rule for packet write support -->
<ivm:Match name="volume.disc.type" value="cd_rw">
<ivm:Match name="hal.volume.disc.is_blank" value="true">
<ivm:Match name="hal.volume.disc.is_rewritable" value="true">
<ivm:Option name="exec" value="kdialog --yesno 'Blank CD-RW inserted - would you like to format it UDF for packet writing?' &amp;&amp; /usr/bin/pktsetup pktcd /dev/hdc &amp;&amp; cdrwtool -d $hal.block.device$ -q &amp;&amp; mount /zdrives/cdrw &amp;&amp; kdialog --msgbox 'Format complete, CD-RW mounted at /zdrives/cdrw'" />
<ivm:Option name="execun" value="/usr/bin/pktsetup -d pktcd" />
</ivm:Match>
</ivm:Match>
</ivm:Match>

<ivm:Match name="volume.disc.type" value="cd_rw">
<ivm:Match name="hal.volume.fstype" value="udf">
<ivm:Match name="hal.volume.disc.is_rewritable" value="true">
<ivm:Option name="exec" value="/usr/bin/pktsetup pktcd /dev/hdc &amp;&amp; mount /zdrives/cdrw" />
<ivm:Option name="execun" value="/usr/bin/pktsetup -d pktcd" />
</ivm:Match>
</ivm:Match>
</ivm:Match>

And below is ivman debug-mode output for 3 different CD_RW situations:

With UDF (InCD) formatted CD_RW
Ikke's Volume Manager, http://ivman.sf.net
879: 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 becauseit is not a block device
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_22_0 is /dev/hdc
IvmConfigActions.c:58 (ivm_device_is_mountable) /dev/hdc can't be mounted because it is not a volume
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/block_InCD
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_InCD is /dev/hdc
IvmConfigActions.c:117 (ivm_device_is_mountable) /dev/hdc is mountable and willbe mounted if Ivman rules specify to do so
manager.c:454 (ivm_media_changed) Attempting to mount /dev/hdc
manager.c:339 (ivm_run_command) Running: /bin/mount /dev/hdc
hal_interface.c:142 (hal_property_modified) Mounted: /org/freedesktop/Hal/devices/block_InCD
hal_interface.c:157 (hal_property_modified) Devices table has 1 entries
hal_interface.c:260 (print_device) "/org/freedesktop/Hal/devices/block_InCD" "/zdrives/cdrom"
manager.c:595 (ivm_unlock_device) Tray of /dev/hdc unlocked
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_InCD is /dev/hdc
IvmConfigActions.c:117 (ivm_device_is_mountable) /dev/hdc is mountable and willbe mounted if Ivman rules specify to do so
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_InCD is /dev/hdc
IvmConfigActions.c:117 (ivm_device_is_mountable) /dev/hdc is mountable and willbe mounted if Ivman rules specify to do so
hal_interface.c:234 (hal_device_condition) /org/freedesktop/Hal/devices/block_InCD received VolumeMount but no action taken


With blank CD_RW
Ikke's Volume Manager, http://ivman.sf.net
1021: 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 becauseit is not a block device
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_22_0 is /dev/hdc
IvmConfigActions.c:58 (ivm_device_is_mountable) /dev/hdc can't be mounted because it is not a volume
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/block_22_0-0
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_22_0-0 is /dev/hdc
IvmConfigActions.c:109 (ivm_device_is_mountable) /dev/hdc can't be mounted because it is a disc with no data tracks


With blank CD_RW and rule for not mounting blank media commented out
Ikke's Volume Manager, http://ivman.sf.net
1026: 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 becauseit is not a block device
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_22_0 is /dev/hdc
IvmConfigActions.c:58 (ivm_device_is_mountable) /dev/hdc can't be mounted because it is not a volume
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/block_22_0-0
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/block_22_0-0 is /dev/hdc
IvmConfigActions.c:109 (ivm_device_is_mountable) /dev/hdc can't be mounted because it is a disc with no data tracks

It does mount UDF-formatted cd's (InCD or linux formatted) within the original scope of ivman - as a ro cd. So, either I understand this less than I thought I did (likely), I have something configured wrong (certainly not unlikely), or I'm taking the wrong approach to it (wouldn't surprise me at all). Anyone with better logic skills than mine care to comment?
Back to top
View user's profile Send private message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Sun Feb 20, 2005 2:35 am    Post subject: Reply with quote

g4c9z: OK, probably it's a good idea to make Ivman do the equivalent of "echo 0 > /proc/sys/dev/cdrom/lock" by default when it starts. Of course, the user will always be able to turn it off...

I'm holding off on releasing a new Ivman for now because a new DBUS and HAL are about to be released, and they won't be backwards compatible with the current versions. (for the curious, there's at least one significantly nice new feature of the new HAL - ACPI is represented in HAL, so Ivman will be able to detect when you hit the power button, close the lid on your laptop etc - it can replace acpid.) So, this change probably won't be made until the new HAL and DBUS are out.

Pubare: I'd like to help you, but I'm afraid I have absolutely no experience with DVD writers :-( I'm sure it can be done with Ivman, it's just a matter of figuring out the right rule. Do you have to start /etc/init.d/cdrw before mounting? Then, in the first set of rules you posted, this bit:

Code:

<ivm:Option name="exec" value="/etc/init.d/cdrw start &amp;&amp; mount /mnt/cdrw" />


...should be this...

Code:

<ivm:Option name="mount" value="false" />
<ivm:Option name="exec" value="/etc/init.d/cdrw start &amp;&amp; mount /mnt/cdrw" />


This will stop Ivman mounting it in the first place, it will only be mounted by your 'exec' rule instead. If you come up with rules that work, let me know and I'll put them in the default Ivman setup (as long as they don't stop it working for people who don't have a DVD writer :-))
Back to top
View user's profile Send private message
Pubare
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2003
Posts: 81
Location: Lafayette, LA

PostPosted: Sun Feb 20, 2005 3:28 am    Post subject: Reply with quote

Well, sorta got it fixed... Or, at least I'm starting to get on the right track. No time for details right now, gotta get ready for work (6 nights a week ATM, ugh). I'll post further details and the _working_ setup once I get it completely worked out - which I'm sure I will, what I lack in logic I make up for in persistence and method :) . Oh, and it's just a cd-rw not a dvd-rw, but for this, they are both the same thing ;)

Thank you rohan for the reply and for all the effort you have put into ivman.

PS - Is there a way to put a "Return" in the config files? If the cdrwtool command stays in the config, I'll need a return at the end of that line. Otherwise, I'll just figure out the proper options for mkudffs (which I should propably do anyway) and change it to a direct call to it.
Back to top
View user's profile Send private message
Ben2040
Guru
Guru


Joined: 07 May 2003
Posts: 445
Location: UK

PostPosted: Sun Feb 20, 2005 12:48 pm    Post subject: Reply with quote

Hi

This works brilliantly - I only read about it through your guide though. To install it i simply:
Code:

emerge dbus
emerge hal
emerge ivman

then,
Code:

rc-update add dbus default
rc-update add hal default
rc-update add ivman default

and finally:
Code:

/etc/init.d/dbus start
/etc/init.d/hal start
/etc/init.d/ivman start


And it "Just Worked" (TM). CD+DVD Recordables are handled fine, when unwritten and during writing, as well as DVD-RAM, my digital camera and my USB media reader.

Thanks very much!

Ben
Back to top
View user's profile Send private message
GlooM
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2003
Posts: 119
Location: $HOME

PostPosted: Sun Feb 20, 2005 1:56 pm    Post subject: Reply with quote

Little question:
I insert a blank cd, ofcourse ivman doesnt mount it, then i write some stuff on it, but to mount it i have to either eject and insert disc again or mount manually.
Maybe there's a way to make things easier ?
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Sun Feb 20, 2005 6:27 pm    Post subject: Reply with quote

GlooM wrote:
Little question:
I insert a blank cd, ofcourse ivman doesnt mount it, then i write some stuff on it, but to mount it i have to either eject and insert disc again or mount manually.
Maybe there's a way to make things easier ?


Ivman only mounts newly inserted media... I don't know whats so difficult about hitting the eject button twice.
_________________
I'm not a Guru, I just ask a lot of questions.
Back to top
View user's profile Send private message
Arainach
l33t
l33t


Joined: 08 Jul 2004
Posts: 609

PostPosted: Sun Feb 20, 2005 9:05 pm    Post subject: Reply with quote

GlooM wrote:
Little question:
I insert a blank cd, ofcourse ivman doesnt mount it, then i write some stuff on it, but to mount it i have to either eject and insert disc again or mount manually.
Maybe there's a way to make things easier ?
It's nearly impossible to detect changes to blank media in such a way. Windows doesn't detect the change either.
_________________
Gentoo: Stage3 w/ NPTL & udev, gcc 3.4.4 full rebuild
Kernel: 2.6.15-gentoo-r1 w/ 1G-Lowmem Patch
System: Athlon XP 2.2Ghz/1GB Corsair Value/160GB, 250GB WD IDE/128MB GeForce 6800/Sony 17" Trinitron G200 @ 1280x1024x75Hz
Back to top
View user's profile Send private message
ARC2300
Apprentice
Apprentice


Joined: 30 Mar 2003
Posts: 260
Location: Odenton, MD

PostPosted: Wed Feb 23, 2005 1:42 am    Post subject: Reply with quote

okey dokey. . .

As did one user, I simply emerged hal, dbus, and ivman. . .presto, stuff works. Yay!!

Question, though. . .after reading through and searching, it seems I can't find info on getting ivman to automount flash USB cards and/or Zip drives. Any clue as to how to do this?? Or any direction I could be pointed in to find out myself??

Thanks.
_________________
It's fun to take a trip
Put acid in your veins
Back to top
View user's profile Send private message
Pubare
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2003
Posts: 81
Location: Lafayette, LA

PostPosted: Wed Feb 23, 2005 8:08 am    Post subject: Partial udf packet-write support (hack) Reply with quote

Boy, lack of sleep will do strange things to your mind... I hate night shift and insomnia... Finally dawned on me that ivman could not do (entirely) what I was wanting. This is not its fault, its the way the kernel and udftools (in their current state) see udf-writing (DVD or CD) as 2 seperate block devices... Obviously, HAL and dbus aren't going to know anything about the virtual device (pktcdvd), so ivman can't utilize it (without a mapping, which would seriously mess some stuff up). So, with that said, I was able to hack in _partial_ support. I've set up ivman to 1) prompt to format a blank CD-RW disc on insertion, format and mount it, and 2) mount a udf-formatted CD-RW disc with packet write support. This is all in conjunction with the info found at http://gentoo-wiki.com/HOWTO_Packet_Writing_on_CD-RW and the forum thread at https://forums.gentoo.org/viewtopic-t-173263-postdays-0-postorder-asc-start-0.html . However, once the rules I've set up to get packet-write support are enforced, ivman looses contol of the device - i.e., the tray stays _locked_ until the volume is _manually_ umounted. Once ejected, ivman regains control and things go back to normal. So (rohan) I don't think this is worthy of inclusion in the sample rules. I think it would be good for the wiki, but I'll leave that to rohan's discretion - if he thinks it'd be good, he can put it there or ask me to:).

So, first off, make sure to read the Gentoo wiki on enabling packet-write support (link is in the rules comment). I've made this as generic as possible so minimal (if any) modification will be needed for users with KDE, but be sure to double-check the mount points and dev references. If you are using Gnome see http://ivman.sourceforge.net/wiki/Custom_Rules on how to set up zenity for prompting, for other WMs (or even Gnome for that matter) you can install dialog and simply change "kdialog" to "dialog". If you are using the init script from the packet wiki for cdrw, standard mount points, and a CD writer, you should be fine. For DVD writers you'll need to change the mount points, prompt text, and add a match "hal.volume.disc.type" value for DVDs (+ and/or -) - don't forget to close the match. Also, this will work with multi-burner systems with some further minor modification.

All of the rules go in the IvmConfigActions file (although, in retrospect using ConfigProperties may have been cleaner).

First, modify the "Don't mount blank media" rule to this:

<!-- don't mount blank media -->
<ivm:Match name="hal.volume.disc.is_blank" value="true">
<ivm:Match name="hal.volume.disc.is_rewritable" value="false">
<ivm:Option name="mount" value="false" />
</ivm:Match>
</ivm:Match>

Then, put this in for prompting to format and mount blank RW discs.

<!-- rules for partial packet write support. Ivman does NOT retain control of the drive if this rule
gets used - i.e., the tray stays locked until manually umounted. After umount and ejecting, control
passes back to ivman as normal. This is a hack meant to be used in conjuction with udftools.
See http://gentoo-wiki.com/HOWTO_Packet_Writing_on_CD-RW and
https://forums.gentoo.org/viewtopic-t-173263-postdays-0-postorder-asc-start-0.html for more info -->
<ivm:Match name="hal.volume.disc.type" value="cd_rw">
<ivm:Match name="hal.volume.disc.is_blank" value="true">
<ivm:Match name="hal.volume.disc.is_rewritable" value="true">
<ivm:Option name="mount" value="false" />
<ivm:Option name="exec" value="kdialog --yesno 'Blank CD-RW inserted - would you like to format it UDF for packet writing?' &amp;&amp; cdrwtool -d $hal.block.device$ -q &amp;&amp; mount /dev/pktcdvd/pktcdvd0 &amp;&amp; chmod -R 777 /mnt/cdrw &amp;&amp; kdialog --msgbox 'Format complete, CD-RW mounted at /mnt/cdrw'" />
</ivm:Match>
</ivm:Match>
</ivm:Match>

Remember, if you are not using KDE, the kdialog references in the second option line need to be changed (zenity or dialog, your choice).

Then, the next rule will automatically mount RW discs that are already udf formatted.

<ivm:Match name="hal.volume.disc.type" value="cd_rw">
<ivm:Match name="hal.volume.fstype" value="udf">
<ivm:Match name="hal.volume.disc.is_rewritable" value="true">
<ivm:Option name="mount" value="false" />
<ivm:Option name="exec" value="mount /dev/pktcdvd/pktcdvd0" />
</ivm:Match>
</ivm:Match>
</ivm:Match>

Very simple and straight forward, once I realized that complete dynamic management wasn't going to work (icluding loading and unloading the pktcdvd filter driver). Although, I might be able to come up with something with that mapping idea... Anyway, thanks to ivman, packet writing in Linux just got closer to being like using InCD.
Back to top
View user's profile Send private message
honigsalz
n00b
n00b


Joined: 05 Dec 2004
Posts: 39
Location: vienna, austria

PostPosted: Wed Feb 23, 2005 5:04 pm    Post subject: ivman won't start Reply with quote

i just merged hal, dbus and ivman (0.5_pre2)
when trying to start ivman i get the following error.
strange thing is also it seems ivman is kind of running - at least i can't stop hald anymore
Code:
root@tux rupi # /etc/init.d/ivman start
 * Starting Automounter...
18134: 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

root@tux rupi # /etc/init.d/ivman stop
 * Stopping Automounter...
No process in pidfile `/var/run/ivman.pid' found running; none killed.    [ !! ]
root@tux rupi # /etc/init.d/hald stop
 * Stopping Automounter...
No process in pidfile `/var/run/ivman.pid' found running; none killed.    [ !! ]
 * ERROR:  problems stopping dependent services.
 *         "hald" is still up.



any ideas?
Back to top
View user's profile Send private message
Ben2040
Guru
Guru


Joined: 07 May 2003
Posts: 445
Location: UK

PostPosted: Wed Feb 23, 2005 10:44 pm    Post subject: Reply with quote

ARC2300 wrote:
okey dokey. . .

As did one user, I simply emerged hal, dbus, and ivman. . .presto, stuff works. Yay!!

Question, though. . .after reading through and searching, it seems I can't find info on getting ivman to automount flash USB cards and/or Zip drives. Any clue as to how to do this?? Or any direction I could be pointed in to find out myself??

Thanks.


Hi

I should have noted that I emerged the ~x86 version (0.52 or something) which handles my USB media fine.

Not sure about Zip drives though, sorry...

Ben
Back to top
View user's profile Send private message
Rusty1973
n00b
n00b


Joined: 20 Jan 2005
Posts: 67
Location: Hamburg Germany

PostPosted: Thu Feb 24, 2005 12:58 pm    Post subject: Something strange Reply with quote

Hey there !

I just reloaded my Gentoo, because i was running 32bit on my Opteron System and somebody told me i should got the 64bit

Well it is working great !

sure i want to have back ivman ! and i started to change to udev and emerge dbus and hald

but i couldn't emerge ivman at all !

but ALL of my USB drives and my DVD and DVD-Ram are working fine without ivman !

Is there something fancy going on ?

Anyway ivman is a great pice of software and a big "thank you" to the developer

Mirko
_________________
I think Linux is able to replace Redmound's Software it is just a matter of time
"Vista just arrived and DRM will take place"

Some years ago it was "FREE KEVIN"
Today it is "FREE THE DESKTOP"
Back to top
View user's profile Send private message
g4c9z
Apprentice
Apprentice


Joined: 03 Jun 2004
Posts: 178

PostPosted: Thu Feb 24, 2005 6:42 pm    Post subject: Reply with quote

Quote:
Little question:
I insert a blank cd, ofcourse ivman doesnt mount it, then i write some stuff on it, but to mount it i have to either eject and insert disc again or mount manually.
Maybe there's a way to make things easier ?


I think this has nothing to do with ivman. Whenever I write a CD I have to eject and close the tray before mounting it, which I also find annoying. You say you can mount it manually without ejecting first? How?
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Sun Feb 27, 2005 3:24 pm    Post subject: Reply with quote

I receive a Segmentation Fault Error. Some Infos
Code:

*  sys-apps/ivman :
        [  I] 0.5_pre2 (0)
*  sys-apps/hal :
        [  I] 0.4.7 (0)
*  sys-apps/dbus :
        [  I] 0.23-r3 (0)


I'm running ivman both on startup (default runlevel) and in a xterm with fork set to off and debug set to true. root's ivman has default config. user's ivman is this way: IvmConfigActions.xml
Code:

    <ivm:Match name="hal.block.device" value="/dev/penna1">
         <ivm:Option name="exec" value="add-idesk Penna.lnk"/>
         <ivm:Option name="execun" value="rem-idesk Penna.lnk"/>
    </ivm:Match>


IvmConfigProperties.xml
Code:
    <ivm:Option name="checkOnInit" value="true" />
   
    <ivm:Match name="hal.block.device" value="/dev/penna1">
        <ivm:Property name="hal.volume.is_mounted">
            <ivm:Action value="true" exec="add-idesk Penna.lnk" />
            <ivm:Action value="false" exec="rem-idesk Penna.lnk" />
        </ivm:Property>
    </ivm:Match> 


This is what happens if i plug in my usb pendrive

Code:

Hal9000 onip $ ivman
Ikke's Volume Manager, http://ivman.sf.net
12234: arguments to dbus_message_new_method_call() were incorrect, assertion "pa
th != 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
12234: arguments to dbus_message_new_method_call() were incorrect, assertion "pa
th != 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
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/u
sb_device_ea0_2168_200_-1_142E41075F8200C6
IvmConfigActions.c:42 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/usb
_device_ea0_2168_200_-1_142E41075F8200C6 can't be mounted because it is not a bl
ock device
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/u
sb_usb_device_ea0_2168_200_-1_142E41075F8200C6_0
IvmConfigActions.c:42 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/usb
_usb_device_ea0_2168_200_-1_142E41075F8200C6_0 can't be mounted because it is no
t a block device
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/s
csi_host_0
IvmConfigActions.c:42 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/scs
i_host_0 can't be mounted because it is not a block device
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/s
csi_0_0_0_0
IvmConfigActions.c:42 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/scs
i_0_0_0_0 can't be mounted because it is not a block device
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/b
lock_8_0
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/blo
ck_8_0 is /dev/penna
IvmConfigActions.c:58 (ivm_device_is_mountable) /dev/penna can't be mounted beca
use it is not a volume
hal_interface.c:43 (hal_device_added) New Device: /org/freedesktop/Hal/devices/b
lock_5C60-4E2B
IvmConfigActions.c:46 (ivm_device_is_mountable) /org/freedesktop/Hal/devices/blo
ck_5C60-4E2B is /dev/penna1
IvmConfigActions.c:117 (ivm_device_is_mountable) /dev/penna1 is mountable and wi
ll be mounted if Ivman rules specify to do so
manager.c:339 (ivm_run_command) Running: add-idesk Penna.lnk
Segmentation fault


Any hints?

<EDIT> I'd like ivman to run "add-idesk" script when i plug in my usb key or if it is already mounted when ivman starts. And i want ivman to run "rem-idesk" when it is umounted.
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
transsib
l33t
l33t


Joined: 26 Jul 2003
Posts: 859

PostPosted: Sun Feb 27, 2005 7:20 pm    Post subject: dbus_message_new_method_call() ... what? Reply with quote

Hi all,

don't know where to find this or maybe I haven't found it among all the postings
here :

Code:
$ ivman
Ikke's Volume Manager, http://ivman.sf.net
13508: 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


When I started dbus and hal daemons and ivman there was no error messages whatsoever.

I've already solved a silly prob in my fstab: I've had /dev/SWAP instead of /dev/hda2 vor my
swap partition in there. So automounter couldn't find this and hung in runlevel 3 before reaching
the login prompt. So I had to boot with LiveCD and chroot and edit that there.

But this one leaves me clueless.
Please help!

transsib
Back to top
View user's profile Send private message
Pubare
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2003
Posts: 81
Location: Lafayette, LA

PostPosted: Sun Feb 27, 2005 11:28 pm    Post subject: Reply with quote

ARC2300: I'm not sure about the USB flash stuff, seems like there should be a way to make it work. However, zip and floppies won't work in ivman - dbus & hal have to detect media insertion for ivman to do its thing. Use submount (supermount replacement) from portage for zip and floppies.

honigsalz: That looks like you're running ivman in debug - if so, DON'T use /etc/init.d/ivman start to start it. Starting in debug should only be done from the console. And you can use zap to get the service to go down (/etc/init.d/ivman zap), then hal and dbus should go down ok. I've seen this type of error when I had one of the config files put together wrong - once I had missed a "hal" on one of my match statements, another time I didn't have an ending </match> for a rule. If you have altered any of your configs, double check them and post back with results.

Rusty1973: Are you using supermount (in-kernel patch) or submount (portage kernel module)? Both of those automatically mount media, but do it at the kernel level instead of in userspace. Your fstab line for those devices would reference either supermount or submount.

Onip: I assume you mean you're running root's ivman on startup with the default config and trying to debug the user ivman with the files in ~/.ivman? If so, try commenting out the rule you've made in IvmConfigActions - the "exec" option in that file gets passed to the mount command and execun gets passed to umount. So, basically you are trying to call "mount /dev/penna1 -o add-idesk Penna.lnk" . Having invalid exec or execun entries in ConfigActions will cause a segfault. The rule you have set up in ConfigProperties should work like you want, but I don't think ivman will be able to detect media that is already inserted when it starts up.

Transsib: That is not an issue with ivman to worry about, I always see that starting in debug mode as well. If that is the only error you see, everything should be fine.
Back to top
View user's profile Send private message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Mon Feb 28, 2005 1:57 am    Post subject: Reply with quote

Code:

13508: 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


Everyone can ignore the above, it's just a warning and it ultimately doesn't seem to affect anything. And I think it's HAL's fault, not Ivman's.

Onip: That's a pretty troubling bug... just FYI, you don't need those rules twice, with the way you've got it, each command will be executed twice (once when device is attached/removed, and once when mounted/umounted). Still, there's no reason why having those rules should cause a segfault :-( But I'd suggest keeping the Properties ones and removing the Actions ones, so the shortcut will be created even if you mount/umount outside of Ivman. (and it should also be created if Ivman is started with the disk already attached, since you have CheckOnInit=true .) (by the way, sorry Pubare, I'm afraid you are incorrect - it's mountoption options which are passed with -o to mount, not exec and execun :-))

Check the rest of your configuration files for XML mistakes, e.g., the characters &, < or >, or unclosed quotes or tags, etc. If you have the 'xmllint' command, you can do this by e.g. "xmllint --noout IvmConfigActions.xml", and if there's no output, all is well. Ivman really needs to handle bad XML better; I'm considering this a high priority now :-)

If there's definitely nothing wrong with your configs, then tell me, does the command actually run or not? (it's not clear from the output you gave whether Ivman segfaults before running, or after.) If it does run, what does it output if you run it manually, and what status code does it return to the shell?
Back to top
View user's profile Send private message
Pubare
Tux's lil' helper
Tux's lil' helper


Joined: 24 Nov 2003
Posts: 81
Location: Lafayette, LA

PostPosted: Mon Feb 28, 2005 3:13 am    Post subject: Reply with quote

Ah, errr... right. Sorry, and thanks. Wrong on, what, 3 things in one post? Gotta start getting some sleep or keep my mouth shut...
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Mon Feb 28, 2005 10:28 am    Post subject: Reply with quote

Now I've got a blank Action file and properties is as i posted before and it seems not to give me problems. I'll'have some more tries, but i think it's working right. .xml files were right i tested'em with that command an gave me no error.
with the configuration i had before, the command run and the icon appeared in my desktop, but after running add-idesk command then ivman would segfault.
Thanks
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
dencar
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2003
Posts: 108
Location: Noosa, Australia

PostPosted: Mon Feb 28, 2005 12:27 pm    Post subject: /etc/conf.d/ivman Reply with quote

The Wiki refers to /etc/conf.d/ivman, as does the earlier part of this thread, but I don't have it after installing ivman. Should it exist and, if so, where do I get it, please?
_________________
dencar
Back to top
View user's profile Send private message
Onip
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2912
Location: Parma (Italy)

PostPosted: Mon Feb 28, 2005 5:24 pm    Post subject: Reply with quote

there is no /etc/conf.d/ivman
Config files are /etc/ivman/IvmConfig*.xml for root and
/home/user/.ivman/IvmmConfig*.xml for user's instance of ivman
_________________
Linux Registered User n. 373835

Titus Lucretius Carus, De Rerum Natura - Tantum religio potuit suadere malorum
Back to top
View user's profile Send private message
transsib
l33t
l33t


Joined: 26 Jul 2003
Posts: 859

PostPosted: Mon Feb 28, 2005 7:01 pm    Post subject: Reply with quote

I've had a long workday today and couldn't look into the forum or my config files
until now.

rohan28 wrote:

Quote:

If there's definitely nothing wrong with your configs, then tell me, does the command actually run or not? (it's not clear from the output you gave whether Ivman segfaults before running, or after.) If it does run, what does it output if you run it manually, and what status code does it return to the shell?


Yeah, it just sits there doing nothing and I suppose ivman doesn't like my files or my fstab. Is it possible that there are
bad symlinks as well?

My fstab:

Code:
/dev/hda1      /boot      ext3      noauto,noatime      1 1
/dev/hda3      /      ext3      noatime         0 1
/dev/hda2      none      swap      sw         0 0
/dev/fd0      /mnt/floppy   auto      users,noauto,rw      0 0
/dev/hdc           /mnt/dvdrw   auto      users,noauto,rw      0 0
/dev/hdd           /mnt/cdrw   auto      users,noauto,rw      0 0


xmllint command returns nothing:

Code:
$ .ivman $ xmllint --noout IvmConfigActions.xml


Same for the other IvmConfigMappings.xml, IvmConfigBase.xml and IvmConfigProperties.xml; no output
returned on the shell.

Think I will have to have a thorough look into the files tomorrow.

Anyway, ivman just stops after
Code:
libhal.c 1856 : Couldn't allocate D-BUS message

on the shell and does nothing.:(

transsib
Back to top
View user's profile Send private message
transsib
l33t
l33t


Joined: 26 Jul 2003
Posts: 859

PostPosted: Tue Mar 01, 2005 1:59 pm    Post subject: Reply with quote

Could someone, anyone, please gracefully knock me on da head?!

Had to do something about my config files. And ivman works like
a charm :P .
It is fun fiddeling around with it. And I'm not finished fiddeling with
the configs yet.
Works without a glitch. I like ivman.

Edit on next morning:

I was a little overeager. Ivman worked after editing the config files but
when I rebooted libhal didn't find any mounting points. It checked every
gadget on the system and after floppy, which it couldn't find either it just
hung there and boot didn't reach the login prompt.

So here I had to go to the systems rescue again with the LiveCD. I had to
delete everything ivman and reemerge it.
Now the system boots fine but of course no ivman function in userspace.

Something is off with my config files or my fstab which I can't pinpoint right now.

I've posted part of my fstab earlier. Could anyone have a good guess here.
Am I beeing too silly for ivman?:(

It would help a lot if one of you would post a IvmConfigActions.xml as an
example. I suppose lshal is much more important than I thought up to now.

transsib
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 790
Location: under a car or on top of a keyboard

PostPosted: Wed Mar 02, 2005 1:59 pm    Post subject: Reply with quote

This is awesome. I had problems with the CVS builds (ie it didn't work), but I just tried the builds in portage again and it works great. Just out of curiousity, has anyone tried burning a dvd or cd on a drive managed by ivman? Will anything goof if I'm burning as a user and ivman tries to mount the drive as root?
Back to top
View user's profile Send private message
rohan28
Tux's lil' helper
Tux's lil' helper


Joined: 12 Dec 2004
Posts: 84
Location: Australia

PostPosted: Thu Mar 03, 2005 6:06 am    Post subject: Reply with quote

transsib: If your system isn't even booting, you've probably set Ivman not to daemonize. Look at /etc/ivman/IvmConfigBase.xml , fork should be true.
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 ... 21, 22, 23 ... 27, 28, 29  Next
Page 22 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