On Tuesday 02 January 2007 23:21, Alan Stern wrote:
> Comparing the logs again, I see that Windows uses a 512-byte read to load
> the partition sector whereas Linux uses a 4096-byte read.  It's reasonable
> to assume the device likes one and doesn't like the other.
>
> Unfortunately there's no way to make Linux use a 512-byte read.  However
> it is possible to verify the assumption.  You can use the PLscsi program,
> available from
>
>       http://members.aol.com/plscsi/linux/
>
> Here's what you should do.  First, rename the sd_mod.ko kernel module, or
I actually had SCSI disk support directly in the kernel, but changed to module 
(and renamed it).

> move it from its standard location, so that it won't get loaded
> automatically.  Then plug in the device and do "modprobe sg".  Then issue
> the following command (as root):
>
>       plscsi -v -x '28 0 0 0 0 0 0 0 1 0' -i 512 /dev/sg0
>
> Make sure you copy the command string correctly!  You will probably have
> to run it twice; the first time through the device will report that it was
> just reset but the second time it should work.
On first try, it actually reported the following:
quanxi plscsi # ./plscsi -v -x '28 0 0 0 0 0 0 0 1 0' -i 512 /dev/sg0
x 00000000 28 00 00:00:00:00 00 00:01 00 .. .. .. .. .. .. "(@@@@@@@A@"
x 00000000 50:7E:26:08 00:00:00:00 00:00:00:00 FF:FF:FF:FF "P~&H@@@@@@@@????"
x 00000010 FF:FF:FF:FF 00:00:00:00 00:00:00:00 00:00:00:00 "????@@@@@@@@@@@@"
x 00000020 00:00:00:00 00:00:00:00 00:00:00:00 00:00:00:00 "@@@@@@@@@@@@@@@@"
x 00000030 00:00:00:00 00:00:00:00 00:00:00:00 00:00:00:00 "@@@@@@@@@@@@@@@@"
x 00000040 00:00:00:00 00:00:00:00 00:00:00:00 8C:54:23:08 "@@@@@@@@@@@@LT#H"
x 00000050 94:1B:26:08 60:FE:96:14 03:00:00:00 00:00:00:00 "T[&H`~VTC@@@@@@@"
x 00000060 2C:CE:10:08 58:13:00:00 00:00:00:00 FF:FF:FF:FF ",NPHXS@@@@@@????"
x 00000070 FF:FF:FF:FF FF:FF:FF:FF FF:FF:FF:FF FF:FF:FF:FF "????????????????"
x 00000080 FF:FF:FF:FF 01:00:00:00 00:00:00:00 01:00:08:00 "????A@@@@@@@[EMAIL 
PROTECTED]@"
x 00000090 00:00:00:00 00:00:00:00 00:00:00:00 88:2F:11:08 "@@@@@@@@@@@@H/QH"
x 000000A0 00:00:00:00 00:00:00:00 00:00:00:00 5F:5A:4E:53 "@@@@@@@@@@@@_ZNS"
x 000000B0 74:31:34:6E 75:6D:65:72 69:63:5F:6C 69:6D:69:74 "t14numeric_limit"
x 000000C0 73:49:6C:45 39:69:73:5F 69:65:63:35 35:39:45:00 "sIlE9is_iec559E@"
x 000000D0 44:99:16:08 AC:80:26:08 57:D8:50:10 06:00:00:00 "DYVH,@&HWXPPF@@@"
x 000000E0 00:00:00:00 4C:80:26:08 00:00:00:00 00:00:00:00 "@@@@L@&H@@@@@@@@"
x 000000F0 FF:FF:FF:FF FF:FF:FF:FF 00:00:00:00 00:00:00:00 "????????@@@@@@@@"
x 00000100 00:00:00:00 00:00:00:00 00:00:00:00 00:00:00:00 "@@@@@@@@@@@@@@@@"
...
x 00000120 00:00:00:00 00:00:00:00 00:00:00:00 00:00:00:00 "@@@@@@@@@@@@@@@@"
x 00000130 5F:5A:4E:53 74:31:34:6E 75:6D:65:72 69:63:5F:6C "_ZNSt14numeric_l"
x 00000140 69:6D:69:74 73:49:6C:45 39:69:73:5F 69:65:63:35 "imitsIlE9is_iec5"
x 00000150 35:39:45:40 47:4C:49:42 43:58:58:5F 33:2E:34:00 "[EMAIL PROTECTED]@"
x 00000160 D8:18:22:08 30:81:26:08 5E:0B:C1:12 06:00:00:00 "XX"H0A&H^KARF@@@"
x 00000170 00:00:00:00 4C:80:26:08 00:00:00:00 00:00:00:00 "@@@@L@&H@@@@@@@@"
x 00000180 FF:FF:FF:FF FF:FF:FF:FF 00:00:00:00 00:00:00:00 "????????@@@@@@@@"
x 00000190 00:00:00:00 00:00:00:00 00:00:00:00 00:00:00:00 "@@@@@@@@@@@@@@@@"
...
x 000001B0 00:00:00:00 00:00:00:00 00:00:00:00 00:00:00:00 "@@@@@@@@@@@@@@@@"
x 000001C0 00:00:00:00 C8:1B:26:08 78:65:95:28 04:00:00:00 "@@@@H[&HxeU(D@@@"
x 000001D0 00:00:00:00 54:35:11:08 A0:09:00:00 00:00:00:00 "@@@@T5QH I@@@@@@"
x 000001E0 FF:FF:FF:FF FF:FF:FF:FF FF:FF:FF:FF FF:FF:FF:FF "????????????????"
x 000001F0 FF:FF:FF:FF FF:FF:FF:FF 28:00:00:00 00:00:00:00 "????????(@@@@@@@"
x 00000000 70:00:06:00 00:00:00:0A 00:00:00:00 28:00 .. .. "[EMAIL 
PROTECTED]@@@@J@@@@(@"
// x 6 28 sense // x200 (512) residue
// -x0102 = -258 = plscsi.main exit int

(The ellipses and comments are actually part of the output - I didn't edit 
anything).

But it's true that the output subsequently changed:
x 00000000 28 00 00:00:00:00 00 00:01 00 .. .. .. .. .. .. "(@@@@@@@A@"
x 00000000 79:7A:7A:FF 79:7A:7A:FF 79:7A:7A:FF 79:7A:7A:FF "yzz?yzz?yzz?yzz?"
x 00000010 79:7A:7A:FF 78:7A:7A:FF 78:7A:7A:FF 78:7A:7A:FF "yzz?xzz?xzz?xzz?"
x 00000020 78:7A:7A:FF 78:7A:7A:FF 78:7A:7A:FF 78:7A:7A:FF "xzz?xzz?xzz?xzz?"
x 00000030 78:7A:7A:FF 78:7A:7A:FF 79:7B:7A:FF 79:7B:7A:FF "xzz?xzz?y{z?y{z?"
x 00000040 79:7B:7A:FF 79:7B:7A:FF 79:7B:7A:FF 7A:7B:7B:FF "y{z?y{z?y{z?z{{?"
x 00000050 7A:7B:7B:FF 7A:7B:7B:FF 7A:7B:7B:FF 7A:7B:7B:FF "z{{?z{{?z{{?z{{?"
...
x 000000A0 7A:7B:7B:FF 7A:7B:7B:FF 7A:7B:7B:FF 7A:7B:7B:FF "z{{?z{{?z{{?z{{?"
x 000000B0 7A:7B:7B:FF 7A:7B:7B:FF 7A:7B:7B:FF 79:7A:7A:FF "z{{?z{{?z{{?yzz?"
x 000000C0 79:7A:7A:FF 78:7A:7A:FF 78:7A:7A:FF 78:7A:7A:FF "yzz?xzz?xzz?xzz?"
x 000000D0 78:7A:7A:FF 78:7A:7A:FF 79:7A:7A:FF 79:7A:7A:FF "xzz?xzz?yzz?yzz?"
x 000000E0 7A:7B:7B:FF 79:7A:7A:FF 79:7A:7A:FF 78:7A:7A:FF "z{{?yzz?yzz?xzz?"
x 000000F0 78:7A:7A:FF 78:7A:7A:FF 78:7A:7A:FF 78:7A:7A:FF "xzz?xzz?xzz?xzz?"
x 00000100 78:7A:7A:FF 78:7A:7A:FF 78:7A:79:FF 78:7A:79:FF "xzz?xzz?xzy?xzy?"
x 00000110 78:7A:79:FF 78:7A:79:FF 78:7A:79:FF 78:79:79:FF "xzy?xzy?xzy?xyy?"
x 00000120 78:79:79:FF 78:79:79:FF 78:79:79:FF 78:79:79:FF "xyy?xyy?xyy?xyy?"
x 00000130 78:79:79:FF 78:79:79:FF 79:7A:7A:FF 79:7A:7A:FF "xyy?xyy?yzz?yzz?"
x 00000140 7A:7B:7B:FF 7A:7B:7B:FF 7A:7B:7B:FF 7A:7B:7B:FF "z{{?z{{?z{{?z{{?"
x 00000150 7A:7B:7B:FF 7A:7A:7A:FF 7A:7A:7A:FF 7A:7A:7A:FF "z{{?zzz?zzz?zzz?"
x 00000160 7A:7A:7A:FF 7A:7A:7A:FF 7A:7A:7A:FF 7A:7A:7A:FF "zzz?zzz?zzz?zzz?"
...
x 00000180 7A:7A:7A:FF 7A:7A:7A:FF 7A:7A:7A:FF 7A:7A:7A:FF "zzz?zzz?zzz?zzz?"
x 00000190 7A:7A:7A:FF 7A:7A:7A:FF 7A:7A:7A:FF 79:7A:7A:FF "zzz?zzz?zzz?yzz?"
x 000001A0 79:7A:7A:FF 79:79:79:FF 78:78:78:FF 78:78:78:FF "yzz?yyy?xxx?xxx?"
x 000001B0 78:78:78:FF 78:78:78:FF 78:78:78:FF 78:78:78:FF "xxx?xxx?xxx?xxx?"
x 000001C0 78:78:78:FF 78:79:79:FF 78:79:79:FF 78:79:79:FF "xxx?xyy?xyy?xyy?"
x 000001D0 78:79:79:FF 78:79:79:FF 78:79:79:FF 78:79:79:FF "xyy?xyy?xyy?xyy?"
x 000001E0 78:78:78:FF 78:78:78:FF 77:78:78:FF 77:78:78:FF "xxx?xxx?wxx?wxx?"
x 000001F0 77:78:78:FF 77:78:78:FF 77:78:78:FF 77:78:78:FF "wxx?wxx?wxx?wxx?"
x 00000000 70:00:03:00 00:00:00:0A 00:00:00:00 11:00 .. .. "[EMAIL 
PROTECTED]@@@@J@@@@Q@"
// x 3 11 sense // x200 (512) residue
// -x0102 = -258 = plscsi.main exit int

Does that help?

        Bye
                Vasek

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Linux-usb-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to