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 :-)

Reply via email to