Chris Pickett wrote:
Hi,
I have a 700 Mb CD-R that I wrote with IBM's DLA software a couple of years ago in Windows 2000. For one reason or another, the disc is unreadable; I don't remember a power failure or premature ejection. At the time I tried to let the IBM stuff finalize the disc, but it was never able to, and just hung. I think I tried a couple of shareware things at the time to see if it could be read at all but never made any progress. Strangely I can read all of the other discs written with the same tool.
Now I no longer have a CD-RW drive in my computer. I do have a CD-RW in an iBook G4, but it won't even keep the disc in, it just spits it out after trying to mount it. I would like to try and recover the files using my Thinkpad SD-C2302 CD-R/DVD drive.
I have Gentoo installed, with the 2.6.5 gentoo-dev kernel, patched with the final April 13th 2.6.5 patch at
http://w1.894.telia.com/~u89404340/patches/packet/2.6/packet-2.6.5.patch.bz2
I compiled in support for the packet block device and also the UDF filesystem, and /dev/pktcdvd0 exists (so do pktcdvd[1..7]), and so does /dev/pktcd0, with major device number 97, minor 0 (or 1..7 for the others).
I also have mkudffs, pktsetup, and cdrwtool installed.
I noticed some instructions about extra parameters in /usr/src/linux/Documentation/filesystems/udf.txt, but I'm not sure how I specify these. Anyway:
# pktsetup /dev/pktcdvd0 /dev/hdc
(( from dmesg )) Apr 16 02:18:50 miumiu hdc: packet command error: status=0x51 { DriveReady SeekComplete Error } Apr 16 02:18:50 miumiu hdc: packet command error: error=0x30 Apr 16 02:18:50 miumiu ATAPI device hdc: Apr 16 02:18:50 miumiu Error: Medium error -- (Sense key=0x03) Apr 16 02:18:50 miumiu (reserved error code) -- (asc=0x57, ascq=0x00) Apr 16 02:18:50 miumiu The failed "Read Cd/Dvd Capacity" packet command was: Apr 16 02:18:50 miumiu "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 " Apr 16 02:18:50 miumiu cdrom: This disc doesn't have any tracks I recognize! Apr 16 02:18:50 miumiu pktcdvd: writer 0 mapped to hdc
# mount -t udf /dev/pktcdvd0 /mnt mount: /dev/pktcdvd0: can't read superblock
(( no output in dmesg for the mount ))
Also the same message for /dev/pktcd0 -- which I think I created myself -- and it doesn't matter if I specify the filesystem type as udf or iso9660 -- I think once these CD's are finalized they appear like iso9660's so that's why I tried that; that is probably gibberish mind you.
# pktsetup -d /dev/pktcdvd0
(( from dmesg )) Apr 16 02:26:01 miumiu pktcdvd: writer 0 unmapped
So ........... do you think there's any hope for me, what else can I try, and what is the exact sequence / magic dance to specify these recovery parameters (I'm using grub, if they're boot-time parameters; otherwise I need to know how to specify them at module load time and if it would even make a difference in the first place to have these things compiled as modules)? Apologies for any newbieness; it's my first real linux installation.
Cheers, Chris
P.S. Please CC replies, in case I unsubscribe in the future and then somebody writes me a response.
If I understood correctly, this has nothing to do with pktcdvd which presents writing ability to cdrws; but you suffer from read failures, no? In order to read and recover your data, you should try doing a # mount -t udf /dev/hdc /mnt/somewhere If it mounts then it mounts, if not then you have problems and chances are that it might not be recoverable based on past experience :( I don't know what those ibm dla stuff are, so are you sure it is udf? You may want to try without the -t udf option again.. Regards; Özkan Sezer