[mythtv-users] HD-3000 and DVD device Permissions
Brian Wood
beww at beww.org
Tue Feb 14 21:37:02 UTC 2006
On Feb 14, 2006, at 1:37 PM, R. G. Newbury wrote:
> Brian Wood wrote:
>> A couple of presumably udev-related problems:
>>
>> The permissions on my /dev/dvb/adapter0 devices always come up as
>> root:root and 660. I changed them in /etc/udev/permissions.d/10-
>> pchdtv.permissions but the system ignores the change, or perhaps does
>> change them but then changes them back?
>>
>> Is there some other place I should be changing the permissions that
>> get assigned to the devices? I can change them easily enough after
>> the fact but, as I said, it bugs me :-)
>>
> Try putting your rule in /etc/udev/rules.d as '10-pchdtv.rules'
> That's where most of this sort of thing is done.
There''s already such a file present. Are you suggesting I just
concatenate the content of the permissions file onto that?
Perhaps this is a Gentooism? I'll look on their site and see if
similar strangeness is reported.
>
>> A somewhat related matter, it is a 50/50 proposition as to which of
>> my DVD drives is going to come up as /dev/dvd, the other being /dev/
>> dvd1 (hdc and hdd really). I'm guessing it has to do with which drive
>> happens to finish its initialization first, but it would be nice to
>> have this be consistent :-)
>>
> I must say that that sounds weird. Take a look at the rules in
> /etc/udev/rules.d/50-udev.rules.
> The present rule (FC4) is:
>
> KERNEL=="hd[a-z]", BUS=="ide", SYSFS{removable}=="1",
> PROGRAM=="/etc/udev/script
> s/check-cdrom.sh %k DVD", SYMLINK="dvd%e"
The rule on this Gentoo machine is:
BUS=="ide", KERNEL=="hd[a-z]", ACTION=="add", IMPORT="/sbin/cdrom_id
--export $tempnode"
>
> If you want to live dangerously you could try putting in 2 rules prior
> to that, somehting like
> KERNEL=="hdc", BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/etc/
> udev/script
> s/check-cdrom.sh %k DVD", SYMLINK="dvd1"
> KERNEL=="hdd", BUS=="ide", SYSFS{removable}=="1", PROGRAM=="/etc/
> udev/script
> s/check-cdrom.sh %k DVD", SYMLINK="dvd2"
>
> But I have no idea if that will not make your dog howl and your hair
> fall out.
Of course I just re-booted three times and it came up"right" each
time (hdc=DVD,hdd=DVD1).
Maybe I should go to Vegas?
I think I'll do nothing 'till it happens to get reversed again, then
see if it is the hdc/hdd or just the dvd/dvd1 that get reversed.
Thanks for the input.
More information about the mythtv-users
mailing list