Re: linux kernel error reading end of cd/dvd
>From: Andy Polyakov <appro@fy.chalmers.se>
>> > If you really have to
>> > checksum the whole image, then make sure to bypass the block buffer
>> > *and* provide sane block count value. A.
>>
>> Obvious question ;): is there an easy way to bypass the block buffer?
>Well, already mentioned readcd effectively bypasses the block buffer,
>but you can trick Linux kernel to bypass it by binding the device to
>/dev/raw/rawN and referring to the latter instead of real device
>(there're limitations though, consult the manual page).
>> What value do you call "sane" - count=N with N <= isoinfo -d?
>"Sane block count" is obviously the number of last *significant* block.
>Yes, for mkisofs mastered images the value returned by isoinfo suffices.
>A.
Not if this is e.g. a Solaris boot CD.....
Jörg
--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni) If you don't have iso-8859-1
schilling@fokus.fraunhofer.de (work) chars I am J"org Schilling
URL: http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily
Reply to: