By amazing coincidence, I got an EasyDisk yesterday, and just a few
hours later, someone wrote a mail detailing just how it didn't work.
(And it didn't work for me, either -- I got exactly the same error
messages.)

Here's the output from Linux 2.4.17-pre:

frances:~# cat /proc/bus/usb/devices 
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=d400
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1065 ProdID=2136 Rev= 0.01
S:  Manufacturer=CCYU TECHNOLOGY
S:  Product=EasyDisk Portable Device
S:  SerialNumber=000000000001
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms

Matthew Dharm mentioned something about "unusual devices", so I went
looking into the source code.  Now, I have no idea how any of it
works, but I went hacking away anyway.  I guessed a bit, and put this
into the file:

--- unusual_devs.h.orig Thu Dec  6 11:09:39 2001
+++ unusual_devs.h      Thu Dec  6 11:09:07 2001
@@ -206,6 +206,11 @@
                US_SC_UFI,  US_PR_CBI, NULL,
                US_FL_SINGLE_LUN),
 
+UNUSUAL_DEV(  0x1065, 0x2136, 0x0001, 0x0100, 
+               "CCYU Technology",
+               "EasyDisk",
+               US_SC_SCSI, US_PR_BULK, NULL, US_FL_START_STOP),
+
 UNUSUAL_DEV(  0x059f, 0xa601, 0x0200, 0x0200, 
                "LaCie",
                "USB Hard Disk",

And now I can actually see the device:

frances:~# cat /proc/scsi/scsi            
Attached devices: 
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: Lwen-xmd Model: EasyDisk Driver  Rev: 0001
  Type:   Direct-Access                    ANSI SCSI revision: 02

But it doesn't actually work, though.  :-)  If I do an fdisk to list
the partitions, I get the following:

frances:~# fdisk /dev/sda
Note: sector size is 2048 (not 512)

Command (m for help): p

Disk /dev/sda: 3 heads, 42 sectors, 255 cylinders
Units = cylinders of 126 * 2048 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   ?  15237707  19558636 1088874186   20  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(356, 97, 46) logical=(15237706, 0, 3)
Partition 1 has different physical/logical endings:
     phys=(357, 116, 40) logical=(19558635, 0, 41)
Partition 1 does not end on cylinder boundary:
     phys=(357, 116, 40) should be (357, 2, 42)
/dev/sda2   ?  10557018  14834608 1077952576   6b  Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(288, 110, 57) logical=(10557017, 1, 19)
Partition 2 has different physical/logical endings:
     phys=(269, 101, 57) logical=(14834607, 0, 8)
Partition 2 does not end on cylinder boundary:
     phys=(269, 101, 57) should be (269, 2, 42)
/dev/sda3   ?   4277694  15375812 -1498241472   53  OnTrack DM6 Aux3
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(345, 32, 19) logical=(4277693, 1, 32)
Partition 3 has different physical/logical endings:
     phys=(324, 77, 19) logical=(15375811, 2, 33)
Partition 3 does not end on cylinder boundary:
     phys=(324, 77, 19) should be (324, 2, 42)
/dev/sda4   *  11068474  11068643     42674   49  Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(87, 1, 0) logical=(11068473, 1, 24)
Partition 4 has different physical/logical endings:
     phys=(335, 78, 2) logical=(11068642, 2, 24)
Partition 4 does not end on cylinder boundary:
     phys=(335, 78, 2) should be (335, 2, 42)

Partition table entries are not in disk order


So -- what should I have put into unusual_devs.h instead of what I did?
                
-- 
(domestic pets only, the antidote for overdose, milk.)
   [EMAIL PROTECTED] * Lars Magne Ingebrigtsen

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to