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 ... 9, 10, 11 ... 27, 28, 29  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
grimjed
n00b
n00b


Joined: 20 Jun 2003
Posts: 20

PostPosted: Wed Sep 08, 2004 3:38 am    Post subject: Reply with quote

I managed to fix the eject button not ejecting an automounted CD. In my /etc/conf.d/ivman file I had set:

Code:
 export IVUSER="grimjed"

ie: non-root user. I set:
Code:
 export IVUSER="root"


and now the CD umounts and ejects properly. With export IVGROUP="users" , I haven't run into any other problems so far.

Just thought this may help someone. Can anyone tell me how I should set up permissions so that I can automount and umount CDs as per /etc/conf.d/ivman as a non-root user? This appears like a permissions problem to me.
Back to top
View user's profile Send private message
acdispatcher
n00b
n00b


Joined: 26 Feb 2004
Posts: 42

PostPosted: Wed Sep 08, 2004 6:55 am    Post subject: Reply with quote

I cant seem to get this to work

Wanted to make sure I had pure udev system. Steps I took:

/etc/config.d/rc -
RC_DEVICE_TARBALL="no"
RC_DEVFSD_STARTUP="no"

compiled my kernel with no devfs.

added gentoo=nodevfs to grub

booted to a live cd and deleted all files in the gentoo /dev directory(except null and console)

Then booted and wrote my own udev rule:
#RF Mouse
BUS="usb", SYSFS{product}="U+P RF Mouse Receiver", NAME="%k", SYMLINK="rodent"

plugged in my mouse - /dev/rodent appears unplug and its gone.

Does this mean I have a pure udev system? How else can I check? I read these pages:
http://www.reactivated.net/udevrules.php
http://webpages.charter.net/decibelshelp/LinuxHelp_UDEVPrimer.html#UDEV
http://www.gentoo.org/doc/en/udev-guide.xml

got everything to compiled ok.

#/etc/init.d/hald start
dbus starts up fine

#/etc/init.d/ivman start
I says Automount starting and "locks" up there. Waited 3 hours and no joy. cut the prog off then

#ivman
Ikke's Volume Manager, http://ivman.sf.net
nothing else just locks there.

tried
#dbus-monitor --system
loaded a cdrom - nothing
plugged in my mouse - /dev/rodent shows up in /dev
nothing from dbus-monitor --system

So I question is do I have a pure udev system. If not what is wrong or what else can I try?
_________________
Budget PC -
DFI NF3 250Gb Socket 754
AMD Sempron 3100+
1.5 GB Crucial DDR 400(PC 3200)
SAMSUNG 160GB SATA
NVIDIA 6600
Back to top
View user's profile Send private message
grimjed
n00b
n00b


Joined: 20 Jun 2003
Posts: 20

PostPosted: Wed Sep 08, 2004 1:31 pm    Post subject: Reply with quote

acdispatcher

Just a thought. I had a similar problem, but not identical. Check your settings /etc/ivman/IvmConfigBase.xml:

Code:
name="fork" value="true"
name="debug" value="false"


Sorry if this is an obvious one. I found with fork set to false and debug set to true, I could not start the ivman service. Just hung...
Back to top
View user's profile Send private message
acdispatcher
n00b
n00b


Joined: 26 Feb 2004
Posts: 42

PostPosted: Wed Sep 08, 2004 1:46 pm    Post subject: Reply with quote

grimjed

thanks that worked automount start now.

Still now joy getting it to mount.

I started up the dbus monitor

# dbus-monitor --system

pop my cdrom in and nothing

unplug and plug in my mouse - nothing

plug in a usb joystick - nothing

any ideas?


EDIT:
got this from my logs:

Sep 8 09:39:49 localhost ivman: IVM started
Sep 8 09:40:13 localhost kernel: ohci_hcd 0000:00:0f.0: wakeup
Sep 8 09:40:14 localhost kernel: usb 2-1: new low speed USB device using address 4
Sep 8 09:40:14 localhost kernel: usb 2-1: device not accepting address 4, error -110
Sep 8 09:40:14 localhost kernel: usb 2-1: new low speed USB device using address 5
Sep 8 09:40:14 localhost kernel: usb 2-1: device not accepting address 5, error -110
Sep 8 09:40:30 localhost kernel: usb 1-2: USB disconnect, address 4
Sep 8 09:40:30 localhost hal.hotplug[3502]: DEVPATH is not set
Sep 8 09:40:31 localhost hal.hotplug[3537]: DEVPATH is not set
Sep 8 09:40:34 localhost kernel: usb 1-2: new low speed USB device using address 5
Sep 8 09:40:34 localhost kernel: HID Mouse 0x27 forced to 2 ms polling
Sep 8 09:40:34 localhost hal.hotplug[3572]: DEVPATH is not set
Sep 8 09:40:34 localhost kernel: input: USB HID v1.10 Mouse [MOUSE SYSTEM U+P RF Mouse Receiver] on usb-0000:00:02.0-2
Sep 8 09:40:34 localhost hal.hotplug[3595]: DEVPATH is not set
Sep 8 09:44:01 localhost kernel: atkbd.c: Keyboard on isa0060/serio0 reports too many keys pressed.
Sep 8 09:44:01 localhost kernel: atkbd.c: Keyboard on isa0060/serio0 reports too many keys pressed.
Sep 8 09:53:06 localhost ivman: IVM stopped
_________________
Budget PC -
DFI NF3 250Gb Socket 754
AMD Sempron 3100+
1.5 GB Crucial DDR 400(PC 3200)
SAMSUNG 160GB SATA
NVIDIA 6600
Back to top
View user's profile Send private message
grimjed
n00b
n00b


Joined: 20 Jun 2003
Posts: 20

PostPosted: Thu Sep 09, 2004 12:11 am    Post subject: Reply with quote

Acdispatcher.

I'm sorry to say, no. I ran into a lot of problems getting this to work. I also did
Quote:
etc/config.d/rc -
RC_DEVICE_TARBALL="no"
RC_DEVFSD_STARTUP="no"
and got udev working. I've read every entry in this thread. I can only recommend you recheck your kernel settings. Check rc-update:
Code:
rc-update add dbus default
rc-update add hald default
rc-update add ivman default

I removed autofs:
Code:
rc-update del autofs default

Right now, in my /etc/conf.d/ivman I have:
Code:
export IVUSER="root"

and
Code:
export IVGROUP="users"


I find I can automount and umount data CDs with the CD eject button. Music CDs will automatically play but I can't eject (using the CD player's eject button.) I must su and issue the "eject" command. As I mentioned earlier, seems I have a permissions issue.
I have to admit, I wouldn't have the nerve to delete everything under /dev. I thought about it, but I didn't know the repercussions. I followed Redeeman's original guide and used his sources. I had to run the patch mentioned in Bug 468. The patch appeared to fix the difficulties I had. Sorry I'm not much help. Good luck.
Back to top
View user's profile Send private message
acdispatcher
n00b
n00b


Joined: 26 Feb 2004
Posts: 42

PostPosted: Thu Sep 09, 2004 2:30 am    Post subject: Reply with quote

Thanks again grimjed

but no joy here. I almost sure I have a pure udev system. Cant see how I dont. I did an original install as a udev system.

#dbus-monitor --system

still displays nothing when i do a cdrom,joystick,usb mouse, nada.

I'll use the old method
_________________
Budget PC -
DFI NF3 250Gb Socket 754
AMD Sempron 3100+
1.5 GB Crucial DDR 400(PC 3200)
SAMSUNG 160GB SATA
NVIDIA 6600
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Sat Sep 11, 2004 1:00 pm    Post subject: Reply with quote

does this already support USB-mass storage?
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
eikketk
Apprentice
Apprentice


Joined: 03 Jun 2003
Posts: 270
Location: Belgium

PostPosted: Sat Sep 11, 2004 3:16 pm    Post subject: Reply with quote

No

Ok, I'm back. I got another project too in the meantime (thanks redeeman), so I cant work fulltime on this.

Some people posted patches here: great, maybe I'll put them into CVS.

If (like those patch creators) some people in here know how to code (C) and are willing to work on this (you really dont have to be a guru), PLEASE let me know, I need people to work with. It is impossible for me to do this all alone. We got a new design ready, some parts of code have already been written... The glue still has to be done tough. So PLEASE PLEASE PLEASE contact me. It wont take much of your time.
If I don't find any co-devs maybe I'll be urged (SP?) to drop this project, caus its just impossible for me (due to Real Life things) to put all time needed to maintain this into it.

Thanks.
_________________
Working day and night to enhance the Linux Desktop Experience :)

Homepage
Back to top
View user's profile Send private message
Twink
Apprentice
Apprentice


Joined: 06 Dec 2002
Posts: 178
Location: New Zealand

PostPosted: Sun Sep 12, 2004 4:11 am    Post subject: Reply with quote

Hi, I'm trying to setup ivman on another machine since i liked it so much on my first but am having problems.

lshal gives

lshal version 0.2.97
libhal.c 696 org.freedesktop.DBus.Error.Servicedoesnotexist raised
"Server "org.freedesktop.Hal" does not exist"

is this because i've setup udev wrong? or something, i'm lost for ideas.
Back to top
View user's profile Send private message
eikketk
Apprentice
Apprentice


Joined: 03 Jun 2003
Posts: 270
Location: Belgium

PostPosted: Sun Sep 12, 2004 4:27 pm    Post subject: Reply with quote

Looks like hal isnt running at all
_________________
Working day and night to enhance the Linux Desktop Experience :)

Homepage
Back to top
View user's profile Send private message
Twink
Apprentice
Apprentice


Joined: 06 Dec 2002
Posts: 178
Location: New Zealand

PostPosted: Sun Sep 12, 2004 11:09 pm    Post subject: Reply with quote

/etc/init.d/hald start
*Warning hal has already been started

ps auxww | grep hal
returns nothing so i presume hal is crashing or exiting somewhere

hald --verbose=yes --daemon=no
11:08:31.175 [I] hald.c:386: hal 0.2.97
11:08:31.179 [I] hald.c:390: Will not daemonize
11:08:31.184 [E] hald_dbus.c:1946: dbus_bus_acquire_service(): Connection ":1.8" is not allowed to own the service "X{
" due to security policies in the configuration file

that could probably be due to the policy wanting it to be haldaemon (is it not started like that?)

so i changed /etc/dbus-1/system.d/hal.conf to allow root and it works fine.
Back to top
View user's profile Send private message
Config
Retired Dev
Retired Dev


Joined: 25 May 2003
Posts: 187
Location: Zurich, Switzerland

PostPosted: Tue Sep 14, 2004 9:09 am    Post subject: Reply with quote

I'm trying to get this to work on amd64 but have been out of luck so far.

First, hal-cvs fails to compile - this error doesn't look too serious, but the code just doesn't seem to be clean yet:
Code:
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_SYSCONF_DIR=\""/etc"\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALE_DIR=\""/usr//locale"\" -DPACKAGE_LOCALSTATEDIR=\""/var/lib"\" -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include      -O2 -pipe -march=k8 -fomit-frame-pointer -ftracer -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -c -o platform_bus_device.o `test -f 'linux/platform_bus_device.c' || echo './'`linux/platform_bus_device.c
linux/multimedia_class_device.c:98: error: redefinition of `struct v4l2_capability'


Second, when compiling, I get warnings about implicit function definitions:

Code:
tools/Makefile.am:25: fstab_sync_LDADD was already defined in condition TRUE, which implies condition HAVE_SELINUX_TRUE

  fstab_sync_LDADD (User, where = tools/Makefile.am:25) +=
  {
    TRUE => -lpopt $(top_builddir)/libhal/libhal.la
  }
Use of uninitialized value in hash element at /usr/bin/automake-1.6 line 8459.
Use of uninitialized value in list assignment at /usr/bin/automake-1.6 line 8448.
Use of uninitialized value in concatenation (.) or string at /usr/bin/automake-1.6 line 8449.
: warning: automake does not support fstab_sync_LDADD being defined conditionally
tools/Makefile.am:25: fstab_sync_LDADD was already defined in condition TRUE, which implies condition HAVE_SELINUX_TRUE

  fstab_sync_LDADD (User, where = tools/Makefile.am:25) +=
  {
    TRUE => -lpopt $(top_builddir)/libhal/libhal.la
  }
Use of uninitialized value in hash element at /usr/bin/automake-1.6 line 8459.
Use of uninitialized value in list assignment at /usr/bin/automake-1.6 line 8448.
Use of uninitialized value in concatenation (.) or string at /usr/bin/automake-1.6 line 8449.
: warning: automake does not support fstab_sync_LDADD being defined conditionally


Ideas?
_________________
Config - caught by a chronic disease called tuxmania....
Back to top
View user's profile Send private message
Raku
Bodhisattva
Bodhisattva


Joined: 28 Feb 2004
Posts: 2374
Location: Poland

PostPosted: Fri Sep 17, 2004 9:48 am    Post subject: Reply with quote

Hi,
I cannot make ivman to mount my CDs.
On logs I've got these:

Code:

Sep 17 11:39:48 demon ivman: New Device: /org/freedesktop/Hal/devices/block_jediacad_1
Sep 17 11:39:48 demon ivman: Changed: /dev/hde


so ivman is able to recognize my Jedi Academy CD after putting it to CD-ROM drive. But when I try to open /mnt/cdrom in Konqueror, I got empty directory.

My fstab:
Code:

/dev/cdroms/cdrom0      /mnt/cdrom              iso9660         noauto,ro,user                  0 0
/dev/cdroms/cdrom1      /mnt/cdrw               auto            ro,noauto,user,exec             0 0


hal, dbus and ivman is from bmg portage (compiled just a minute ago).

When I remove CD, i got these:
Code:

Sep 17 11:39:39 demon ivman: Device removed: /org/freedesktop/Hal/devices/block_jediacad_1
Sep 17 11:39:39 demon ivman: This device ((null)) wasn't mounted by me, ignoring...


my /etc/conf.d/ivman:
Code:

export IVUSER="root"
export IVGROUP="cdrom"



and permissions:
Code:

raku@demon:~$ ls -l /mnt |grep cdrom
dr-xr-xr-x  2 root cdrom     3 sie 25 12:48 cdrom

_________________
raku

Powered by Archlinux ;-)
Back to top
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 726
Location: Basking in the Zen glow of Jerry

PostPosted: Thu Sep 23, 2004 12:14 am    Post subject: Reply with quote

Wow. After reading the entire thread and messing around with it for a few hours I finally have everything mostly working. Still having the unmounting issue other people are seeing so a couple of questions:

1) I have IVUSER="myuser" and IVGROUP="users" and fstab set up so any user can (u)mount a cdrom. If I put in a data cd it mounts just fine but pressing the button won't unmount or eject the cd, issuing "eject" as user will unmount the cd but won't open the tray nor will the button open the tray after it's unmounted, issuing "eject" as root will unmount and eject the cd.

If I set IVUSER="root" and insert a cd it mounts, the button then ejects but does not unmount the cd, issuing "eject" AS USER will unmount and eject the cd.

What is going on here and how can I get IVUSER="myuser" and either the button or eject as user to unmount and eject?

2) As I understand it hal waits for a udev event and then sends it to ivman which does the actual mounting/playing. What does dbus do?

Thanks for all the work and all the info in this thread!
Back to top
View user's profile Send private message
dotnick
n00b
n00b


Joined: 25 Oct 2002
Posts: 15
Location: United States

PostPosted: Fri Sep 24, 2004 4:02 pm    Post subject: Reply with quote

i am also having an error.....

hal_interface.c:42 (hal_device_added) New Device: /org/freedesktop/Hal/devices/block_BF1942_1
hal_interface.c:80 (hal_device_added) Changed: /dev/hdc
libhal.c 840 : Error sending msg: No property storage.drive_type on device with id /org/freedesktop/Hal/devices/block_BF1942_1

i tried using the BMG ebuilds, but the patch failed.....
the dbus messages look fine.... no errors that is
but ivman is still kicking my butt.....

IVUSER="root"
IVGROUP="users"

any help is appreciated.....
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: Fri Sep 24, 2004 7:53 pm    Post subject: Reply with quote

There is a patch for your issue on the ivman site, contributed by a user.
Back to top
View user's profile Send private message
kali
n00b
n00b


Joined: 30 Sep 2002
Posts: 39
Location: Rome, Italy

PostPosted: Sat Sep 25, 2004 12:11 am    Post subject: Re: Reported @ bugs.breakmygentoo.net Reply with quote

el_compa wrote:
Hi,

I've reported this at bugs.breakmygentoo.net , it's bug #468 . There I posted my ebuild and patch as an attachment. I tested them and I think they work (they do here) but I'm no portage expert (I couldn't see why it rejected the patch BlackB1rd).

Mario


i finally get a working ivman
thanks
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: Sat Sep 25, 2004 5:46 am    Post subject: Reply with quote

Lets hope that they will change it in bmg soon or add it to portage as portage also has a working hal/dbus now.
Back to top
View user's profile Send private message
eikketk
Apprentice
Apprentice


Joined: 03 Jun 2003
Posts: 270
Location: Belgium

PostPosted: Sat Sep 25, 2004 11:33 am    Post subject: Reply with quote

I patched the CVS tree, a 0.4 release will follow normally. Please test ;)

Thank to Zatalian and El_compa for providing the patches, and genstef for pushing me to do this ;) Please keep them coming.
I'll have some more time soon, so I'll be able to work some more on _ng. If you got ideas etc, please provide them.

Regards, and thanks for using this software, Ikke
_________________
Working day and night to enhance the Linux Desktop Experience :)

Homepage
Back to top
View user's profile Send private message
tonyg_2
n00b
n00b


Joined: 12 Jun 2003
Posts: 61
Location: Ottawa

PostPosted: Sun Sep 26, 2004 4:37 pm    Post subject: Reply with quote

I'm not sure if anyone else noticed, but glib seems to be a requirement for dbus.
Back to top
View user's profile Send private message
eikketk
Apprentice
Apprentice


Joined: 03 Jun 2003
Posts: 270
Location: Belgium

PostPosted: Sun Sep 26, 2004 8:19 pm    Post subject: Reply with quote

Yes it is. So it is for ivman. Almost every system got it installed tough...
_________________
Working day and night to enhance the Linux Desktop Experience :)

Homepage
Back to top
View user's profile Send private message
el_compa
n00b
n00b


Joined: 28 Jan 2004
Posts: 65
Location: France

PostPosted: Sun Sep 26, 2004 9:04 pm    Post subject: I can help Reply with quote

Hi,

I can help with ivman, and better with ivman-ng. I don't know where to start but I'll be glad to help :)

Mario

mario.doria EN gmail PUNTO com
Back to top
View user's profile Send private message
eikketk
Apprentice
Apprentice


Joined: 03 Jun 2003
Posts: 270
Location: Belgium

PostPosted: Tue Sep 28, 2004 9:09 am    Post subject: Reply with quote

That'd be great. I'll contact you :)
_________________
Working day and night to enhance the Linux Desktop Experience :)

Homepage
Back to top
View user's profile Send private message
spider7378
n00b
n00b


Joined: 11 Mar 2004
Posts: 2
Location: Essen, Germany

PostPosted: Tue Sep 28, 2004 10:05 am    Post subject: Problem merging hal Reply with quote

Hello!

I've got the following output when trying to emerge hal-cvs:
Code:
linux/block_class_device.c: In function `volume_set_size':
linux/block_class_device.c:610: error: `u64' undeclared (first use in this function)
linux/block_class_device.c:610: error: (Each undeclared identifier is reported only once
linux/block_class_device.c:610: error: for each function it appears in.)
make[3]: *** [block_class_device.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/hal-cvs-20040522/work/hal/hald'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/hal-cvs-20040522/work/hal/hald'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/hal-cvs-20040522/work/hal'
make: *** [all] Error 2

!!! ERROR: sys-apps/hal-cvs-20040522 failed.
!!! Function src_compile, Line 44, Exitcode 2
!!! (no error message)


Any suggetions who to solve my problem?
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: Tue Sep 28, 2004 2:15 pm    Post subject: Reply with quote

use the hal release that is in portage now.
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 ... 9, 10, 11 ... 27, 28, 29  Next
Page 10 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