Comment 28 for bug 220957

Revision history for this message
Martin Pitt (pitti) wrote :

So hal sees the drive and the capabilities, but does not detect the (empty) volume. Unfortunately I cannot tell much more from the currently existing information here.

If you insert a blank CD-ROM, wait a bit, and do "dmesg | tail" in a terminal, can you please copy&paste the output here? The only line that should appear after inserting a blank DVD is

  [12993.587466] cdrom: This disc doesn't have any tracks I recognize!

(different timestamp at the front, of course).

Also, it would be helpful to watch what hal is detecting. Can you please do the procedure on https://wiki.ubuntu.com/DebuggingHal and attach the log? Then we can compare it with the output on a system where it works (e. g. mine), see below.

For the record, I also have an ATAPI burner, and Hardy uses the SCSI emulation.

----- snip ----
[10783]: 10:59:33.019 [D] addon-storage.c:542: Media insertion detected on /dev/scd0
10:59:33.020 [D] hald_dbus.c:1652: udi=/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B, key=storage.removable.media_available
10:59:33.023 [I] hald_dbus.c:3052: entering, local_interface=1
10:59:33.023 [D] hald_dbus.c:3061: udi=/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B
10:59:33.023 [I] blockdev.c:1674: blockdev_rescan_device: udi=/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B
Run started hald-probe-storage (20000) (0)
! full path is '/usr/lib/hal/hald-probe-storage', program_dir is '/usr/lib/hal'
woohoo
[10785]: 10:59:33.025 [D] probe-storage.c:155: Doing probe-storage for /dev/scd0 (bus scsi) (drive_type cdrom) (udi=/org/freedesktop/Hal/devices/storage_model_DVDRAM_GSA_4163B) (--only-check-for-fs==1)
[10785]: 10:59:33.025 [D] probe-storage.c:163: Doing open ("/dev/scd0", O_RDONLY | O_NONBLOCK)
[10785]: 10:59:33.027 [D] probe-storage.c:169: Returned from open(2)
[10785]: 10:59:33.033 [D] probe-storage.c:310: Checking for optical disc on /dev/scd0
[10785]: 10:59:33.033 [D] probe-storage.c:318: Doing open ("/dev/scd0", O_RDONLY | O_NONBLOCK | O_EXCL)
[10785]: 10:59:33.036 [D] probe-storage.c:330: Open failed - Device Busy
[10785]: 10:59:33.136 [D] probe-storage.c:334: Attempting open w/ O_EXCL again
[10785]: 10:59:33.138 [D] probe-storage.c:348: PROBE HAS EXCLUSIVE LOCK ON CDROM
[10785]: 10:59:33.141 [D] probe-storage.c:390: media size = 2048
[10785]: 10:59:33.142 [D] probe-storage.c:398: PROBE CLOSED LOCK ON CDROM
10:59:33.142 [I] hald_dbus.c:1342: storage.cdrom.read_speed -> 13850
10:59:33.142 [I] hald_dbus.c:1342: storage.cdrom.write_speed -> 11080
10:59:33.143 [I] hald_dbus.c:1320: strlist elem storage.cdrom.write_speeds -> 11080
10:59:33.143 [I] hald_dbus.c:1320: strlist elem storage.cdrom.write_speeds -> 5540
10:59:33.143 [I] hald_dbus.c:1366: storage.removable.media_available -> True
10:59:33.143 [I] hald_dbus.c:1350: storage.removable.media_size -> 2048
pid 10785: rc=2 signaled=0: /usr/lib/hal/hald-probe-storage
10:59:33.151 [I] blockdev.c:1630: hald-probe-storage --only-check-for-media returned 2 (exit_type=0)
10:59:33.151 [I] blockdev.c:1646: Media insertion detected with file system on main block device; synthesizing hotplug add
10:59:33.151 [I] osspec.c:966: hal_util_find_known_parent: '/sys/block/sr0/fakevolume'->'/sys/block/sr0'
10:59:33.151 [I] blockdev.c:874: block_add: sysfs_path=/sys/block/sr0/fakevolume dev=/dev/scd0 is_part=0, parent=0x006bed20
10:59:33.151 [I] blockdev.c:882: Handling /dev/scd0 as fakevolume - sysfs_path_real=(null)
Run started hald-probe-volume (20000) (0)
! full path is '/usr/lib/hal/hald-probe-volume', program_dir is '/usr/lib/hal'
[10786]: 10:59:33.154 [D] probe-volume.c:379: Doing probe-volume for /dev/scd0

[10786]: 10:59:33.165 [D] probe-volume.c:390: volume.block_size = 2048
[10786]: 10:59:33.165 [D] probe-volume.c:394: volume.size = 2048
[10786]: 10:59:33.171 [D] probe-volume.c:445: Disc in /dev/scd0 probably blank
[10786]: 10:59:33.175 [D] probe-volume.c:471: get_disc_type returned 0x1b
[10786]: 10:59:33.178 [D] probe-volume.c:542: volume.disc.capacity = 4700372992
10:59:33.185 [I] hald_dbus.c:1342: volume.block_size -> 2048
10:59:33.185 [I] hald_dbus.c:1350: volume.size -> 2048
10:59:33.185 [I] hald_dbus.c:1334: volume.disc.type -> unknown
10:59:33.185 [I] hald_dbus.c:1366: volume.disc.has_audio -> False
10:59:33.185 [I] hald_dbus.c:1366: volume.disc.has_data -> False
10:59:33.185 [I] hald_dbus.c:1366: volume.disc.is_blank -> False
10:59:33.185 [I] hald_dbus.c:1366: volume.disc.is_appendable -> False
10:59:33.185 [I] hald_dbus.c:1366: volume.disc.is_rewritable -> False
10:59:33.185 [I] hald_dbus.c:1366: volume.disc.is_blank -> True
10:59:33.185 [I] hald_dbus.c:1342: volume.block_size -> 0
10:59:33.185 [I] hald_dbus.c:1334: volume.disc.type -> dvd_plus_r
10:59:33.185 [I] hald_dbus.c:1350: volume.disc.capacity -> 4700372992
pid 10786: rc=0 signaled=0: /usr/lib/hal/hald-probe-volume
10:59:33.188 [I] blockdev.c:387: entering; exit_type=0, return_code=0
10:59:33.191 [I] blockdev.c:141: Add callouts completed udi=/org/freedesktop/Hal/devices/volume_empty_dvd_plus_r
10:59:33.191 [D] device_store.c:516: adding 0x6bd240 to (linux.sysfs_path,/sys/block/sr0/fakevolume)
10:59:33.191 [I] hald.c:108: Added device to GDL; udi=/org/freedesktop/Hal/devices/volume_empty_dvd_plus_r