You are not logged in.
Pages: 1
I've been modifying my udev rules to make my photocamera work and I got it with these rules:
BUS=="usb", SYSFS{product}=="NIKON DSC E2000", NAME="%k", SYMLINK+="camera", GROUP="camera"
ACTION=="add", RUN+="/bin/mount -t auto -o rw,user,noauto,sync,dirsync,noatime,shortname=mixed,gid=camera,umask=000,iocharset=utf8 /dev/camera /media/camera", OPTIONS="last_rule"
ACTION=="remove", RUN+="/bin/umount -l /media/camera", OPTIONS="last_rule"
Now, the problem is that whenever I have these rules enabled in 00.rules I get at boot time the message "couldnt open /dev/vc/1" till vc/12 and therefore I can't login in my box because there isn't a terminal login at all. I'm sure that the rules above are the culprit because it happens anytime I enable them and not when I comment out.
Maybe I could enable kdm/gdm and use a graphical login, but it's beside the point (I do prefer starting X with startx).
Any idea? Is it a bug or what?
To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github
Offline
I've been modifying my udev rules to make my photocamera work and I got it with these rules:
BUS=="usb", SYSFS{product}=="NIKON DSC E2000", NAME="%k", SYMLINK+="camera", GROUP="camera" ACTION=="add", RUN+="/bin/mount -t auto -o rw,user,noauto,sync,dirsync,noatime,shortname=mixed,gid=camera,umask=000,iocharset=utf8 /dev/camera /media/camera", OPTIONS="last_rule" ACTION=="remove", RUN+="/bin/umount -l /media/camera", OPTIONS="last_rule"
Now, the problem is that whenever I have these rules enabled in 00.rules I get at boot time the message "couldnt open /dev/vc/1" till vc/12 and therefore I can't login in my box because there isn't a terminal login at all. I'm sure that the rules above are the culprit because it happens anytime I enable them and not when I comment out.
Maybe I could enable kdm/gdm and use a graphical login, but it's beside the point (I do prefer starting X with startx).Any idea? Is it a bug or what?
Hello,
the rule-syntax changed in one of the latest releases of udev. At least "BUS==..." has to be "SUBSYSTEMS==..." now. But there are other changes, too.
Offline
Damn, why udev keep changing something every release....
Ok I'll try changing bus to subsystem and I'll make you know if it corrects the problem.
[edit]nope, even changing bus to subsystem and sysfs to attrs hasn't helped[/edit]
Last edited by onearm (2007-09-07 08:01:43)
To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github
Offline
If you look at the default /etc/udev/rules.d/udev.rules file, you'll see that those rules for /dev/vc* are already marked with "last_rule". So remove it from your file.
1000
Offline
If you look at the default /etc/udev/rules.d/udev.rules file, you'll see that those rules for /dev/vc* are already marked with "last_rule". So remove it from your file.
Ok, thanks it worked. Honestly I don't understand why because I have another rule previously in the same file (for my usb drive) which is very similar and has a couple of "last_rule" and it didn't create any problem so I supposed it was ok to use again this option.
Anyway, thanks for your suggestion.
To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github
Offline
Pages: 1