[NTLUG:Discuss] Re: udev - how do get it to create a tape /dev? *solved - maybe*
Richard Geoffrion
ntlug at rain4us.net
Wed Jan 25 14:04:54 CST 2006
Richard Geoffrion wrote:
> The SCSI Generic driver is loaded, the system sees the tape drive AND
> the robotic arm (lun 1), and the tape drive is right there under
> /dev/sg10 with the changer being /dev/sg11. The problem is that those
> device numbers won't always be the same depending on how many of the
> hot pull SCSI drives are in the bays when the system powers up. With
> UDEV creating these devices on the fly, I need a way to have a stable
> /dev/$name created so that I don't have to hit a moving target.
>
> I've searched in vain for examples and I'm coming up empty trying to
> find the documentation on how to make udev auto create a stable
> /dev/$name.
> While putting together documentation and proof of how all of my
> searches for help failed, I found
> http://www.reactivated.net/writing_udev_rules.html . I can't say
> enough good things about this documentation! The guy uses EXAMPLES!!!
> I am ALMOST in heaven --- almost because I still seem to be stuck.
I guess it helps when you have the drivers loaded for the devices..
/sbin/modprobe st #load the ScsiTape driver
/sbin/modprobe ch #load the scsi-CHanger driver
<whoo-hoo'age>
login at gwibkp:/dev$ ls -l *st*
crw-rw---- 1 root root 9, 128 2006-01-25 14:02 nst0
crw-rw---- 1 root root 9, 224 2006-01-25 14:02 nst0a
crw-rw---- 1 root root 9, 160 2006-01-25 14:02 nst0l
crw-rw---- 1 root root 9, 192 2006-01-25 14:02 nst0m
crw-rw---- 1 root cdrom 9, 0 2006-01-25 14:02 st0
crw-rw---- 1 root cdrom 9, 96 2006-01-25 14:02 st0a
crw-rw---- 1 root cdrom 9, 32 2006-01-25 14:02 st0l
crw-rw---- 1 root cdrom 9, 64 2006-01-25 14:02 st0m
</whoohoo>
I wonder why group cdrom is the owner of the /dev/st* devices....
at any rate... I'm off to go try to actually USE the drive! :)
--
Richard
More information about the Discuss
mailing list