Bug 130210 - inserted video DVD are not automounting
Summary: inserted video DVD are not automounting
Status: VERIFIED FIXED
: 104355 105956 130135 130993 (view as bug list)
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Hotplug (show other bugs)
Version: unspecified
Hardware: i686 SuSE Linux 10.0
: P5 - None : Normal
Target Milestone: ---
Assignee: Danny Kukawka
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-23 22:18 UTC by Sergey Udaltsov
Modified: 2005-11-25 12:58 UTC (History)
5 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
lshal result (92.11 KB, text/plain)
2005-10-26 22:39 UTC, Sergey Udaltsov
Details
lshal with INSERTED but NOT manually mounted video DVD (92.09 KB, text/plain)
2005-10-29 14:09 UTC, Sergey Udaltsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Udaltsov 2005-10-23 22:18:52 UTC
I have several video DVDs (non-encrypted) which are not automounted when they
are inserted into laptop driver. Software DVDs are ok (like Suse installation
DVD). Same DVDs play ok with MS Win.

Even if I manually mount the disk and play it with totem - it just takes 100%
CPU and doing nothing. If I run totem from console, I see that it cannot handle
mpeg2. Which is not surprise - mpeg2dec is not listed among gstreamer plugins.
If I use mplayer - DVDs play ok (manually mounted, of course).

So, there are actually several problems here:)
Comment 2 Sergey Udaltsov 2005-10-25 21:52:49 UTC
Well, CSS is definitely legal PITA. But is MPEG2 same story? AFAIK other distros play unencrypted DVDs without problems (sure, some additional steps for CSS are necessary). Total inability to play DVDs is a serious gap in functionality on desktop IMNSHO.
Comment 3 Sergey Udaltsov 2005-10-25 22:00:17 UTC
I just talked on #suse - they say, DVDs play in KDE. So does it mean in GNOME it is less legal?;)
Comment 4 Sergey Udaltsov 2005-10-25 22:24:57 UTC
Аdditionally. If I ask explicitly to mount inserted dvd on nautilus, I get this error:

can't find /dev/hdc in /etc/fstab or /etc/mtab
Comment 5 Stanislav Brabec 2005-10-26 09:55:20 UTC
To kde-maintainers: How KDE plays DVD?

The error in Nautilus is a problem of configuration of HAL/D-BUS. If HAL detects DVD-Video, it does not mount it. An because cunnrent configuration does not edit /etc/fstab, only root can mount it. If you want this feature, you have to add a line to /etc/fstab and probably create directory in /media.

TO Danny: Can D-BUS provide "Mount on request" as a replacement of "user" option in /etc/fstab?
Comment 7 Danny Al-Gaaf 2005-10-26 10:23:19 UTC
I don't know what the problem with GNOME is, but we automount all DVDs by default with the hal-subfs-mount helper. I tested this with 10.0 and 10.1Alpha and all works fine for me. Under KDE the suseplugger also open a window and ask what to do.

@Sergey: Could you attach the output of lshal (lshal > /tmp/lshal.txt) to this bug with inserted movie DVD?

@Stanislav: as wrote above: automount should work for all DVD not only data-DVD. If not maybe something other is wrong. Btw. we never touch fstab with hal and we wouldn't do this in the future
Comment 8 Sergey Udaltsov 2005-10-26 22:39:44 UTC
Created attachment 55652 [details]
lshal result

lshal result
Comment 9 Danny Al-Gaaf 2005-10-28 11:44:11 UTC
I think all is correct mounted for the divice:

udi = '/org/freedesktop/Hal/devices/volume_part_1_size_4536762368'
  volume.disc.is_svcd = false  (bool)
  volume.disc.is_vcd = false  (bool)
  volume.disc.is_videodvd = true  (bool)
  volume.disc.type = 'dvd_rom'  (string)
  volume.is_mounted = true  (bool)
  volume.mount_point = '/media/cdrecorder'  (string)
  block.device = '/dev/hdc'  (string)

What say 'cat /proc/mounts' ?
Comment 10 Sergey Udaltsov 2005-10-28 20:52:14 UTC
Yes, it looks correct. The only incorrect thing - it was mounted manually:)

# cat /proc/mounts
rootfs / rootfs rw 0 0
initramfsdevs /dev tmpfs rw 0 0
/dev/hda5 / ext3 rw 0 0
eventfs /lib/klibc/events tmpfs rw 0 0
proc /proc proc rw,nodiratime 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/hda6 /home ext3 rw 0 0
/dev/hda7 /usr/local ext3 rw 0 0
/dev/hda8 /var ext3 rw 0 0
/dev/hda1 /windows/C vfat rw,nodiratime,nosuid,nodev,noexec,gid=100,fmask=0002,dmask=0002,codepage=cp437,iocharset=iso8859-1,utf8 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/cdrecorder /media/cdrecorder udf ro 0 0
Comment 11 Danny Al-Gaaf 2005-10-29 13:03:31 UTC
Not really funny. I need the outputs without manually mounts.
Comment 12 Sergey Udaltsov 2005-10-29 14:08:53 UTC
Sorry for misunderstanding. Attaching new lshal
Comment 13 Sergey Udaltsov 2005-10-29 14:09:49 UTC
Created attachment 55978 [details]
lshal with INSERTED but NOT manually mounted video DVD
Comment 14 Sergey Udaltsov 2005-10-29 14:10:38 UTC
/proc/mounts:

# cat /proc/mounts
rootfs / rootfs rw 0 0
initramfsdevs /dev tmpfs rw 0 0
/dev/hda5 / ext3 rw 0 0
eventfs /lib/klibc/events tmpfs rw 0 0
proc /proc proc rw,nodiratime 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/hda6 /home ext3 rw 0 0
/dev/hda7 /usr/local ext3 rw 0 0
/dev/hda8 /var ext3 rw 0 0
/dev/hda1 /windows/C vfat rw,nodiratime,nosuid,nodev,noexec,gid=100,fmask=0002,dmask=0002,codepage=cp437,iocharset=iso8859-1,utf8 0 0
usbfs /proc/bus/usb usbfs rw 0 0
Comment 15 Danny Al-Gaaf 2005-11-01 18:27:46 UTC
@kay: could you take a look at this? looks like again a problem with detect the correct file system.
Comment 16 Kay Sievers 2005-11-01 18:40:36 UTC
Yes, looks like the filesystem probing does not recognize the udf/iso volume.
I don't know how to fix it without having access to the actual media.
Comment 17 Sergey Udaltsov 2005-11-01 21:39:22 UTC
Kay, if I dump several kbytes of /dev/hdc - would this help?
Comment 18 Kay Sievers 2005-11-01 21:46:31 UTC
Let's try it...
Bzip2 the first few megabytes and send it per mail to me (kay.sievers@vrfy.org).
Did you try the DVD on Windows? What volume name does Windows show?
Comment 19 Sergey Udaltsov 2005-11-01 23:01:13 UTC
Key, the one I sent to you (first 4M) is shown as "Holmes2" in Windows.
Comment 20 Kay Sievers 2005-11-01 23:14:06 UTC
Works perfect with the fs probe code:
  kay@pim:~ /sbin/vol_id hdc.dump
  ID_FS_USAGE=filesystem
  ID_FS_TYPE=udf
  ID_FS_VERSION=
  ID_FS_UUID=
  ID_FS_LABEL=Holms2
  ID_FS_LABEL_SAFE=Holms2

I expect it's the "find the first session of the media" code.
We got more of these errors recently.

Can you stop HAL and start it in a console with:
  hald/hald --daemon=no --verbose=yes --retain-privileges

Wait until the millions of lines have stopped and then insert the DVD.
Look for lines where HAL prints something about "session"...
Comment 21 Stanislav Brabec 2005-11-01 23:26:45 UTC
In this case it can be a duplicate of a bug 104355. And because this bug is for internal ATAPI device, bug 104355 can be unrelated to ATAPI-over-USB, but to a firmware version.
Comment 22 Sergey Udaltsov 2005-11-01 23:31:13 UTC
Is this it?

6760: 22:29:17.324: probe-volume.c:476: volume_session_count = 1
6760: 22:29:17.324: probe-volume.c:484: last session starts at block = 4294967146
Comment 23 Sergey Udaltsov 2005-11-01 23:33:15 UTC
Well, I am not sure USB is involved in any way - it is usual CDRW/DVD built into laptop...
Comment 24 Kay Sievers 2005-11-01 23:38:29 UTC
Yeah, the offset reported by the drive looks wrong. But the kernel itself
can read the media, so there must be a way to get around it. :)
Will look into it the next days.
Comment 25 Stanislav Brabec 2005-11-02 12:58:07 UTC
Most probably duplicate of bug 104355.

It seems, that CDROMREADTOCENTRY returns strange value for cdte_addr.lba on some drives. I guess that kernel does not use this value directly, but hal uses it for checking the actual drive label etc.
Comment 26 Kay Sievers 2005-11-08 15:23:36 UTC
Please try the HAL version from the suse "edge" tree, we have a new package there
which is expected to fix this problem.
Comment 27 Sergey Udaltsov 2005-11-08 18:11:24 UTC
Is it available from yast? Should I download it from some URL?

Sorry for the lame questions, I am newbie in the suse world...
Comment 29 Sergey Udaltsov 2005-11-08 20:51:43 UTC
It works! Hurray! Thanks a bunch. Will it be put in the official update?
Comment 30 Danny Al-Gaaf 2005-11-08 20:58:15 UTC
@Andreas: What do you think? Should we make a YOU update for this (I had maybe also some other littel patches for HAL)? There already 2 other bugs with this problem (104355 and 130993). 
Comment 31 Andreas Jaeger 2005-11-09 08:22:34 UTC
Let's do such an update.  Maintenance-Tracker-2762
Comment 32 Danny Al-Gaaf 2005-11-09 20:11:55 UTC
*** Bug 130993 has been marked as a duplicate of this bug. ***
Comment 33 Danny Al-Gaaf 2005-11-09 20:13:23 UTC
*** Bug 104355 has been marked as a duplicate of this bug. ***
Comment 34 Danny Al-Gaaf 2005-11-12 16:08:23 UTC
*** Bug 105956 has been marked as a duplicate of this bug. ***
Comment 35 Kay Sievers 2005-11-17 20:25:29 UTC
*** Bug 130135 has been marked as a duplicate of this bug. ***
Comment 36 Anja Stock 2005-11-24 09:58:38 UTC
released
Comment 37 Anja Stock 2005-11-24 09:59:07 UTC
Closing
Comment 38 saso basilashvilli 2005-11-24 22:54:41 UTC
hello,
where can i get the rmp files, the links doesn't work
Comment 39 Stanislav Brabec 2005-11-25 12:58:00 UTC
Run YaST Online Update from an up-to-date server: Daemon for Collecting Hardware Information