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 have a sector size of 512 bytes, not kilobytes. > > > >-Brynet > > > Hi, > i should apologize for incompletely question (with mistakes) > so again (and better :-) > > Yes, of course drives have sector size of 520bytes not kilobytes, > it was my typo fail. > > > # dmesg | grep sd2 > sd2 at scsibus0 targ 2 lun 0: <IBMAS400, DFHSS4W, 4I4I> SCSI2 0/direct fixed > sd2: drive offline
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 > > # fdisk sd2 > fdisk: sd2: Device not configured > > # disklabel sd2 > disklabel: /dev/rsd2c: Device not configured > > # dd=/dev/rsd2c of=disk1.img > dd: /dev/rsd2c: Device not configured > > > > I tried this drive in a linux box and dmesg told me: > # dmesg | grep sdb > sd 0:0:3:0: [sdb] Unsupported sector size 520. > sd 0:0:3:0: [sdb] 0 512-byte hardware sectors: (0 B/0 B) > sd 0:0:3:0: [sdb] Write Protect is off > sd 0:0:3:0: [sdb] Mode Sense: a7 00 10 08 > sd 0:0:3:0: [sdb] Write cache: disabled, read cache: enabled, > supports DPO and FUA > sd 0:0:3:0: [sdb] Attached SCSI disk > > and there i get knowledge about 520byte sector size. > > I would like to get raw data from this drive. > Ok - if it's impossible, i want to say it. :-) > > Thank. Milan