[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Howto change names of /dev/sg?

On 22/7/2011 19:00 Elimar Riesebieter wrote:

> * Simon Brandmair [110718 20:02 +0000]:
>> Hello,
>> I would like to change the device names of the /dev/sg? devices.
>> /dev/sg0 is my hard drive, /dev/sg1 my cdrom drive. I would like them to
>> be /dev/sg1 and /dev/sg2.
>> If I understand it right, these names aren't given by udev, but by the
>> kernel, so a udev rule doesn't work.
> http://www.reactivated.net/writing_udev_rules.html

Hm, ich kannte den Link schon, weiß aber nicht, was ich damit anfangen
soll. Wie soll denn eine udev-Rule aussehen, die sg0 mit sg1 tauscht?

Hier nochmal der Anfang von 'udevadm info --name=/dev/sg1 \
KERNEL=="sg1" SUBSYSTEM=="scsi_generic" DRIVER==""


Reply to: