On Mon, Apr 23 2001, Ludovico Cavedon wrote:
Hi, I'm interested in packet writing and I've benn following thil ML for some weeks. Now I had time to try it on my computer. I followed the instructions. 1.Quick setup of a cd-rw 2.Mounted and unmounted it without writing (I hope the messages it wrote are only debug stuff, not errors...) 3. Mounted it again and copy 20 Mb in three files (sorry, my writer is only a 2x and i had not the time to thy the source kernel tree) 4. Unmounted
The data is all readable, through windows too. But data is corruped: i use cmp to compare the files and they were different.
I've attached the log.
I'm amazed you got anything on disc at all, the problem is that sr doesn't get the capacity right. That's why you get entries like: Apr 22 22:25:22 pinco kernel: attempt to access beyond end of device Apr 22 22:25:22 pinco kernel: 0b:01: rw=0, want=710, limit=2 the kernel has the capacity set at 2 sectors, and denies reads beyond that completely. Does df show the right capacity when the disc is mounted? -- Jens Axboe