hal detects written DVD as empty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mandriva |
Invalid
|
Undecided
|
Unassigned | ||
Suse |
Invalid
|
Undecided
|
Unassigned | ||
hal (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
I tested with two different discs. In both cases, the discs were DVD+RW
rewritable media with Ubuntu live CD images on them:
volume.
volume.
volume.
volume.
volume.
volume.disc.type = 'dvd_rom' (string)
The same discs in a powerpc system say this:
volume.
volume.
volume.
volume.
volume.
volume.disc.type = 'dvd_rom' (string)
In both cases this is wrong; the correct values would be is_rewritable=true,
is_blank=false, and has_data=true, but I'm not sure that DVD-ROM drives can
detect all of this correctly.
In any case, the behaviour in the desktop is correct on the powerpc (opens
Nautilus), while on the amd64 I get a burn:/// icon on the desktop.
Martin Pitt (pitti) wrote : | #1 |
Martin Pitt (pitti) wrote : | #2 |
- revised script Edit (757 bytes, text/plain)
Created an attachment (id=1948)
revised script
Sorry, attached old version previously
Martin Pitt (pitti) wrote : | #3 |
I attached a small script that prints out the value of the relevant ioctl()s.
These do not really work for me either, even my DVD-RAM/+-RW drive does not
detect the capabilities correctly, I only ever get a disc status of 101 (meaning
that this is a data CD-ROM). However, can you please run
python cdcaps.py /dev/yourcdromd
and put the output here?
In any case I'm afraid that there is not much that hal can do about this. This
is either a kernel problem or the hardware simply doesn't report the disc type
correctly.
Matt Zimmerman (mdz) wrote : | #4 |
CDO_USE_FFLAGS returned 13
got drive capabilities: 389fef
CDC_DVD support
got disc status: 0
Martin Pitt (pitti) wrote : | #5 |
Hal entirely relies on the CDROM_GET_
blatantly lies about this, there is not much that hal can do about this.
Martin Pitt (pitti) wrote : | #6 |
(In reply to comment #5)
> Hal entirely relies on the CDROM_GET_
> blatantly lies about this, there is not much that hal can do about this.
I talked with Fabio, the wrongly detected capabilities seems to be not really a
kernel, but a hardware bug.
The only issue we can do something about is the
volume.
thing, which really looks wrong.
Fabio Massimo Di Nitto (fabbione) wrote : | #7 |
(In reply to comment #6)
> (In reply to comment #5)
> > Hal entirely relies on the CDROM_GET_
> > blatantly lies about this, there is not much that hal can do about this.
>
> I talked with Fabio, the wrongly detected capabilities seems to be not really a
> kernel, but a hardware bug.
Well the hardware returns these info to the kernel. Are the readers of the same
kind?
is it the same shared or 2 different kinds?
If the hw doesn't properly detect the media, the kernel has no way to know :/
Fabio
Martin Pitt (pitti) wrote : | #8 |
*** Bug 23256 has been marked as a duplicate of this bug. ***
Martin Pitt (pitti) wrote : | #9 |
*** Bug 23558 has been marked as a duplicate of this bug. ***
Martin Pitt (pitti) wrote : | #10 |
There have been several reports about this now, so I'd like to take a closer
look to this.
Can anyone give me an ssh login on a box where this happens? My user needs to be
in group "cdrom", and I need the hal build dependencies.
https:/
Thanks!
Martin Pitt (pitti) wrote : | #11 |
Just a ping, can anyone reproduce this on current Dapper? If so, can you provide me with an ssh login so that I can debug this?
FrejSoya (frej) wrote : | #12 |
I have a similar issue where vol_id (udev) is correct and hal is wrong. retail depeche mode DVD is set as blank.
I am behind a firewall... so would require some funky port forwarding for ssh.
If there is anyway other way to help debugging please let me now :)
J (jltty-deactivatedaccount) wrote : | #13 |
This bug is still alive. It has appeared on my computer. I'm using dapper drake 6.06. I have a sata dvd burner. I have verified that it is indeed either hal or gnome-volume-
my cds work normally. One thing is this. Once gnome-volume-
But here is the general pattern
CD-r mostly work.
Dvd-rs sometimes work.
Dvd-rw's rarely work.
Cd roms always work.
Dvd-roms (real ones with print and artsy fartsy stuff on them) sometimes fail.
I went through a set of cds in my 25 cd case book to determine this. Far from exhaustive, scientific expirement. But my cumulative experience seems to tell me burnt dvds don't do terribly good with Ubuntu. Atleast with my particular dvd drive.
Unfortunately I do not have a spare dvd rom to test this with. Atleast one of any merit.
This bug is still alive. It has appeared on my computer. I'm using dapper drake 6.06. I have a sata dvd burner. I have verified that it is indeed either hal or gnome-volume-
But here is the general pattern
CD-r mostly work.
Dvd-rs sometimes work.
Dvd-rw's rarely work.
Cd roms always work.
Dvd-roms (real ones with print and artsy fartsy stuff on them) sometimes fail.
I went through a set of cds in my 25 cd case book to determine this. Far from exhaustive, scientific expirement. But my cumulative experience seems to tell me so.
Take a look at the verbose output from gnome-volume manager. All the discs are valid discs. You'll get a general feel of what I'm getting here.
test@user-
test@user-
gnome-volume-
test@user-
manager.c/751: setting[0]: bool: autobrowse = 1
manager.c/751: setting[1]: bool: autoburn = 0
manager.c/746: setting[2]: string: autoburn_
manager.c/746: setting[3]: string: autoburn_
manager.c/751: setting[4]: bool: autoipod = 1
manager.c/746: setting[5]: string: autoipod_command = rhythmbox
manager.c/751: setting[6]: bool: autokeyboard = 0
manager.c/746: setting[7]: string: autokeyboard_com...
fubadubrub (fubadubrub) wrote : | #14 |
Hello I can confirm this bug as well. I recently installed a new DVD burner the Plextor PX-760A a dual layer DVD burner on pata. CD disc worked perfectly but not DVDs. Howver running the python script attachment available here allows the DVD burner to work perfectly for DVD disc as well. The DVD burner is a secondary master with no secondary slave. It is E-IDE (ATAPI).
Am I correct in assuming that I can run your python script automatically via sessions>startup programs menu entry?
python cdcaps.py /dev/hdc
CDO_USE_FFLAGS returned 13
got drive capabilities: 21ffef
CDC_DVD_R support
CDC_DVD support
CDC_CD_RW support
CDC_CD_R support
got disc status: 0
fubadubrub (fubadubrub) wrote : | #15 |
Running the python script attachment available here allows the DVD burner to work perfectly for DVD disc as well. From comment above.
Should have added sometimes, it is touch and go. The script does not always get Plextor burner working.
bioman (zebioman) wrote : | #16 |
hello,
I get the same problem.
I have a DVD rewriter Plextor PX-716A, and while i put any DVD in it, it's detected like a blank DVD.
I can read them only if I insert a CD before.
Burning don't work at all.
http://
dmesg report it :
"cdrom: This disc doesn't have any tracks I recognize!"
Result of cdcaps.py :
CDO_USE_FFLAGS returned 13
got drive capabilities: 39ffef
CDC_DVD_R support
CDC_DVD support
CDC_CD_RW support
CDC_CD_R support
got disc status: 0
I can give an ssh login for debug, just say me when
Marco Cimmino (cimmo) wrote : | #17 |
Same bug here with Kubuntu Edgy, but never met before with Dapper and the same hardware.
Please fix the problem, if you need a ssh login just ask, but fix this annoying problem, changed to confirmed!
Here my tests:
- bug only occurs with dvd (not cd), with ONE session closed BUT disc still open
- booting linux with the dvd inside then bug doesn't occur, BUT opening and closing the tray then bug occurs
- burning a second session to the dvd then the bug disappears!
Changed in hal: | |
status: | Needs Info → Confirmed |
Marco Cimmino (cimmo) wrote : | #18 |
and here kernel log related:
09/11/2006 17:00:14 localhost kernel [17179856.844000] Buffer I/O error on device hda, logical block 8
09/11/2006 17:00:14 localhost kernel [17179856.844000] end_request: I/O error, dev hda, sector 64
09/11/2006 17:00:14 localhost kernel [17179856.844000] hda: media error (bad sector): error=0x34 { AbortedCommand LastFailedSense
09/11/2006 17:00:14 localhost kernel [17179856.844000] hda: media error (bad sector): status=0x51 { DriveReady SeekComplete Error }
09/11/2006 17:00:14 localhost kernel [17179856.844000] ide: failed opcode was: unknown
09/11/2006 17:00:14 localhost kernel [17179856.844000] printk: 3 messages suppressed.
Marco Cimmino (cimmo) wrote : | #19 |
my burner is a NEC ND-4551A EIDE, I repeat, no problem with Dapper, with Edgy I have this bug!
Marco Cimmino (cimmo) wrote : | #20 |
run the revised script:
marco@b-52:~$ python cdcaps.py /dev/hda
CDO_USE_FFLAGS returned 13
got drive capabilities: 3bfbef
CDC_DVD_RAM support
CDC_DVD_R support
CDC_DVD support
CDC_CD_RW support
CDC_CD_R support
got disc status: 0
Jose Herran (jherran) wrote : | #21 |
I have the same problem too. Before the update to Edgy works fine, but after it does not work. Nowadays i only can read/write cdroms and read dvd format, but can't read nor write data dvds.
This is the output of the revised script:
$ ./cdcaps.py /dev/hdc
CDO_USE_FFLAGS returned 13
got drive capabilities: 3bfbef
CDC_DVD_RAM support
CDC_DVD_R support
CDC_DVD support
CDC_CD_RW support
CDC_CD_R support
got disc status: 0
dailyglen (dailyglen) wrote : | #22 |
Everything worked for me in Dapper, but now in Edgy I get this error when a DVD movie is inserted:
Nov 22 14:44:09 tartar kernel: [17439020.212000] cdrom: This disc doesn't have any tracks I recognize!
$ python ~/cdcaps.py /dev/hdb
CDO_USE_FFLAGS returned 13
got drive capabilities: 39fbef
CDC_DVD_R support
CDC_DVD support
CDC_CD_RW support
CDC_CD_R support
got disc status: 0
And from dmesg:
[17179573.796000] ACPI: PCI Interrupt 0000:00:1f.1[A] -> GSI 18 (level, low) -> IRQ 169
[17179573.796000] ICH5: chipset revision 2
[17179573.796000] ICH5: not 100% native mode: will probe irqs later
[17179573.796000] ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:pio, hdb:DMA
[17179573.796000] ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, hdd:pio
[17179573.796000] Probing IDE interface ide0...
[17179574.816000] hdb: PLEXTOR DVDR PX-708A, ATAPI CD/DVD-ROM drive
[17179574.876000] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[17179574.876000] Probing IDE interface ide1...
[17179575.452000] hdb: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)
dailyglen (dailyglen) wrote : | #23 |
Also, if I run "mplayer dvd://" it will play the video properly.
Marco Cimmino (cimmo) wrote : | #24 |
Gaele Strootman (gaele) wrote : | #25 |
I'm not sure if my problem is exactly the same, but it's pretty close. Written data DVD's aren't detected at all by my DVD writer.
1. Empty DVD's are recognized as such, and I can write to them with CD/DVD Creator.
2. Once written, if I re-enter the DVD it's not detected at all. It's not mounted.
/var/log/messages:
Dec 1 01:25:23 localhost kernel: [ 477.214504] cdrom: This disc doesn't have any tracks I recognize!
python cdcaps.py /dev/hdb:
CDO_USE_FFLAGS returned 13
got drive capabilities: 23fbef
CDC_DVD_RAM support
CDC_DVD_R support
CDC_DVD support
CDC_CD_RW support
CDC_CD_R support
got disc status: 101
System:
Ubuntu Edgy
AMD64
Pioneer DVD-RW DVR-110
However:
3. The DVD is detected and mounted by my CD-ROM writer in another computer.
System:
Ubuntu Edgy
i386
QSI CD-RW/DVD-ROM SBW242U
I tried this with several DVD's, including some old ones written on Dapper.
Macknal (mark-mcnally) wrote : | #26 |
I upgraded to Edgy this weekend from Dapper. DVD's were working just fine in dapper and now I'm having general problems in Edgy. I can get movie DVD's to work with mplayer but not with totem. The output from the revised script above with the movie DVD in the drive and manually mounted is
CDO_USE_FFLAGS returned 13
got drive capabilities: 21fbef
CDC_DVD_R support
CDC_DVD support
CDC_CD_RW support
CDC_CD_R support
got disc status: 0
Macknal (mark-mcnally) wrote : | #27 |
Incidentally, dmesg output shows a series of lines:
cdrom: This disc doesn't have any tracks I recognize!
related to my recent dvd tests.
Macknal (mark-mcnally) wrote : Problem resolved itself - with some help? | #28 |
The problem where my DVD movies were not being recognized by Edgy and spawning Totem (this worked in Dapper) has somehow resolved itself. The steps I took they may have impacted this were to change the DVD's jumper (the Master/Slave/Auto ones) from the second to the first (towards the redbook audio cable). After a second reboot (my first reboot had the DVD's remain unrecognized), I was able to see DVD labels on the desktop and Totem would be spawned automatically to begin viewing the movie.
It is interesting that in order for me to install Edgy, I had to change the jumper from Auto to Master (or what I thought was master) because in Auto mode, the Edgy install would fail and I would notice I/O Errors on /dev/hdc.
Marco Cimmino (cimmo) wrote : | #29 |
Macknal I haven't understood anything. Which is the ones that let you fix the problem? Master/Slave/Cable Select?
In my case is Master (I have only one drive pata) and I have the problem
Jose Herran (jherran) wrote : | #30 |
Well i use a laptop so i can't touch dvd jumpers.
oleibrock (oliver-leibrock) wrote : | #31 |
Same Problem on a Acer Ferrari 5005WLHi AMD Turion 64bit X2 2.0GHz Processor, 2 GB RAM, 160GB S-ATA HDD, Toshiba DVDW/HD TS-L802A Laptop with 6.06 LTS amd64 installed.
Used the python cdcaps.py /dev/hda and it worked partial, means I can now sudo mount /dev/hda /cdrom and work with the CD/DVD. No Dekstop Icon and still get first the "this is a blank CD/DVD" popup and the dmesg output:
"cdrom: This disc doesn't have any tracks I recognize!"
Interessting is at my Laptop that the HDD is on /dev/sda and the CD/DVD drive on /dev/hda .... Does this make any differrence ?
saads (shakhshir) wrote : | #32 |
I have the exact same behavior as oleibrock with a brand new LG GSA-H22L DVD writer. When I first insert the burnt DVD-R I get "this is a blank CD/DVD" popup and in dmesg I see: "cdrom: This disc doesn't have any tracks I recognize!"
Then I run the python script and manually mount the drive to /media/cdrom1 and then I can access it fine. If I don't run the script and I try to mount then the mount point remains empty.
Vassilis Pandis (pandisv) wrote : | #33 |
Is there a reason the mandriva and suse tasks exist?
Vladimir Lushnikov (vladimir-lu) wrote : | #34 |
Hello!
I apologise - I don't use SuSe, Ubuntu etc., but rather Gentoo - however I am experiencing a similar problem.
I have an Amilo M3438G laptop running 2.6.20-gentoo (that's ICH6 for the IDE controller) and my DVD drive is /dev/hda.
Here's the output of python cdcaps.py /dev/hda:
CDO_USE_FFLAGS returned 13
got drive capabilities: 21fbef
CDC_DVD_R support
CDC_DVD support
CDC_CD_RW support
CDC_CD_R support
got disc status: 0
I burn video-dvds with NeroLinux usually (NeroLinux 2.1.0.3). The dvds work fine in Windows and on standalone dvd players - just not in linux. Here's an example:
sphynx ~ # dvd+rw-mediainfo /dev/hda
INQUIRY: [_NEC ][DVD+-RW ND-6650A][1.42]
GET [CURRENT] CONFIGURATION:
Mounted Media: 1Bh, DVD+R
Media ID: SONY/D21
GET [CURRENT] PERFORMANCE:
.......
READ DISC INFORMATION:
Disc status: appendable
Number of Sessions: 1
State of Last Session: incomplete
"Next" Track: 1
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: invisible
Track Start Address: 0*2KB
Next Writable Address: 2291232*2KB
Free Blocks: 3872*2KB
Track Size: 2295104*2KB
READ CAPACITY: 0*2048=0
An invisible track? UDF support is in the kernel.
The kernel compains in dmesg "cdrom: This disc doesn't have any tracks I recognize!" and when I try to mount the disc as UDF it says:
hda: packet command error: status=0x51 { DriveReady SeekComplete Error }
hda: packet command error: error=0x54 { AbortedCommand LastFailedSense
ide: failed opcode was: unknown
ATAPI device hda:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "<NULL>" packet command was:
"ad 00 00 00 00 00 00 01 00 08 00 00 00 00 00 00 "
Error in command packet byte 7 bit 0
cdrom: This disc doesn't have any tracks I recognize!
This is not a hardware problem - the disc plays fine in WinXP. Also, if I open the disc in Nero I can browse the directories on it!
I don't know what the problem seems to be - I have got conflicting advice from my google searches, but the point is, the error is similar across a lot of different possible causes.
Regards,
Vladimir
Carlos Costa (carlosvailer) wrote : | #35 |
Hi,
I'm brazilian, so sorry for my bad english ; )
i'm using linux for a while and since the last month i'm running Ubuntu. First was Dapper and then upgrade to Edgy Eft.
Everything was just fine until a couple of days ago. I tried to backup my wedding dvd (sony dvd-r made in adobe encore with open session) and the system tried to mount it without success and reconigzed it as a blank disc. But the worst thing is that after that even windows and my standalone player can read my dvd. It's damaged for good! I repeat: my dvd-r became garbage after i tried to simply mount it under Ubuntu!!!
For my luck, there is a copy from my dvd i made with windows xp before this awful episode...thanks god!
I can tell if this bug is present in Dapper because i never had the chance to backup an open session dvd-r with Ubuntu before the related attempt here.
I'd never believe such thing is possible and i think most of you too.
To me this kind of bug should be labled as "critical".
Anyone had face something like what happened to me?
Cheers,
Carlos
Martin Pitt (pitti) wrote : | #36 |
Carlos, unless the dvd-r is really a dvd-rw, then it is impossible to damage it by merely mounting it. Even if it is an -rw, you cannot write to it by mounting it, this would require a special packet writing setup which Ubuntu does not support out of the box yet.
It's much more likely that the DVD simply became physically damaged due to dust, scratches, etc. If you insert it, can you do
dmesg > dmesg.txt
and attach dmesg.txt here? If you do another copy of that DVD, is it recognized and mounted in Ubuntu?
Martin Pitt (pitti) wrote : | #37 |
Closing unrelated Mandriva and SuSE tasks.
Carlos Costa (carlosvailer) wrote : | #38 |
Hi, Martin
Well, maybe i became nuts!!!
But what i said was exactly what happened and not only with one dvd... i just lost another copy from the same sony dvd-R brand while trying to mount it once again in edgy eft yesterday.
And it's impossible that the disc was damaged before by dust, scratch and others: i married 2 months ago!
I'm on windows now, but i'll try again later and let you guys know.
Wish me luck : (
Carlos
Vaughn Marshall (vaughn-marshall) wrote : | #39 |
Hi Martin,
I'm not sure if this is related to this bug but I have the exact same issue as Carlos.
It destroyed 3 DVDs before I figured out mounting DVDs in Ubuntu was causing the problem. The disks were originally burned using Windows and I validated I could open them in Windows and a regular DVD player. Once opening them in Ubuntu, the disk would try to read and would launch Totem. Totem would not play the DVD and would only show a blank screen. After closing Totem and unmounting the disk, it was no longer readable in either Windows or Ubuntu. The syslog was full of entries such as
[17187136.248000] UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'My DVD', timestamp 2006/12/04 15:46 (1f10)
[17187199.428000] hda: command error: status=0x51 { DriveReady SeekComplete Error }
[17187199.428000] hda: command error: error=0x50 { LastFailedSense
[17187199.428000] ide: failed opcode was: unknown
[17187199.428000] end_request: I/O error, dev hda, sector 1308
[17187199.428000] Buffer I/O error on device hda, logical block 327
I have an LG GSA-H22N DVD burner. Let me know if you would like anymore information.
Thanks,
Vaughn Marshall
Vaughn Marshall (vaughn-marshall) wrote : | #40 |
Sorry - one more note - all DVDs in question were DVD-Rs - not RWs.
Vaughn
zpolaris (csardini) wrote : | #41 |
Hi all,
i'm italian, sorry for my english.
I notice the same problem with my HP Pavilion zt1155 with combo DVD reader/CD-RW writer.
But the news is that when i use my USB U3 2GB memory (SanDisk Cruzer Micro) it mount two external unit (this behavior is correct), one is CDROM unit and the other is Removable media. The CDROM unit look empty!
Let me know if need anymore informations.
Bye,
Claudio.
Facundo Batista (facundo) wrote : | #42 |
Hi,
This is just to confirm the different behaviours...
Clean install of Ubuntu Feisty Fawn, new DVD burner, a Sony DRU-830A. It's not reading the burned DVDs, always have this line in dmesg:
cdrom: This disc doesn't have any tracks I recognize!
No change playing with drive jumpers.
This is what I get with the attached revised code (no changes noticed *after* executing it):
facundo@atlonico:~$ python test_cd.py /dev/hdb
CDO_USE_FFLAGS returned 13
got drive capabilities: 3bfbef
CDC_DVD_RAM support
CDC_DVD_R support
CDC_DVD support
CDC_CD_RW support
CDC_CD_R support
got disc status: 0
At boot, this is how it recognize the drive:
hdb: SONY DVD RW DRU-830A, ATAPI CD/DVD-ROM drive
hdb: ATAPI 94X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
BTW, the behaviour that is seeing Carlos *happens*. A friend of mine destroyed around ten DVDs that way, with an LG driver in an Edgy, until he got tired and changed the drive.
Anything I could help. just ask.
Thank you!!
ccc1 (cllccl-deactivatedaccount) wrote : | #43 |
Same problem here with a plextor 755a on feisty. my other drive which is a samsung works fine.
bioman (zebioman) wrote : | #44 |
Fixed in the last Feisty updates (HAL) !!!
Changed in hal: | |
status: | Confirmed → Fix Released |
Tom Moyer (tom-tom) wrote : | #45 |
This problem really doesn't seem fixed, I have a drive similar to one posted above (Toshiba TS-L802A) and it is still detecting disks as empty, but I can manually mount them. I don't understand how this is a fix?
Gaele Strootman (gaele) wrote : | #46 |
It's fixed for me (see comment #25):
Ubuntu Feisty
AMD64
Pioneer DVD-RW DVR-110
Tom Moyer (tom-tom) wrote : | #47 |
Used the hal backport (which appears to be the most recent) and it is still reporting all disks as empty, or not detecting them at all. I was able to successfully install Feisty Fawn with the DVD drive, but it still fails to detect the discs that are inserted. I tested this with the kernel from installation (2.6.20-12) and also with 2.6.20-15 and -16 and they all failed. Tested with two versions of HAL (fresh install and from feisty-backports)
Facundo Batista (facundo) wrote : | #48 |
Gaele, note that after I have the problem with the DVD, I went to the shop and changed it. I bought a Pioneer DVR-110, and it worked great.
So, maybe, the problem is not solved, this hardware just works in Feisty.
(BTW, I contacted LG, telling about the problem, they told me "we don't support Linux", so I answered "Ok, I'll change it for another brand, and I'll never buy LG hardware again, thanks"; we should do this more often...).
Regards,
Created an attachment (id=1947)
script to check CD-ROM capabilities
Usage:
python cdcaps.py <device>