There are a million spots where 512 is hard coded...
On Thu, Sep 10, 2009 at 10:03:07PM +0200, Milan Prihoda wrote:
>> Line 1423 and following of /usr/src/sys/scsi/sd.c show that we will
>> only accept devices with sector sizes that are multiples of 512
>> (DEV_BSIZE). Others will be impossible to open.
>>
>> Now, if you delete that code you may be able to open the raw device.
>> No idea, but I'd be interested in what happens. :-).
>>
>> DEV_BSIZE of 512 is deeply imbedded in the kernel.
>>
>> .... Ken
>>
>>
>
> Hi Ken,
> I not deleted any line
>
> # diff -u sd.c-origin sd.c --- sd.c-origin Thu Sep 10 21:53:44 2009
> +++ sd.c Thu Sep 10 20:17:41 2009
> @@ -1425,6 +1425,7 @@
> */
> switch (dp->blksize) {
> case 0x200: /* == 512, == DEV_BSIZE on all architectures. */
> + case 0x208:
> case 0x400:
> case 0x800:
> case 0x1000:
>
>
> and now,
> # dd if=/dev/rsd2c of=disk1.img bs=520
>
> works for me :-)- Re: IBM 520KByte sector size scsi drives Milan Prihoda
- Re: IBM 520KByte sector size scsi drives Joachim Schipper
- Re: IBM 520KByte sector size scsi drives David Vasek
- Re: IBM 520KByte sector size scsi drives Brynet
- Re: IBM 520KByte sector size scsi drives Brynet
- Re: IBM 520KByte sector size scsi drives Milan Prihoda
- Re: IBM 520KByte sector size scsi drives Marco Peereboom
- Re: IBM 520KByte sector size scsi dr... Jon Simola
- Re: IBM 520KByte sector size scsi drives Kenneth R Westerback
- Re: IBM 520KByte sector size scsi dr... Milan Prihoda
- Re: IBM 520KByte sector size sc... Marco Peereboom
- Re: IBM 520KByte sector size sc... David Vasek
- Re: IBM 520KByte sector siz... Milan Prihoda
- Re: IBM 520KByte sector size scsi drives Brynet
- Re: IBM 520KByte sector size scsi drives Milan Prihoda
- Re: IBM 520KByte sector size scsi drives Milan Prihoda
- Re: IBM 520KByte sector size scsi drives Brynet
- Re: IBM 520KByte sector size scsi drives Milan Prihoda

