Re: IBM 520KByte sector size scsi drives

2009-09-11 Thread Milan Prihoda
David Vasek wrote: On Thu, 10 Sep 2009, Milan Prihoda wrote: and now, # dd if=/dev/rsd2c of=disk1.img bs=520 works for me :-) Are you sure you are getting all 520 bytes from each sector and not only first 512 bytes? Can you verify it? Regards, David Hi David, it seems you're right. # l

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread David Vasek
On Thu, 10 Sep 2009, Milan Prihoda wrote: and now, # dd if=/dev/rsd2c of=disk1.img bs=520 works for me :-) Are you sure you are getting all 520 bytes from each sector and not only first 512 bytes? Can you verify it? Regards, David

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Jon Simola
On Thu, Sep 10, 2009 at 10:46 AM, Marco Peereboom wrote: > I would love to get my hands on such a drive :-) > > EMC uses the same magic; they cram stuff in the additional 8 bytes. I inherited a couple of shelves from an old EMC setup, and ended up using Seagate's SeaTools Enterprise Edition to re

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Marco Peereboom
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

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Kenneth R Westerback
On Thu, Sep 10, 2009 at 06:41:08PM +0200, Milan Prihoda wrote: > Brynet wrote: > >Milan Prihoda wrote: > >>These drives have 520KByte sector size instead of 512KByte. > >>Is there any way how to dump raw data from these drives without > >>reformat drive to different sector size ? > > > >Most disks

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda
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.

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda
Brynet wrote: Hi Milan, I'm glad that it works.. can you post the new attachment message? :) -Brynet Do you mean this :? # dmesg | grep sd2 sd2 at scsibus0 targ 2 lun 0: SCSI2 0/direct fixed sd2: 4173MB, 520 bytes/sec, 8414494 sec total

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda
Milan Prihoda wrote: Hi Brynet, thank You very much for Your idea. It works :-) Brynet wrote: Hi Milan, David Vasek was on the right track with his message, it seems likely that the driver is bailing out on line 1439 in /usr/src/sys/scsi/sd.c. 1423:/* 1424: * Restrict blksize values t

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Brynet
Hi Milan, I'm glad that it works.. can you post the new attachment message? :) -Brynet

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda
Hi Brynet, thank You very much for Your idea. It works :-) Brynet wrote: Hi Milan, David Vasek was on the right track with his message, it seems likely that the driver is bailing out on line 1439 in /usr/src/sys/scsi/sd.c. 1423: /* 1424:* Restrict blksize values to powers of two between

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Marco Peereboom
I would love to get my hands on such a drive :-) EMC uses the same magic; they cram stuff in the additional 8 bytes. On Thu, Sep 10, 2009 at 06:41:08PM +0200, Milan Prihoda wrote: > Brynet wrote: >> Milan Prihoda wrote: >> >>> These drives have 520KByte sector size instead of 512KByte. >>> Is

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Brynet
Hi Milan, David Vasek was on the right track with his message, it seems likely that the driver is bailing out on line 1439 in /usr/src/sys/scsi/sd.c. 1423: /* 1424:* Restrict blksize values to powers of two between 512 and 64k. 1425:*/ 1426: switch (dp->blksize) { 1427: case 0x200:

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda
Brynet wrote: Milan Prihoda wrote: These drives have 520KByte sector size instead of 512KByte. Is there any way how to dump raw data from these drives without reformat drive to different sector size ? Most disks have a sector size of 512 bytes, not kilobytes. -Brynet Hi, i should

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Brynet
Milan Prihoda wrote: > These drives have 520KByte sector size instead of 512KByte. > Is there any way how to dump raw data from these drives without > reformat drive to different sector size ? Most disks have a sector size of 512 bytes, not kilobytes. -Brynet

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Brynet
David Vasek wrote: > The drive is reported as offline. > > As I understand it from sys/scsi/sd.c, "drive offline" means an error was > reported by scsi_test_unit_ready() function call. Possibly the 520 > bytes/sector is not compatible with the controller the OP used or with the > OpenBSD driver/scs

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread David Vasek
On Thu, 10 Sep 2009, Joachim Schipper wrote: On Thu, Sep 10, 2009 at 12:16:27PM +0200, Milan Prihoda wrote: Jan Stary wrote: On Sep 10 10:36:41, Milan Prihoda wrote: Hi, i have few IBM scsi drives from old (risc-based) IBM as/400. These drives have 520KByte sector size instead of 512KByte. I

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Joachim Schipper
On Thu, Sep 10, 2009 at 12:16:27PM +0200, Milan Prihoda wrote: > Jan Stary wrote: > >On Sep 10 10:36:41, Milan Prihoda wrote: > >>Hi, > >>i have few IBM scsi drives from old (risc-based) IBM as/400. > >> > >>These drives have 520KByte sector size instead of 512KByte. > >>Is there any way how to dum

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda
Jan Stary wrote: On Sep 10 10:36:41, Milan Prihoda wrote: Hi, i have few IBM scsi drives from old (risc-based) IBM as/400. These drives have 520KByte sector size instead of 512KByte. Is there any way how to dump raw data from these drives without reformat drive to different sector size ? $

IBM 520KByte sector size scsi drives

2009-09-10 Thread Milan Prihoda
Hi, i have few IBM scsi drives from old (risc-based) IBM as/400. These drives have 520KByte sector size instead of 512KByte. Is there any way how to dump raw data from these drives without reformat drive to different sector size ? $ dmesg ... sd2 at scsibus0 targ 3 lun 0: SCSI 2 0/direct fixed

Re: IBM 520KByte sector size scsi drives

2009-09-10 Thread Jan Stary
On Sep 10 10:36:41, Milan Prihoda wrote: > Hi, > i have few IBM scsi drives from old (risc-based) IBM as/400. > > These drives have 520KByte sector size instead of 512KByte. > Is there any way how to dump raw data from these drives without > reformat drive to different sector size ? > > $ dmesg > .