Re: "sr: unaligned transfer" in 2.5.2-pre1

Petr Titera
2001-12-27T07:13:44Z

Peter Osterlund wrote:

> Hi!
>
> When trying to mount an ISO9660 CD on my USB CDRW unit, I get lots
> of "sr: unaligned transfer" messages from the kernel and the mount
> command fails. This message was added in kernel 2.5.1 and the
> sr_scatter_pad() function was removed at the same time. The comment
> above the message hints that unaligned transfers are (or were) a
> normal thing.
>
> I added a printk to get more information:
>
> sr: unaligned transfer
> sr: sector 64, s_size 2048, bufflen 1024
> sr: unaligned transfer
> sr: sector 68, s_size 2048, bufflen 1024
> sr: unaligned transfer
> sr: sector 72, s_size 2048, bufflen 1024
> ...
> sr: unaligned transfer
> sr: sector 396, s_size 2048, bufflen 1024
> Unable to identify CD-ROM format.
>
> So, what changes are needed to make CD support work?
>
>

Use -o block=2048 as your mount option. There is error in sr code
causing block sizes of CD-ROM drives to be incorrectly initialized to
1024 bytes.

Petr Titera
P.Titera@century.cz