Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

Automounting in userspace with ivman

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
706 posts
  • Page 15 of 29
    • Jump to page:
  • Previous
  • 1
  • …
  • 13
  • 14
  • 15
  • 16
  • 17
  • …
  • 29
  • Next
Author
Message
yanos
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Thu Sep 11, 2003 1:14 am
Location: montreal, canada

  • Quote

Post by yanos » Thu Dec 16, 2004 1:09 am

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:
Top
rohan28
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Sun Dec 12, 2004 10:28 am
Location: Australia

  • Quote

Post by rohan28 » Thu Dec 16, 2004 1:29 am

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 :-(
Top
yanos
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Thu Sep 11, 2003 1:14 am
Location: montreal, canada

  • Quote

Post by yanos » Thu Dec 16, 2004 4:59 am

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?
Top
rohan28
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Sun Dec 12, 2004 10:28 am
Location: Australia

  • Quote

Post by rohan28 » Thu Dec 16, 2004 12:58 pm

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: Select all

    <!-- 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 :-)
Top
cbr
Apprentice
Apprentice
Posts: 285
Joined: Mon Jan 05, 2004 8:18 pm
Location: Tallinn/Rakvere, Estonia

  • Quote

Post by cbr » Thu Dec 16, 2004 3:04 pm

It's tarred like so that it is in the future for me ;) Can't compile it atm :D
Top
grover
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Fri Sep 27, 2002 5:56 pm
Location: Melbourne, Australia

  • Quote

Post by grover » Thu Dec 16, 2004 5:37 pm

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 :)
Top
genstef
Retired Dev
Retired Dev
User avatar
Posts: 668
Joined: Sun Jun 13, 2004 10:33 am
Location: M/Bay/Germany
Contact:
Contact genstef
Website

  • Quote

Post by genstef » Thu Dec 16, 2004 6:14 pm

When I try to install this I see:

Code: Select all

/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?
Top
Tanisete
Guru
Guru
User avatar
Posts: 312
Joined: Fri Mar 12, 2004 10:13 am

  • Quote

Post by Tanisete » Thu Dec 16, 2004 9:49 pm

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: Select all

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!!!
Top
rohan28
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Sun Dec 12, 2004 10:28 am
Location: Australia

  • Quote

Post by rohan28 » Thu Dec 16, 2004 11:26 pm

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: Select all

<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: Select all

    <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 :-)
Top
rohan28
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Sun Dec 12, 2004 10:28 am
Location: Australia

  • Quote

Post by rohan28 » Thu Dec 16, 2004 11:59 pm

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: Select all

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 :-)
Top
genstef
Retired Dev
Retired Dev
User avatar
Posts: 668
Joined: Sun Jun 13, 2004 10:33 am
Location: M/Bay/Germany
Contact:
Contact genstef
Website

  • Quote

Post by genstef » Fri Dec 17, 2004 10:31 am

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?
Top
cbr
Apprentice
Apprentice
Posts: 285
Joined: Mon Jan 05, 2004 8:18 pm
Location: Tallinn/Rakvere, Estonia

  • Quote

Post by cbr » Fri Dec 17, 2004 5:57 pm

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?
Top
hoeeg
n00b
n00b
Posts: 26
Joined: Thu Jul 04, 2002 2:13 pm
Location: Denmark
Contact:
Contact hoeeg
Website

  • Quote

Post by hoeeg » Fri Dec 17, 2004 6:10 pm

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.
Top
Tanisete
Guru
Guru
User avatar
Posts: 312
Joined: Fri Mar 12, 2004 10:13 am

  • Quote

Post by Tanisete » Fri Dec 17, 2004 9:54 pm

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: Select all

<?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: Select all

<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!!!!!!!!!!!!!!!
Top
rohan28
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Sun Dec 12, 2004 10:28 am
Location: Australia

  • Quote

Post by rohan28 » Sat Dec 18, 2004 6:41 am

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 :-(
Top
genstef
Retired Dev
Retired Dev
User avatar
Posts: 668
Joined: Sun Jun 13, 2004 10:33 am
Location: M/Bay/Germany
Contact:
Contact genstef
Website

  • Quote

Post by genstef » Sat Dec 18, 2004 8:13 am

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.
Top
rohan28
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Sun Dec 12, 2004 10:28 am
Location: Australia

  • Quote

Post by rohan28 » Sat Dec 18, 2004 8:43 am

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 :-)
Top
hoeeg
n00b
n00b
Posts: 26
Joined: Thu Jul 04, 2002 2:13 pm
Location: Denmark
Contact:
Contact hoeeg
Website

  • Quote

Post by hoeeg » Sat Dec 18, 2004 9:00 am

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: Select all

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.
Top
rohan28
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Sun Dec 12, 2004 10:28 am
Location: Australia

  • Quote

Post by rohan28 » Sat Dec 18, 2004 10:46 am

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?
Top
hoeeg
n00b
n00b
Posts: 26
Joined: Thu Jul 04, 2002 2:13 pm
Location: Denmark
Contact:
Contact hoeeg
Website

  • Quote

Post by hoeeg » Sat Dec 18, 2004 11:11 am

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

Code: Select all

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: Select all

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)
Top
rohan28
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Sun Dec 12, 2004 10:28 am
Location: Australia

  • Quote

Post by rohan28 » Sat Dec 18, 2004 11:39 am

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...
Top
Tanisete
Guru
Guru
User avatar
Posts: 312
Joined: Fri Mar 12, 2004 10:13 am

  • Quote

Post by Tanisete » Sat Dec 18, 2004 12:06 pm

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: Select all

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: Select all

/dev/hdc		/mnt/dvd	auto		noauto,user,exec,ro,unhide		0 0
Hope it helps!!!

Thanks a lot for all the help rohan!!
Top
rohan28
Tux's lil' helper
Tux's lil' helper
Posts: 84
Joined: Sun Dec 12, 2004 10:28 am
Location: Australia

  • Quote

Post by rohan28 » Sat Dec 18, 2004 12:20 pm

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!)
Top
hoeeg
n00b
n00b
Posts: 26
Joined: Thu Jul 04, 2002 2:13 pm
Location: Denmark
Contact:
Contact hoeeg
Website

  • Quote

Post by hoeeg » Sat Dec 18, 2004 4:01 pm

rohan28 wrote:
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.
There's some more I'd like though (sorry to bug you)
No problem

fstab looks like this

Code: Select all

/dev/hda                /media/cdrecorder       auto    exec,user,noauto,managed 0 0
And lshal for the disk.

Code: Select all

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)
Top
Till Varoquaux
n00b
n00b
Posts: 24
Joined: Thu Oct 28, 2004 9:15 am

  • Quote

Post by Till Varoquaux » Sat Dec 18, 2004 11:14 pm

Small pb here:

Code: Select all

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 ....
Top
Post Reply

706 posts
  • Page 15 of 29
    • Jump to page:
  • Previous
  • 1
  • …
  • 13
  • 14
  • 15
  • 16
  • 17
  • …
  • 29
  • Next

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic