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


Joined: 11 Sep 2003
Posts: 149
Location: montreal, canada

PostPosted: Thu Dec 16, 2004 1:09 am    Post subject: Reply with quote

Forget the part about starting apps after inserting a dvd. I just found out that it was in /etc/ivman/IvmConfigActions.xml. Stupid me :roll:
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 Dec 16, 2004 1:29 am    Post subject: Reply with quote

Right now you can configure which programs handle CD and DVD autoplaying in /etc/ivman/IvmConfigActions.xml.

I'm working on the problems with ejecting audio CDs - I think the problem is that, since audio CDs aren't actually mounted, Ivman never gets sent an unmount message, which is when it calls 'eject'. I have no idea what the problem with DVDs would be, I unfortunately don't have a DVD drive :-(
Back to top
View user's profile Send private message
yanos
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2003
Posts: 149
Location: montreal, canada

PostPosted: Thu Dec 16, 2004 4:59 am    Post subject: Reply with quote

In /etc/ivman/IvmConfigActions.xml, some action works and some aren't. For example

<ivm:Option name="autoplay_dvd_cmd" value="mplayer dvd://1 -really-quiet -fs" />

works but

<ivm:Option name="autoplay_cda_cmd" value="cdplay -d %d -c" />

doesn't ('cdplay -d /dev/hdd -c' in a shell works fine). Could this be that

<ivm:Option name="eject_cmd" value="eject %d" />

is nerver catched for similar reasons?
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 Dec 16, 2004 12:58 pm    Post subject: Reply with quote

Phew... just finished rewriting many large chunks of Ivman. It's now much, much more configurable than before (you can have arbitrary commands run when a new device is added with any HAL attributes you specify). Examples of entries in IvmConfigActions.xml:

Code:

    <!-- example - mount volume with UUID 4170-DC9F accessible only for user with UID 1000 -->
    <ivm:Match name="hal.volume.uuid" value="4170-DC9F">
        <ivm:Option name="mountoption" value="umask=0077" />
        <ivm:Option name="mountoption" value="uid=1000" />
    </ivm:Match>


    <!-- example - don't mount /dev/camera -->
    <ivm:Match name="hal.block.device" value="/dev/camera">
        <ivm:Option name="mount" value="false" />
    </ivm:Match>

    <!-- example - log whenever someone mounts or unmounts a device -->
    <ivm:Match name="ivm.mountable" value="true">
        <ivm:Option name="exec" value="/bin/sh -c 'echo %d mounted at `date` >> /var/log/mounts'" />
        <ivm:Option name="execun" value="/bin/sh -c 'echo unmounted at `date` >> /var/log/mounts'" />
    </ivm:Match>


It supports adding extra mount options, and the default configuration mounts non-Linux (e.g. VFAT) partitions as read/write for everyone, fixing the permissions problem many people had with their USB sticks.

It also detects in a different, hopefully more correct manner whether or not a volume is mountable, so with any luck the people who had USB hard drives whose volumes wouldn't mount, will now find that they do.

The problem with audio CDs not being able to eject also seems solved. I can't say whether or not this is the case for DVDs, not having a DVD drive :-(

Anyway, I really encourage everyone to check out this new version - 0.4_rc1. If last time is anything to go by, Genstef will probably have it in portage within a day, but impatient people can get an ebuild here (although it was only released on sourceforge an hour ago and probably isn't on m/any mirrors yet).

It seems entirely stable to me so far, but considering that there are now limitless possible configurations, it's almost certain that there's a few bugs in it. So, please test :-) I would especially be interested in tests from those who had USB hard drives which previously didn't work, and those who have DVD drives.

Finally, I think it is time for me to get some sleep. Goodnight all :-)
Back to top
View user's profile Send private message
cbr
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 285
Location: Tallinn/Rakvere, Estonia

PostPosted: Thu Dec 16, 2004 3:04 pm    Post subject: Reply with quote

It's tarred like so that it is in the future for me ;) Can't compile it atm :D
Back to top
View user's profile Send private message
grover
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2002
Posts: 77
Location: Melbourne, Australia

PostPosted: Thu Dec 16, 2004 5:37 pm    Post subject: Reply with quote

Same problem here. Just touch all the files including the ones in src and src/IvmConfig and add a blank INSTALL file and it should compile ok.

Just tried it with my USB stick, and straight away it is now accessible by all users. Nice work :)
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: Thu Dec 16, 2004 6:14 pm    Post subject: Reply with quote

When I try to install this I see:

Code:

/usr/lib/libIvmConfig.a
/usr/lib/libIvmConfig.0.0.0
/usr/lib/libIvmConfig.la
/usr/lib/libIvmConfig.0 -> libIvmConfig.0.0.0 1103209948
/usr/lib/libIvmConfig -> libIvmConfig.0.0.0 1103209948


Is this right? It works, but it seems kinda strange to delete the .so of a library. Do other people also have the files renamed to non-.so?
Back to top
View user's profile Send private message
Tanisete
Guru
Guru


Joined: 12 Mar 2004
Posts: 312

PostPosted: Thu Dec 16, 2004 9:49 pm    Post subject: Reply with quote

I've emerged the new version, and it works for both the usbstick and the usb hard disk!!!
I don't have such problems Genstef...

Code:
rw-r--r--  1 root root 12636 dic 16 22:31 /usr/lib/libIvmConfig.a
-rwxr-xr-x  1 root root   982 dic 16 22:31 /usr/lib/libIvmConfig.la
lrwxrwxrwx  1 root root    21 dic 16 22:31 /usr/lib/libIvmConfig.so -> libIvmConfig.so.0.0.0
lrwxrwxrwx  1 root root    21 dic 16 22:31 /usr/lib/libIvmConfig.so.0 -> libIvmConfig.so.0.0.0
-rwxr-xr-x  1 root root 11636 dic 16 22:31 /usr/lib/libIvmConfig.so.0.0.0


Only another question... I suppose it must be a stupid thing but... if i want to umount a partition from the usb device without umounting the other one... i can't. Only root user can. Is there any way in the new config to do it? I have found no one.

Anyway, great great work!!!
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 Dec 16, 2004 11:26 pm    Post subject: Reply with quote

Tanisete, yes, there is a way to allow users to unmount. Unfortunately it has to be put into the /etc/fstab file, which means that Ivman can't provide it as an extra option; you have to put it in your HAL files.

As you may have already done, copy /usr/share/hal/fdi/90defaultpolicy/storage-policy.fdi to /usr/share/hal/fdi/95userpolicy/storage-policy.fdi, and add the following line near the other mount options:
Code:

<merge key="storage.policy.default.mount_option.users" type="bool">true</merge>


If you already have a mount_option.user line, change it to users (the two options are mutually exclusive so I'm not sure what will happen if you set them both to true).

Also, if there are certain volumes on that drive that you never want to automatically mount, you can find out their unique ID by running lshal (look for volume.uuid), then putting an entry like this in IvmConfigActions.xml:
Code:

    <ivm:Match name="hal.volume.uuid" value="0bad-f00d">
        <ivm:Option name="mount" value="false" />
    </ivm:Match>


Grrr. I apologise for all the problems with the package. The automake system drives me crazy sometimes (admittedly because I don't understand a lot of it!). I'll fix the problems ASAP. Oh well, that'll teach me to make a release when I'm in need of sleep :-)
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 Dec 16, 2004 11:59 pm    Post subject: Reply with quote

A fixed package is making its way around the sourceforge mirrors. It's the same filename, so for the next day or so, to be sure that you're getting the new package rather than the old one, here's the digest (paste this into /usr/local/portage/sys-apps/ivman/digest-ivman-0.4_rc1)

Code:

MD5 6faad9e6dfb54e700bf6fe105e008ca2 ivman-0.4_rc1.tar.bz2 205862


You can also get the new package here

What a mess. I'll certainly be more careful in any future releases. Oh well, at least it worked for a couple of people straight away :-)
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 Dec 17, 2004 10:31 am    Post subject: Reply with quote

I think the new default owners are too open. 0770 and owner root, group users should be enough. Granting even rw-access to all means also nobody could write to the stick and delete important data.
On a normal gentoo desktop system, whcih ivman is for, every (real) user should be in the users group. So if we only allow this group to view the data, we have a much higher level of security.

And maybe there is some interesting data on the stick?
Back to top
View user's profile Send private message
cbr
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 285
Location: Tallinn/Rakvere, Estonia

PostPosted: Fri Dec 17, 2004 5:57 pm    Post subject: Reply with quote

I have a problem that i have always had with ivman. It mounts great, everything is nice BUT when i press the CDROM eject button, it doesnt unmount the CD. It still stays in 'mount' although the CD has ejected. Is there a solution to this?
Back to top
View user's profile Send private message
hoeeg
n00b
n00b


Joined: 04 Jul 2002
Posts: 26
Location: Denmark

PostPosted: Fri Dec 17, 2004 6:10 pm    Post subject: Reply with quote

ivman-0.4_rc1 mounts my usb hard drive with an ext3 and a fat32 partition, my dvd drive (with a data cd), and it even somehow manage to get my lousy cdrom mounted.
With the cdrom i'm not sure if it's a hardware error, or something else.
Great work, thanks.

With a dvd (film) in the dvd-recorder i can not eject with the eject button.
Back to top
View user's profile Send private message
Tanisete
Guru
Guru


Joined: 12 Mar 2004
Posts: 312

PostPosted: Fri Dec 17, 2004 9:54 pm    Post subject: Reply with quote

I tried to follow the configuration you told me rohan, but the partitions i don't want to mount are mounted anyway (boot partition and windows partition). I post here the IvmConfigActions.xml:



Code:

<?xml version="1.0" encoding="UTF-8"?>
<ivm:ActionsConfig version="0.2" xmlns:ivm="http://www.eikke.com/ivm">

     <!-- unlock everything - harmless for devices without tray locking -->
    <ivm:Option name="unlock" value="true" /> 
   
    <ivm:Match name="hal.volume.uuid" value="5C06-B183">
            <ivm:Option name="mount" value="false" />
    </ivm:Match>

    <ivm:Match name="hal.volume.uuid" value="ecb0c588-45b8-47d7-96e0-9ee4417e2984">
            <ivm:Option name="mount" value="false" />
    </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 try to mount audio CDs -->
    <ivm:Match name="hal.volume.disc.has_audio" value="true">
        <ivm:Match name="hal.volume.disc.has_data" value="false">
       <ivm:Option name="mount" value="false" />
        </ivm:Match>
    </ivm:Match>

    <!-- mount some non-Linux filesystems read/write for everyone -->
    <ivm:Match name="hal.volume.fstype" value="vfat">
        <ivm:Option name="mountoption" value="umask=0000" />
    </ivm:Match>
    <ivm:Match name="hal.volume.fstype" value="ntfs">
        <ivm:Option name="mountoption" value="umask=0000" />
    </ivm:Match>
    <ivm:Match name="hal.volume.fstype" value="npfs">
        <ivm:Option name="mountoption" value="umask=0000" />
    </ivm:Match>
    <ivm:Match name="hal.volume.fstype" value="udf">
        <ivm:Option name="mountoption" value="umask=0000" />
    </ivm:Match>

   
    <!-- example - autoplay CDs with audio tracks and no data tracks -->
    <!--
    <ivm:Match name="hal.volume.disc.type" value="cd_rom">
        <ivm:Match name="hal.volume.disc.has_audio" value="true">
            <ivm:Match name="hal.volume.disc.has_data" value="false">
                <ivm:Option name="exec" value="cdplay -d %d -c" />
                <ivm:Option name="execas" value="nobody" />
            </ivm:Match>
        </ivm:Match>
    </ivm:Match>
    -->
   
    <!-- example - autoplay video DVDs -->
    <!-- video DVD detection is an ugly hack at the moment, because it's not
         possible to tell if a DVD contains video without mounting it first.
    That's why we don't use a 'Match' to tell if a volume is a video
    DVD yet. -->
    <!--
    <ivm:Option name="execdvd" value="/usr/bin/mplayer dvd://1 -really-quiet -fs" />
    -->

   
    <!-- example - mount volume with UUID 4170-DC9F accessible only for
         user with UID 1000 -->
    <!--
    <ivm:Match name="hal.volume.uuid" value="4170-DC9F">
        <ivm:Option name="mountoption" value="umask=0077" />
        <ivm:Option name="mountoption" value="uid=1000" />
    </ivm:Match>
    -->
   
   
    <!-- example - don't mount /dev/camera -->
    <!--
    <ivm:Match name="hal.block.device" value="/dev/camera">
        <ivm:Option name="mount" value="false" />
    </ivm:Match>
    -->
   
    <!-- example - log whenever someone mounts or unmounts a device -->
    <!--
    <ivm:Match name="ivm.mountable" value="true">
        <ivm:Option name="exec" value="/bin/sh -c 'echo %d mounted at `date` >> /tmp/mounts'" />
        <ivm:Option name="execun" value="/bin/sh -c 'echo unmounted at `date` >> /tmp/mounts'" />
    </ivm:Match>
    -->
   
</ivm:ActionsConfig>   


Also, my normal user doesn't have permissions for umount any mounted system. Mi storage.fdi in 95userpolicy is:
Code:

<device>
    <match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
      <merge key="storage.policy.default.mount_root" type="string">/media</merge>
      <merge key="storage.policy.default.use_managed_keyword" type="bool">true</merge>
      <merge key="storage.policy.default.managed_keyword.primary" type="string">managed</merge>
      <merge key="storage.policy.default.managed_keyword.secondary" type="string">kudzu</merge>
      <merge key="storage.policy.default.mount_option.noauto" type="bool">true</merge>
      <merge key="storage.policy.default.mount_option.pamconsole" type="bool">false</merge>
      <merge key="storage.policy.default.mount_option.users" type="bool">true</merge>
      <merge key="storage.policy.default.mount_option.exec" type="bool">true</merge>
    </match>
  </device>




I think this can happen because i use my own fstab to mount these partitions, and not the fstab-rsync (but the windows partition has a users option).

Can you help me (again)?

Thanks a lot!!!!!!!!!!!!!!!
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: Sat Dec 18, 2004 6:41 am    Post subject: Reply with quote

Tanisete: I can help you with the first problem. You've put the rules for the particular volumes you don't want mounted before the rule mounting everything in ivm.mountable. The rules need to be put after that one, because rules later in the file take higher precedence (meaning that if you put the rules before the ivm.mountable rule, they are overridden by it).

As for your second problem... yes, it probably is because you've got your own fstab rules. But, if I understand you correctly, you've put a 'users' option in fstab for the Windows partition, but you still can't umount without being root? That's odd; can you please post the contents of /etc/fstab while the hard drive is plugged in?

People having problems with eject: grrr. How annoying! I had problems with ejecting audio CDs with the old Ivman, but with this version I can eject them fine. Pity not everyone is having as good luck :-) I'm also curious about video DVDs - I was under the impression that video DVDs are just like data DVDs, except they contain video. But if people are having problems ejecting video DVDs and not data DVDs, I guess that's not the case :-) Anyway, I'll pepper the code with debug statements to find out exactly what goes on when ejecting a disc, and see if I can do anything about it.

Genstef: with regards to permissions, I agree :-) There's no point in having a 'users' group if applications grant permissions to users outside of this group. On a related note... do all distros have a 'users' group? Is the group always (or usually) gid 100?

My apologies for the delayed replies, my 'always-on' cable internet connection has been down for most of the last few days :-(
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 Dec 18, 2004 8:13 am    Post subject: Reply with quote

Problems with eject were common in the "-cvs" ebuilds that were not made by me, because you can setup ivman to run as user there, which basically breaks unlocking.
I think there is also a simple explanation for the video-dvd problem. The player locks the drive again when ivman has unlocked it, so you cant eject it.
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: Sat Dec 18, 2004 8:43 am    Post subject: Reply with quote

I'm certainly not going to provide support for running Ivman as anything but root (although I do want it to be able to run programs using credentials of other users - maybe even reading config files from other users' home directories).

Since it's running as root, Ivman definitely should be able to unlock the drive even if another application has locked it. Actually, the code is already supposed to do this, but obviously it's not working properly... it's on the top of my hitlist of bugs :-)
Back to top
View user's profile Send private message
hoeeg
n00b
n00b


Joined: 04 Jul 2002
Posts: 26
Location: Denmark

PostPosted: Sat Dec 18, 2004 9:00 am    Post subject: Reply with quote

rohan28 wrote:

I'm also curious about video DVDs - I was under the impression that video DVDs are just like data DVDs, except they contain video. But if people are having problems ejecting video DVDs and not data DVDs, I guess that's not the case :-)

I dont know about that, i only had a video-dvd lying around. I can get a data-dvd, but probably not before monday.
The video-dvd dont get mounted
Code:

Dec 18 08:46:17 charon ivman: Property modified on device: /org/freedesktop/Hal/devices/block_3_0
Dec 18 08:46:17 charon ivman: Property modified on device: /org/freedesktop/Hal/devices/block_3_0
Dec 18 08:46:18 charon ivman: New Device: /org/freedesktop/Hal/devices/block_OEL_DVD
Dec 18 08:46:18 charon ivman: Attempting to mount /dev/hda
Dec 18 08:46:18 charon ivman: Calling /bin/mount -o umask=0000 /dev/hda

And then... nothing. The drive is locked.
If i put a data cd in the drive it gets mounted.
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: Sat Dec 18, 2004 10:46 am    Post subject: Reply with quote

Is it possible to mount video DVDs at all (i.e. not using Ivman)?

Could you possibly post the relevant output of lshal with a video DVD in the drive?
Back to top
View user's profile Send private message
hoeeg
n00b
n00b


Joined: 04 Jul 2002
Posts: 26
Location: Denmark

PostPosted: Sat Dec 18, 2004 11:11 am    Post subject: Reply with quote

Yes, it's possible to mount it manually, and then this turns up in the log.
Code:

Dec 18 12:03:04 charon ivman: Property modified on device: /org/freedesktop/Hal/devices/block_OEL_DVD
Dec 18 12:03:04 charon ivman: Mounted: /org/freedesktop/Hal/devices/block_OEL_DVD
Dec 18 12:03:04 charon ivman: Devices table has 5 entries
Dec 18 12:03:04 charon ivman:  "/org/freedesktop/Hal/devices/block_b20b2ac2-14f7-469b-88e5-885474827036"   "/"
Dec 18 12:03:04 charon ivman:  "/org/freedesktop/Hal/devices/block_BA48-6399"   "/media/_XTERNALDOS"
Dec 18 12:03:04 charon ivman:  "/org/freedesktop/Hal/devices/block_d1f2a75a-35eb-4739-aa4d-69925a08ecb1"   "/home"
Dec 18 12:03:04 charon ivman:  "/org/freedesktop/Hal/devices/block_OEL_DVD"   "/media/cdrecorder"
Dec 18 12:03:04 charon ivman:  "/org/freedesktop/Hal/devices/block_c1a18590-6e62-4875-aeb4-09ada08e2917"   "/media/usbdisk"
Dec 18 12:03:04 charon ivman: Property modified on device: /org/freedesktop/Hal/devices/block_OEL_DVD
Dec 18 12:03:04 charon ivman: Property modified on device: /org/freedesktop/Hal/devices/block_OEL_DVD
Dec 18 12:03:04 charon ivman: Event received but no action taken   Name: VolumeMount

It looks like a normal filesystem, so i guess it's like a data-dvd.
When its mounted, i can press the eject buttton, and ivman unmounts it.

Here's the output from lshal
Code:

udi = '/org/freedesktop/Hal/devices/block_3_0'
  volume.is_partition = false  (bool)
  storage.policy.desired_mount_point = 'cdrecorder'  (string)
  storage.policy.mount_filesystem = 'auto'  (string)
  storage.policy.should_mount = true  (bool)
  info.udi = '/org/freedesktop/Hal/devices/block_3_0'  (string)
  storage.requires_eject = true  (bool)
  storage.hotpluggable = false  (bool)
  storage.cdrom.write_speed = 8467  (0x2113)  (int)
  storage.cdrom.read_speed = 8467  (0x2113)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.dvdplusrw = true  (bool)
  storage.cdrom.dvdplusr = true  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = true  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.cdrw = true  (bool)
  storage.cdrom.cdr = true  (bool)
  storage.removable = true  (bool)
  storage.firmware_version = '2.16'  (string)
  info.product = '_NEC DVD_RW ND-3500AG'  (string)
  storage.drive_type = 'cdrom'  (string)
  block.storage_device = '/org/freedesktop/Hal/devices/block_3_0'  (string)
  storage.physical_device = '/org/freedesktop/Hal/devices/ide_0_0'  (string)
  storage.vendor = ''  (string)
  storage.model = '_NEC DVD_RW ND-3500AG'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.no_partitions_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.bus = 'ide'  (string)
  block.minor = 0  (0x0)  (int)
  block.major = 3  (0x3)  (int)
  info.capabilities = 'block storage.cdrom storage'  (string)
  info.category = 'storage'  (string)
  info.parent = '/org/freedesktop/Hal/devices/ide_0_0'  (string)
  block.device = '/dev/hda'  (string)
  block.is_volume = false  (bool)
  block.have_scanned = true  (bool)
  block.no_partitions = true  (bool)
  linux.sysfs_path_device = '/sys/block/hda'  (string)
  linux.sysfs_path = '/sys/block/hda'  (string)
  info.bus = 'block'  (string)
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: Sat Dec 18, 2004 11:39 am    Post subject: Reply with quote

OK, thank you, that output is helpful. There's some more I'd like though (sorry to bug you), the output you posted is the output for drive, and now I'd like the output for the disc itself (which, by the looks of it, is /org/freedesktop/Hal/devices/block_OEL_DVD).

Actually... another thing, too :-) Could you possibly post the /etc/fstab line you're using for /dev/hda? And can you also try commenting out the option for the UDF filesystem in IvmConfigActions.xml? I'm very curious... Ivman is definitely calling mount, so maybe the umask=0000 option it's using is invalid for whatever filesystem is on the DVD (which I assume is UDF)? 'man mount' says that umask is valid for UDF filesystems, but it's worth a try...
Back to top
View user's profile Send private message
Tanisete
Guru
Guru


Joined: 12 Mar 2004
Posts: 312

PostPosted: Sat Dec 18, 2004 12:06 pm    Post subject: Reply with quote

Thanks rohan!! The configuration thing was a stupid thing...
About the fstab... wel... as now the windows paritition doesn't get mounted, i don't have the problem to umount it... But the problem, i think, is that my line was with "user" option, not with users... so that's it!!! Ivman is working great here for all my devices... I haven't tried it with a video-dvd... let's do it.
No, video-dvd doesn't get mounted... this is my lshal output:

Code:

udi = '/org/freedesktop/Hal/devices/block_Shrek 2'
  info.udi = '/org/freedesktop/Hal/devices/block_Shrek 2'  (string)
  volume.disc.is_rewritable = false  (bool)
  volume.disc.is_appendable = false  (bool)
  volume.disc.is_blank = false  (bool)
  volume.disc.has_data = true  (bool)
  volume.disc.has_audio = false  (bool)
  volume.disc.type = 'dvd_rom'  (string)
  volume.size = 4294965248  (0xfffff800)  (uint64)
  volume.block_size = 2048  (0x800)  (int)
  volume.num_blocks = 9193984  (0x8c4a00)  (int)
  volume.is_disc = true  (bool)
  volume.is_mounted = false  (bool)
  volume.mount_point = ''  (string)
  volume.label = 'Shrek 2'  (string)
  volume.uuid = ''  (string)
  volume.fsversion = ''  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'udf'  (string)
  info.product = 'Shrek 2'  (string)
  info.parent = '/org/freedesktop/Hal/devices/block_22_0'  (string)
  info.category = 'volume'  (string)
  info.capabilities = 'block volume'  (string)
  info.bus = 'block'  (string)
  block.no_partitions = true  (bool)
  block.have_scanned = false  (bool)
  block.is_volume = true  (bool)
  block.device = '/dev/hdc'  (string)
  block.major = 22  (0x16)  (int)
  block.minor = 0  (0x0)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/block_22_0'  (string)



If i comment the udf option... Yes!! it gets mounted (and i can browse the content)
This is the fstab entry for my dvd drive:

Code:

/dev/hdc      /mnt/dvd   auto      noauto,user,exec,ro,unhide      0 0


Hope it helps!!!

Thanks a lot for all the help rohan!!
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: Sat Dec 18, 2004 12:20 pm    Post subject: Reply with quote

Quote:
If i comment the udf option... Yes!! it gets mounted


Hmm, well I guess the mount man-page lied to me then :-) umask is supposed to be a valid option for UDF, but if commenting that option allows video DVDs to be mounted, then I guess it isn't.

Anyone having problems with video DVDs, try commenting the UDF line (this may solve eject problems too, but the eject handling code still needs to be thoroughly checked anyway - it's supposed to work in cases of failure too!)
Back to top
View user's profile Send private message
hoeeg
n00b
n00b


Joined: 04 Jul 2002
Posts: 26
Location: Denmark

PostPosted: Sat Dec 18, 2004 4:01 pm    Post subject: Reply with quote

rohan28 wrote:
Quote:
If i comment the udf option... Yes!! it gets mounted


Anyone having problems with video DVDs, try commenting the UDF line


Its the same here, if i comment out the udf line it gets mounted.

Quote:

There's some more I'd like though (sorry to bug you)

No problem

fstab looks like this
Code:

/dev/hda                /media/cdrecorder       auto    exec,user,noauto,managed 0 0


And lshal for the disk.
Code:

udi = '/org/freedesktop/Hal/devices/block_OEL_DVD'
  info.udi = '/org/freedesktop/Hal/devices/block_OEL_DVD'  (string)
  volume.disc.is_rewritable = false  (bool)
  volume.disc.is_appendable = false  (bool)
  volume.disc.is_blank = false  (bool)
  volume.disc.has_data = true  (bool)
  volume.disc.has_audio = false  (bool)
  volume.disc.type = 'dvd_rom'  (string)
  volume.size = 4294965248  (0xfffff800)  (uint64)
  volume.block_size = 2048  (0x800)  (int)
  volume.num_blocks = 6931836  (0x69c57c)  (int)
  volume.is_disc = true  (bool)
  volume.is_mounted = true  (bool)
  volume.mount_point = '/media/cdrecorder'  (string)
  volume.label = 'OEL_DVD'  (string)
  volume.uuid = ''  (string)
  volume.fsversion = ''  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'iso9660'  (string)
  info.product = 'OEL_DVD'  (string)
  info.parent = '/org/freedesktop/Hal/devices/block_3_0'  (string)
  info.category = 'volume'  (string)
  info.capabilities = 'block volume'  (string)
  info.bus = 'block'  (string)
  block.no_partitions = true  (bool)
  block.have_scanned = false  (bool)
  block.is_volume = true  (bool)
  block.device = '/dev/hda'  (string)
  block.major = 3  (0x3)  (int)
  block.minor = 0  (0x0)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/block_3_0'  (string)
Back to top
View user's profile Send private message
Till Varoquaux
n00b
n00b


Joined: 28 Oct 2004
Posts: 24

PostPosted: Sat Dec 18, 2004 11:14 pm    Post subject: Reply with quote

Small pb here:
Code:
Ikke's Volume Manager, http://ivman.sf.net
hal_interface.c:133 (hal_property_modified) Property modified on device: /org/freedesktop/Hal/devices/block_22_0
hal_interface.c:40 (hal_device_added) New Device: /org/freedesktop/Hal/devices/block_SMC7204BRA
libhal.c 1134 : Error sending msg: No property volume.policy.should_mount on device with id /org/freedesktop/Hal/devices/block_SMC7204BRA
libhal.c 1134 : Error sending msg: No property storage.policy.should_mount on device with id /org/freedesktop/Hal/devices/block_22_0
IvmConfigActions.c:58 (parseIvmConfigActions) /dev/hdc does not appear to be mountable

My cdrom is not mountable???? what the ....
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 ... 14, 15, 16 ... 27, 28, 29  Next
Page 15 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