On Tue 15 Jan 2013 02:26:01 AM CST, F style wrote:
OK, trying to make adb work by adding the udev rule.
First, I use dmesg command and I get this:
Code:
user@linux-njo4:~> dmesg |tail -n 19
3096.997152] sd 11:0:0:0: [sdb] Unhandled error code
3096.997154] sd 11:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT
driverbyte=DRIVER_OK 3096.997157] sd 11:0:0:0: [sdb] CDB: Write(10):
2a 00 00 08 32 bf 00 00 f0 00 3096.997169] end_request: I/O error,
dev sdb, sector 537279 3097.049176] sd 11:0:0:0: [sdb] Synchronizing
SCSI cache 3097.049236] sd 11:0:0:0: [sdb] Result:
hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK 3282.499201] usb 2-2:
new high-speed USB device number 9 using ehci_hcd 3282.616670] usb
2-2: New USB device found, idVendor=04e8, idProduct=689e 3282.616681]
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
3282.616688] usb 2-2: Product: Samsung Android USB Device
3282.616694] usb 2-2: Manufacturer: SAMSUNG Electronics Co., Ltd.
3282.616700] usb 2-2: SerialNumber: S5830aabdd4cb 3282.618410]
cdc_acm 2-2:1.0: This device cannot do calls on its own. It is not a
modem. 3282.618581] cdc_acm 2-2:1.0: ttyACM0: USB ACM device
3282.621500] scsi12 : usb-storage 2-2:1.3 3283.625270] scsi
12:0:0:0: Direct-Access SAMSUNG GT-S5830L Card 0100 PQ: 0 ANSI:
2 3283.625749] sd 12:0:0:0: Attached scsi generic sg2 type 0
3283.627966] sd 12:0:0:0: [sdb] Attached SCSI removable disk
3332.783843] EXT4-fs (sda6): re-mounted. Opts:
acl,user_xattr,commit=0 --------------------
I can see my mobile idVendor under “usb 2-2”, but what those errors in
“sd 11:0:0:0”?
Then, I type “cat lib/udev/rules.d/51-android.rules” and I get “no such
file”; and if I type “cat /lib/udev/rules.d/51-android.rules” I get
“it’s a directory”. How can I create the new needed rule from command?
Remember: I can’t write on root’s directories without admin permissions,
and someone told me running Nautilus as root is not recommended…
Hi
Just use gedit to create the file, press alt+F2, then enter;
gnomesu gedit /lib/udev/rules.d/51-android.rules
Then copy in;
# Android devices - UDEV Rule
# For Samsung Android USB Device for use with adb
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="users"
You need to check the device is in storage mode by the looks rather
than a modem. Should be on the device somewhere else try the
usb_modeswitch command.
When you’ve saved that, then press alt+F2 again and run;
gnomesu /sbin/udevadm trigger
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 12.2 (x86_64) Kernel 3.4.11-2.16-desktop
up 5:10, 3 users, load average: 0.02, 0.05, 0.13
CPU Intel® i5 CPU M520@2.40GHz | GPU Intel® Ironlake Mobile