Unable to read UDF fs on a DVD
Hi,
I'm trying to read a DVD+RW disk with a UDF fs on it. The disk was created under Windows, using Easy CD Creator (don't know the details).
I can mount (kernel 2.6.5) w/o problems:
root@dreamland:~# mount -t udf -oro /dev/hdc /cdrom
dmesg:
udf: registering filesystem
UDF-fs DEBUG fs/udf/lowlevel.c:57:udf_get_last_session: XA disk: no, vol_desc_start=0
UDF-fs DEBUG fs/udf/super.c:1546:udf_fill_super: Multi-session=0
UDF-fs DEBUG fs/udf/super.c:534:udf_vrs: Starting at sector 16 (2048 byte sectors)
UDF-fs DEBUG fs/udf/super.c:561:udf_vrs: ISO9660 Primary Volume Descriptor found
UDF-fs DEBUG fs/udf/super.c:570:udf_vrs: ISO9660 Volume Descriptor Set Terminator found
UDF-fs DEBUG fs/udf/super.c:877:udf_load_pvoldesc: recording time 1082448386/0, 2004/04/20 09:06 (103c) UDF-fs DEBUG fs/udf/super.c:888:udf_load_pvoldesc: volIdent[] = 'CDROM'
UDF-fs DEBUG fs/udf/super.c:895:udf_load_pvoldesc: volSetIdent[] = '040420_0906'
UDF-fs DEBUG fs/udf/super.c:1087:udf_load_logicalvol: Partition (0:0) type 1 on volume 1
UDF-fs DEBUG fs/udf/super.c:1097:udf_load_logicalvol: FileSet found in LogicalVolDesc at block=0, partition=0 UDF-fs DEBUG fs/udf/super.c:925:udf_load_partdesc: Searching map: (0 == 0)
UDF-fs DEBUG fs/udf/super.c:1007:udf_load_partdesc: Partition (0:0 type 1511) starts at physical 257, block length 2172880 UDF-fs DEBUG fs/udf/super.c:1340:udf_load_partition: Using anchor in block 256
UDF-fs DEBUG fs/udf/super.c:1573:udf_fill_super: Lastblock=0
UDF-fs DEBUG fs/udf/super.c:849:udf_find_fileset: Fileset at block=0, partition=0
UDF-fs DEBUG fs/udf/super.c:911:udf_load_fileset: Rootdir at block=2, partition=0
UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'CDROM', timestamp 2004/04/20 10:06 (1078)
But I'm unable to stat/read/whatever the files:
root@dreamland:~# ls /cdrom /bin/ls: /cdrom/Bakuretsu Tenshi - 01.avi: No such file or directory /bin/ls: /cdrom/Bakuretsu Tenshi - 02.avi: No such file or directory [etc]
I can mount the disk and read it using ISO9660 instead of UDF (filenames are 8+3, no Joliet it seems), and I can read it under WinXP. It shouldn't be damaged.
Any clue?
Luca
Signature · 3 lines
Home: http://kronoz.cjb.net "Su cio` di cui non si puo` parlare e` bene tacere". Ludwig Wittgenstein
Quoted 7 lines
DVD+RW ... UDF ... can mount (kernel 2.6.5) w/o problems:
...# mount -t udf -oro/dev/hdc/cdrom
dmesg:
udf: registering filesystem
...
UDF-fs INFO UDF 0.9.8.1 (2004/29/09) Mounting volume 'CDROM', timestamp 2004/04/20 10:06 (1078)
...
So far so good.
Quoted 10 lines
But ... unable to stat/read/whatever the files:
....# ls /cdrom
/bin/ls: /cdrom/Bakuretsu Tenshi - 01.avi: No such file or directory/bin/ls: /cdrom/Bakuretsu Tenshi - 02.avi: No such file or directory [etc]I can mount the disk and read it using ISO9660 instead of UDF (filenames are 8+3, no Joliet it seems), and I can read it under WinXP. It shouldn't be damaged.
Q1) Any Linux dmesg as you try to read or umount?
Q2) What text does the DIR /S command of Windows produce?
Quoted 2 lines
created under Windows, using Easy CD Creator
(don't know the details).
Q3) What does Linux fsck tell you, before you mount -o ro (or after you umount)?
Pat LaVarre
P.S. The subscriber-only archives of linux_udf@h... currently show Linux-2.6.5 issues now under discussion, including an issue people have reproduced by downloading a huge trial .exe into Windows and then copying a file of more than 2 GiB to the disc.
-----Forwarded Message-----
From: Pat LaVarre
Cc: linux_udf@h...
Subject: Re: Bug with UDF file system
Date: 20 Apr 2004 10:34:47 -0600
...
My own most recent blog re the mystery of install & run of the phg fsck in Linux from virus-free source is:
phg fsck of UDF for Linux
http://udfko.blog-city.com/read/577369.htm
...
Il Fri, Apr 23, 2004 at 11:56:42AM -0600, Pat LaVarre ha scritto:
Quoted 10 lines
Quoted 8 lines
....# ls /cdrom
/bin/ls: /cdrom/Bakuretsu Tenshi - 01.avi: No such file or directory/bin/ls: /cdrom/Bakuretsu Tenshi - 02.avi: No such file or directory [etc]I can mount the disk and read it using ISO9660 instead of UDF (filenames are 8+3, no Joliet it seems), and I can read it under WinXP. It shouldn't be damaged.
Q1) Any Linux dmesg as you try to read or umount?
No, nothing at all.
Quoted 1 line
Q2) What text does the DIR /S command of Windows produce?
Il volume nell'unita D e CDROM
Numero di serie del volume: A381-DC88
Directory di D:\
10/04/2004 20.59 240.695.296 Bakuretsu Tenshi - 01.avi 16/04/2004 15.13 240.715.776 Bakuretsu Tenshi - 02.avi 13/04/2004 18.57 182.452.224 Full Metal Alchemist - 11.avi 13/04/2004 18.57 182.452.224 Full Metal Alchemist - 12.avi 13/04/2004 18.57 182.452.224 Full Metal Alchemist - 13.avi 13/04/2004 18.57 178.257.920 Full Metal Alchemist - 14.avi 13/04/2004 18.57 178.257.920 Full Metal Alchemist - 15.avi 14/04/2004 15.55 178.257.920 Full Metal Alchemist - 16.avi 14/04/2004 15.55 178.257.920 Full Metal Alchemist - 17.avi 14/04/2004 15.55 178.257.920 Full Metal Alchemist - 18.avi 14/04/2004 15.35 178.257.920 Full Metal Alchemist - 19.avi 14/04/2004 15.35 178.257.920 Full Metal Alchemist - 20.avi 17/04/2004 15.15 178.257.920 Full Metal Alchemist - 21.avi 17/04/2004 17.32 178.257.920 Full Metal Alchemist - 22.avi 17/04/2004 20.41 178.257.920 Full Metal Alchemist - 23.avi 18/04/2004 01.26 178.257.920 Full Metal Alchemist - 24.avi 18/04/2004 11.07 178.257.920 Full Metal Alchemist - 25.avi 18/04/2004 16.48 178.257.920 Full Metal Alchemist - 26.avi 13/04/2004 10.26 178.257.920 Full Metal Alchemist - 27.avi 19/04/2004 11.30 184.088.576 Full Metal Alchemist - 28.avi 14/02/2004 12.41 224.397.312 Ghost in the Shell - Stand Alone Complex - 00.avi 14/02/2004 12.13 147.292.160 Ghost in the Shell - Stand Alone Complex - 01.avi 14/02/2004 21.28 187.267.072 Ghost in the Shell - Stand Alone Complex - 02.avi 13/04/2004 04.12 182.564.864 Planetes - phase 13.avi
24 File 4.449.988.608 byte
Totale file elencati:
24 File 4.449.988.608 byte
0 Directory 0 byte disponibili
Quoted 5 lines
Quoted 2 lines
created under Windows, using Easy CD Creator
(don't know the details).Q3) What does Linux fsck tell you, before you mount -o ro (or after you umount)?
I used udfct utility (from Philips). The output is quite long, I put it here:
http://web.tiscali.it/kronoz/ucf_test.log
I don't see anything strange.
Btw, don't know if it's related but I was unable to run ucf_test without scsi emulation: it complained about unknown image chunk size. I can't read files even with ide-scsi, though.
Quoted 4 lines
P.S. The subscriber-only archives of linux_udf@h... currently show Linux-2.6.5 issues now under discussion, including an issue people have reproduced by downloading a huge trial .exe into Windows and then copying a file of more than 2 GiB to the disc.
I think that this is a different issue, files on my disk are smaller.
thanks,
Luca
Signature · 3 lines
Home: http://kronoz.cjb.net Porc i' mond che cio' sott i piedi! V. Catozzo
Quoted 2 lines
http://web.tiscali.it/kronoz/ucf_test.log
I don't see anything strange.
I now agree, that disc passed fsck and mount well enough to make the ls failure interesting.
What to try next after fsck passes, I do not know, ouch, sorry.
Offline I'm working to comment the fs/udf/ source. Even me finishing that might not do you much good, unless we can figure out how to reproduce your trouble at my desk.
Pat LaVarre
P.S. Five postscripts:
1)
Quoted 1 line
even with ide-scsi, though.
Whoa. You weren't engaging in the taboo act of running ide-scsi in 2.6 back when ls failed, were you? (If you are, then please remove ide-scsi, substitute ide-cd, and confirm or deny that exercise actually made no difference.)
2)
The disc didn't actually pass the phgfsck without complaint: The standard phgfsck egrep is:
$ egrep -i '(info|warning|error):' http://web.tiscali.it/kronoz/ucf_test.log PVD 72 Warning: Volume Set Identifier: "040420_0906", PVD 72 Warning: Volume Set Identifier: "040420_0906", Error: Number of AVDPs less than 2: 1, AVDP at 256 $
Non-compliance!
All the same, I'm guessing these complaints do Not explain the ls failure, since to my newbie ear these sound like mount issues and we know you can mount.
3)
I can't now rapidly reproduce the collection of file lengths you report, because sparse files in UDF, even when the underlying volume is not sparse, as yet crash my Linux-2.6.5.
3)
Quoted 3 lines
Btw, don't know if it's related but I was unable to run
ucf_testwithout scsi emulation: it complained about unknown image chunk size. I can't read files even with ide-scsi, though.
Yes phgfsck trouble like that is normal, thanks for asking.
4)
Quoted 6 lines
Quoted 4 lines
P.S. The subscriber-only archives of linux_udf@h... currently show Linux-2.6.5 issues now under discussion, including an issue people have reproduced by downloading a huge trial .exe into Windows and then copying a file of more than 2 GiB to the disc.I think that this is a different issue, files on my disk are smaller.
I agree your conclusion is reasonable, I do not myself yet know the udf.ko code well enough to firmly confirm or deny your conclusion.
5)
Quoted 1 line
Any chance this link will still work, a year from now? (I ask because I'm hoping to see a collection of observed UDF non-compliance come into being.)
Il Fri, Apr 23, 2004 at 02:21:15PM -0600, Pat LaVarre ha scritto:
Quoted 8 lines
P.S. Five postscripts:1)
Quoted 1 line
even with ide-scsi, though.
Whoa. You weren't engaging in the taboo act of running ide-scsi in 2.6 back when ls failed, were you?
No, I wasn't. I'm aware that ide-scsi is not needed with 2.6. I had to recompile the kernel with ide-scsi to make Philips fsck happy.
Quoted 5 lines
3)
I can't now rapidly reproduce the collection of file lengths you report, because sparse files in UDF, even when the underlying volume is not sparse, as yet crash my Linux-2.6.5.
Well, Ben Fennema said that he has identified the issue. If it can be usefull I can have my friend burn another DVD (with less data) with Easy CD and upload the image somewhere.
Quoted 5 lines
5)
Quoted 1 line
Any chance this link will still work, a year from now?
Yup, no problem.
Luca
Signature · 3 lines
Home: http://kronoz.cjb.net Alcuni pensano che io sia una persona orribile, ma non e` vero. Ho il cuore di un ragazzino - in un vaso sulla scrivania.
Quoted 7 lines · Kronos
Il Fri, Apr 23, 2004 at 02:21:15PM -0600, Pat LaVarre ha scritto:
Quoted 5 lines
P.S. Five postscripts:1)
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
even with ide-scsi, though.
Whoa. You weren't engaging in the taboo act of running ide-scsi in 2.6 back when ls failed, were you?
No, I wasn't. I'm aware that ide-scsi is not needed with 2.6. I had to recompile the kernel with ide-scsi to make Philips fsck happy.
I believe that it would be more correct to say that ide-scsi is not required to burn CDs and DVDs, providing you use cdrecord which has been modified to work with ide-cd. Since that's the major use it equates to "not needed" if that's all you do.
As you seem to note, some DVD burners don't work without ide-scsi unless you have some tricks and/or patches, but do work with ide-scsi. Yes, even in 2.6.
I totally agree you should try to run without it, but I'd compile it as a module in case you need some additional data points.
Signature · 3 lines
-bill davidsen ([email protected]) "The secret to procrastination is to put things off until the last possible moment - but no longer" -me
Kronos:
Quoted 3 lines
Well, Ben Fennema said that he has identified the issue. If it can be usefull I can have my friend burn another DVD (with less data) with Easy CD and upload the image somewhere.
1) Useful to Ben, maybe not, Ben already understands much.
2) Useful to you, maybe not, maybe nobody on Earth but Ben can help you rapidly.
3) Useful to me, yes. You put the image on the web, and I'll try to download it, try to reproduce your trouble, and then try to find time to learn ever more about how unamerican chars work inside udf.ko.
Quoted 7 lines
Quoted 5 lines
5)
Quoted 1 line
Any chance this link will still work, a year from now?
Yup, no problem.
Thank you, now blogged as the first of:
udf fsck failures observed
http://udfko.blog-city.com/read/585805.htm
Pat LaVarre