Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
usr_2314
Posts: 2
Joined: 19 Aug 2012, 10:49

How to setup AsusTek 500 GB hd?

Post by usr_2314 » 19 Aug 2012, 11:13

Hello everyone!

I need help in setting up my usb 3 hd.

Under Win there is no problem, it is like if there are two devices: a cdrom containing the drivers and the hd.

The problem arises under linux, where only a cdrom drive is automatically mounted.

The output of dmesg is the following:

[ 945.971238] usb 3-1: USB disconnect, device number 2
[ 950.741593] usb 3-1: new SuperSpeed USB device number 3 using xhci_hcd
[ 950.759301] scsi8 : usb-storage 3-1:1.0
[ 951.775401] scsi 8:0:0:0: Direct-Access USB3.0 D Super Speed Mass 0 PQ: 1 ANSI: 0
[ 951.775701] scsi 8:0:0:1: CD-ROM ASMT VirtualCDROM PQ: 0 ANSI: 0
[ 951.781601] scsi 8:0:0:0: Attached scsi generic sg2 type 0
[ 951.782280] sr0: scsi-1 drive
[ 951.783108] sr 8:0:0:1: Attached scsi CD-ROM sr0
[ 951.784068] sr 8:0:0:1: Attached scsi generic sg3 type 5
[ 951.866015] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 951.866159] ISOFS: changing to secondary root

using a usb sniffer program under win it has been possible to view the usb messages when plugging in the device and save into a txt log file.

I then tried to create a conf file in /etc/usb_modeswitch.conf with the following:

DefaultVendor = 0x0b05
DefaultProduct = 0x17b4

MessageEndpoint = 0x0h
MessageContent = "5553424340a6eb030000000000010600000000000000000000000000000000"

but when launching it I got this in the terminal:

Looking for default devices ...
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 005 on bus 003 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x02 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
Vendor String: USB3.0 D
Model String: Super Speed Mass
Revision String: 0
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: USB3.0 Device
Product: Super Speed Mass Storage
Serial No.: 3201204100000342
-------------------------
Setting up communication with interface 0
Using endpoint 0x02 for message sending ...
Trying to send message 1 to endpoint 0x02 ...
OK, message successfully sent
Resetting response endpoint 0x81
Resetting message endpoint 0x02
-> Run lsusb to note any changes. Bye.

and when running lsusb:

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0b95:7e2b ASIX Electronics Corp.
Bus 001 Device 004: ID 064e:f300 Suyin Corp.
Bus 001 Device 005: ID 0bda:0139 Realtek Semiconductor Corp.
Bus 001 Device 007: ID 13d3:3375 IMC Networks
Bus 003 Device 005: ID 0b05:17b4 ASUSTek Computer, Inc.

The result is that the cdrom (which was automatically mounted) is now unmounted but there is no hd :)

I think I used the wrong message. My question now is: what should I search for within the Win usb sniff log?

Thank you.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Post by Josh » 19 Aug 2012, 11:43

You have to take care to handle the correct device when creating sniffing log. Make sure you attach the logging filter to the CD-ROM.

Does the 'fake' CD-ROM vanish in Windows once the driver/software is installed?

If so, the log should stop growing after a short while. The suspicious commands are near the end of it.

If you want, post your log on "pastebin.com" or elsewhere (please not in this forum, at least not full-length).


usr_2314
Posts: 2
Joined: 19 Aug 2012, 10:49

Post by usr_2314 » 19 Aug 2012, 13:02

The cdrom is always present under win.

The log is here:

http://simulation-technologies.com/HD_Full.txt.tar.gz

Post Reply