1 |
Hi, |
2 |
|
3 |
I do have a SonyEricsson K810. Connecting the phone by USB to my Gentoo |
4 |
PC I am able to mount the internal phone-disk as well as the m2 Memory Sick. |
5 |
|
6 |
# mount /dev/sdf1 /mnt/floppy/ |
7 |
# mount /dev/sdg1 /mnt/usb/ |
8 |
df -h |
9 |
|
10 |
/dev/sdf1 68M 7,7M 60M 12% /mnt/floppy |
11 |
/dev/sdg1 950M 512K 950M 1% /mnt/usb |
12 |
|
13 |
This is dmesg: |
14 |
|
15 |
usb 1-3.3: new full speed USB device using ehci_hcd and address 4 |
16 |
usb 1-3.3: configuration #3 chosen from 1 choice |
17 |
usb 1-3.3: New USB device found, idVendor=0fce, idProduct=d0a1 |
18 |
usb 1-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 |
19 |
usb 1-3.3: Product: Sony Ericsson K810 |
20 |
usb 1-3.3: Manufacturer: Sony Ericsson |
21 |
usb 1-3.3: SerialNumber: 3531530220722190 |
22 |
usb 1-3.3: USB disconnect, address 4 |
23 |
usb 1-3.3: new full speed USB device using ehci_hcd and address 5 |
24 |
usb 1-3.3: configuration #2 chosen from 1 choice |
25 |
scsi6 : SCSI emulation for USB Mass Storage devices |
26 |
usb-storage: device found at 5 |
27 |
usb-storage: waiting for device to settle before scanning |
28 |
scsi7 : SCSI emulation for USB Mass Storage devices |
29 |
usb-storage: device found at 5 |
30 |
usb-storage: waiting for device to settle before scanning |
31 |
usb 1-3.3: New USB device found, idVendor=0fce, idProduct=e0a1 |
32 |
usb 1-3.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 |
33 |
usb 1-3.3: Product: Memory Stick |
34 |
usb 1-3.3: Manufacturer: Sony Ericsson |
35 |
usb 1-3.3: SerialNumber: 3531530220722190 |
36 |
scsi 6:0:0:0: Direct-Access Sony Eri Memory Stick 0000 PQ: 0 ANSI: 0 |
37 |
sd 6:0:0:0: [sdf] 168000 512-byte hardware sectors (86 MB) |
38 |
sd 6:0:0:0: [sdf] Test WP failed, assume Write Enabled |
39 |
sd 6:0:0:0: [sdf] Assuming drive cache: write through |
40 |
scsi 7:0:0:0: Direct-Access Sony Eri Memory Stick 0000 PQ: 0 ANSI: 0 |
41 |
sd 7:0:0:0: [sdg] Attached SCSI removable disk |
42 |
sd 7:0:0:0: Attached scsi generic sg6 type 0 |
43 |
sd 6:0:0:0: [sdf] 168000 512-byte hardware sectors (86 MB) |
44 |
usb-storage: device scan complete |
45 |
sd 6:0:0:0: [sdf] Test WP failed, assume Write Enabled |
46 |
sd 6:0:0:0: [sdf] Assuming drive cache: write through |
47 |
sdf: sdf1 |
48 |
sd 6:0:0:0: [sdf] Attached SCSI removable disk |
49 |
sd 6:0:0:0: Attached scsi generic sg7 type 0 |
50 |
usb-storage: device scan complete |
51 |
|
52 |
Now I want to have a udev rule. Those are the udev rules already |
53 |
existing in /etc/udev/rules.d/10-udev.rules: |
54 |
|
55 |
|
56 |
BUS=="usb", KERNEL=="sd?1", ATTRS{serial}=="5B760D88CCFF", |
57 |
ATTRS{idProduct}=="1d00", NAME="lanze" |
58 |
BUS=="usb", KERNEL=="sd?1", ATTRS{serial}=="3547160198371480", |
59 |
ATTRS{idProduct}=="e039", NAME="sek800i" |
60 |
BUS=="usb", KERNEL=="sd?", ATTRS{serial}=="000A2700111242C0", |
61 |
ATTRS{idProduct}=="1301", NAME="ipod" |
62 |
BUS=="usb", KERNEL=="sd?", ATTRS{serial}=="070B00011452C90", |
63 |
ATTRS{idProduct}=="b113", NAME="stachel" |
64 |
BUS=="usb", KERNEL=="sd?1", ATTRS{serial}=="B40DB05H", |
65 |
ATTRS{idProduct}=="7100", NAME="silber" |
66 |
|
67 |
sek800i is my old mobile which is still be used, but without memory stick. |
68 |
|
69 |
This is the new udev rule: |
70 |
|
71 |
BUS=="usb", KERNEL=="sd?1", ATTRS{serial}=="3531530220722190", |
72 |
ATTRS{idProduct}=="d0a1", NAME="sek810" |
73 |
BUS=="usb", KERNEL=="sd?1", ATTRS{serial}=="3531530220722190", |
74 |
ATTRS{idProduct}=="e0a1", NAME="sek810m2" |
75 |
|
76 |
This is fstab: |
77 |
|
78 |
/dev/sek810 /mnt/k810 auto |
79 |
noauto,user 0 0 |
80 |
/dev/sek810m2 /mnt/m2sek810 auto noauto,user 0 0 |
81 |
|
82 |
Connecting the phone to my box using the udev rules the memory stick |
83 |
wont work: |
84 |
|
85 |
# mount /mnt/k810/ |
86 |
mount: Gerätedatei /dev/sek810 existiert nicht (does not exist) |
87 |
# mount /mnt/m2sek810/ && df -h |
88 |
/dev/sek810m2 68M 7,7M 60M 12% /mnt/m2sek810 |
89 |
|
90 |
The internal disk is working but dmesg goes wild and I get a lot of the |
91 |
following: |
92 |
|
93 |
attempt to access beyond end of device |
94 |
sdg: rw=0, want=1945599, limit=1945231 |
95 |
attempt to access beyond end of device |
96 |
sdg: rw=0, want=1945600, limit=1945231 |
97 |
attempt to access beyond end of device |
98 |
sdg: rw=0, want=1945594, limit=1945231 |
99 |
attempt to access beyond end of device |
100 |
sdg: rw=0, want=1945595, limit=1945231 |
101 |
attempt to access beyond end of device |
102 |
|
103 |
|
104 |
Where is my udev rule wrong? |
105 |
|
106 |
Thanks for help. |
107 |
|
108 |
kh |