1 |
I don't blame people for not wanting to touch this with a barge pole, |
2 |
it's a complete nightmare. I have had success to a degree in that I |
3 |
created a .fdi file which gives my device a pseudo label of music so |
4 |
it now gets mounted as /media/music and I found a -rather basic - |
5 |
script to mount devices via HAL and DBUS |
6 |
(http://www.datapax.com.au/apps/halmount/), so if I run my script on |
7 |
boot then my drive starts up mounted as a unique location. This is |
8 |
however a hack. |
9 |
|
10 |
I have still been unable to make any kind of match using UDEV rules on |
11 |
my system and would like to know how or where I'm going wrong. |
12 |
|
13 |
On 30 March 2010 18:37, mikey <abc.mikey@××××××××××.com> wrote: |
14 |
> $ /sbin/udevadm info -a -p $(/sbin/udevadm info -q path -n /dev/sdb1) |
15 |
> |
16 |
> Udevadm info starts with the device specified by the devpath and then |
17 |
> walks up the chain of parent devices. It prints for every device |
18 |
> found, all possible attributes in the udev rules key format. |
19 |
> A rule to match, can be composed by the attributes of the device |
20 |
> and the attributes from one single parent device. |
21 |
> |
22 |
> looking at device |
23 |
> '/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host4/target4:0:0/4:0:0:0/block/sdb/sdb1': |
24 |
> KERNEL=="sdb1" |
25 |
> SUBSYSTEM=="block" |
26 |
> DRIVER=="" |
27 |
> ATTR{partition}=="1" |
28 |
> ATTR{start}=="63" |
29 |
> ATTR{size}=="976768002" |
30 |
> ATTR{alignment_offset}=="0" |
31 |
> ATTR{stat}==" 30791 1166 1053460 192160 691 898 |
32 |
> 12712 204930 0 160890 397090" |
33 |
> |
34 |
> looking at parent device |
35 |
> '/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host4/target4:0:0/4:0:0:0/block/sdb': |
36 |
> KERNELS=="sdb" |
37 |
> SUBSYSTEMS=="block" |
38 |
> DRIVERS=="" |
39 |
> ATTRS{range}=="16" |
40 |
> ATTRS{ext_range}=="256" |
41 |
> ATTRS{removable}=="0" |
42 |
> ATTRS{ro}=="0" |
43 |
> ATTRS{size}=="976773168" |
44 |
> ATTRS{alignment_offset}=="0" |
45 |
> ATTRS{capability}=="52" |
46 |
> ATTRS{stat}==" 30806 1219 1054004 192220 691 |
47 |
> 898 12712 204930 0 160940 397150" |
48 |
> |
49 |
> looking at parent device |
50 |
> '/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host4/target4:0:0/4:0:0:0': |
51 |
> KERNELS=="4:0:0:0" |
52 |
> SUBSYSTEMS=="scsi" |
53 |
> DRIVERS=="sd" |
54 |
> ATTRS{device_blocked}=="0" |
55 |
> ATTRS{type}=="0" |
56 |
> ATTRS{scsi_level}=="3" |
57 |
> ATTRS{vendor}=="Maxtor " |
58 |
> ATTRS{model}=="Basics Desktop " |
59 |
> ATTRS{rev}=="0122" |
60 |
> ATTRS{state}=="running" |
61 |
> ATTRS{timeout}=="30" |
62 |
> ATTRS{iocounterbits}=="32" |
63 |
> ATTRS{iorequest_cnt}=="0x7b1a" |
64 |
> ATTRS{iodone_cnt}=="0x7b1a" |
65 |
> ATTRS{ioerr_cnt}=="0x0" |
66 |
> ATTRS{modalias}=="scsi:t-0x00" |
67 |
> ATTRS{evt_media_change}=="0" |
68 |
> ATTRS{queue_depth}=="1" |
69 |
> ATTRS{queue_type}=="none" |
70 |
> ATTRS{max_sectors}=="240" |
71 |
> |
72 |
> looking at parent device |
73 |
> '/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host4/target4:0:0': |
74 |
> KERNELS=="target4:0:0" |
75 |
> SUBSYSTEMS=="scsi" |
76 |
> DRIVERS=="" |
77 |
> |
78 |
> looking at parent device |
79 |
> '/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0/host4': |
80 |
> KERNELS=="host4" |
81 |
> SUBSYSTEMS=="scsi" |
82 |
> DRIVERS=="" |
83 |
> |
84 |
> looking at parent device '/devices/pci0000:00/0000:00:02.1/usb1/1-2/1-2:1.0': |
85 |
> KERNELS=="1-2:1.0" |
86 |
> SUBSYSTEMS=="usb" |
87 |
> DRIVERS=="usb-storage" |
88 |
> ATTRS{bInterfaceNumber}=="00" |
89 |
> ATTRS{bAlternateSetting}==" 0" |
90 |
> ATTRS{bNumEndpoints}=="02" |
91 |
> ATTRS{bInterfaceClass}=="08" |
92 |
> ATTRS{bInterfaceSubClass}=="06" |
93 |
> ATTRS{bInterfaceProtocol}=="50" |
94 |
> ATTRS{modalias}=="usb:v0D49p7410d0122dc00dsc00dp00ic08isc06ip50" |
95 |
> ATTRS{supports_autosuspend}=="0" |
96 |
> |
97 |
> looking at parent device '/devices/pci0000:00/0000:00:02.1/usb1/1-2': |
98 |
> KERNELS=="1-2" |
99 |
> SUBSYSTEMS=="usb" |
100 |
> DRIVERS=="usb" |
101 |
> ATTRS{configuration}=="" |
102 |
> ATTRS{bNumInterfaces}==" 1" |
103 |
> ATTRS{bConfigurationValue}=="1" |
104 |
> ATTRS{bmAttributes}=="c0" |
105 |
> ATTRS{bMaxPower}==" 2mA" |
106 |
> ATTRS{urbnum}=="117284" |
107 |
> ATTRS{idVendor}=="0d49" |
108 |
> ATTRS{idProduct}=="7410" |
109 |
> ATTRS{bcdDevice}=="0122" |
110 |
> ATTRS{bDeviceClass}=="00" |
111 |
> ATTRS{bDeviceSubClass}=="00" |
112 |
> ATTRS{bDeviceProtocol}=="00" |
113 |
> ATTRS{bNumConfigurations}=="1" |
114 |
> ATTRS{bMaxPacketSize0}=="64" |
115 |
> ATTRS{speed}=="480" |
116 |
> ATTRS{busnum}=="1" |
117 |
> ATTRS{devnum}=="2" |
118 |
> ATTRS{version}==" 2.00" |
119 |
> ATTRS{maxchild}=="0" |
120 |
> ATTRS{quirks}=="0x0" |
121 |
> ATTRS{authorized}=="1" |
122 |
> ATTRS{manufacturer}=="Maxtor " |
123 |
> ATTRS{product}=="Basics Desktop " |
124 |
> ATTRS{serial}=="2HBEQTN2 " |
125 |
> |
126 |
> looking at parent device '/devices/pci0000:00/0000:00:02.1/usb1': |
127 |
> KERNELS=="usb1" |
128 |
> SUBSYSTEMS=="usb" |
129 |
> DRIVERS=="usb" |
130 |
> ATTRS{configuration}=="" |
131 |
> ATTRS{bNumInterfaces}==" 1" |
132 |
> ATTRS{bConfigurationValue}=="1" |
133 |
> ATTRS{bmAttributes}=="e0" |
134 |
> ATTRS{bMaxPower}==" 0mA" |
135 |
> ATTRS{urbnum}=="40" |
136 |
> ATTRS{idVendor}=="1d6b" |
137 |
> ATTRS{idProduct}=="0002" |
138 |
> ATTRS{bcdDevice}=="0206" |
139 |
> ATTRS{bDeviceClass}=="09" |
140 |
> ATTRS{bDeviceSubClass}=="00" |
141 |
> ATTRS{bDeviceProtocol}=="00" |
142 |
> ATTRS{bNumConfigurations}=="1" |
143 |
> ATTRS{bMaxPacketSize0}=="64" |
144 |
> ATTRS{speed}=="480" |
145 |
> ATTRS{busnum}=="1" |
146 |
> ATTRS{devnum}=="1" |
147 |
> ATTRS{version}==" 2.00" |
148 |
> ATTRS{maxchild}=="10" |
149 |
> ATTRS{quirks}=="0x0" |
150 |
> ATTRS{authorized}=="1" |
151 |
> ATTRS{manufacturer}=="Linux 2.6.31-gentoo-r10 ehci_hcd" |
152 |
> ATTRS{product}=="EHCI Host Controller" |
153 |
> ATTRS{serial}=="0000:00:02.1" |
154 |
> ATTRS{authorized_default}=="1" |
155 |
> |
156 |
> looking at parent device '/devices/pci0000:00/0000:00:02.1': |
157 |
> KERNELS=="0000:00:02.1" |
158 |
> SUBSYSTEMS=="pci" |
159 |
> DRIVERS=="ehci_hcd" |
160 |
> ATTRS{vendor}=="0x10de" |
161 |
> ATTRS{device}=="0x005b" |
162 |
> ATTRS{subsystem_vendor}=="0x1043" |
163 |
> ATTRS{subsystem_device}=="0x815a" |
164 |
> ATTRS{class}=="0x0c0320" |
165 |
> ATTRS{irq}=="21" |
166 |
> ATTRS{local_cpus}=="ffffffff" |
167 |
> ATTRS{local_cpulist}=="0-31" |
168 |
> ATTRS{modalias}=="pci:v000010DEd0000005Bsv00001043sd0000815Abc0Csc03i20" |
169 |
> ATTRS{broken_parity_status}=="0" |
170 |
> ATTRS{msi_bus}=="" |
171 |
> ATTRS{companion}=="" |
172 |
> |
173 |
> looking at parent device '/devices/pci0000:00': |
174 |
> KERNELS=="pci0000:00" |
175 |
> SUBSYSTEMS=="" |
176 |
> DRIVERS=="" |
177 |
> |
178 |
> |
179 |
> On 30 March 2010 17:24, Neil Bothwick <neil@××××××××××.uk> wrote: |
180 |
>> On Tue, 30 Mar 2010 17:10:53 +0100, mikey wrote: |
181 |
>> |
182 |
>>> This is the info about my drive: |
183 |
>>> |
184 |
>>> $ /sbin/udevadm info -a -p $(/sbin/udevadm info -q path -n /dev/sdb) |
185 |
>> |
186 |
>> |
187 |
>> You need the output for /dev/sdb1. |
188 |
>> |
189 |
>> |
190 |
>> -- |
191 |
>> Neil Bothwick |
192 |
>> |
193 |
>> What's the difference between ignorance and apathy? |
194 |
>> I don't know and I don't care |
195 |
>> |
196 |
> |