NavigationUser loginWho's onlineThere are currently 1 user and 28 guests online.
Online usersHighest Users
Linux NewsClick the above for your daily dose of Linux news. Food for ThoughtOnly to the white man was nature a wilderness. Spam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
HOWTO create devices for six scsi tapes?I've tried editing MAKEDEV under the generic-i386 section from "st0 st1" to "st0 st1 st2 st3 st4 st5" but neither running MAKEDEv or rebooting creates the necessary number of devices. what have I missed? T.I.A. |
Re: HOWTO create devices for six scsi tapes?
1. what kernel and udev version?
2. under 'udev', if the drivers have been updated, there will be sysfs entries (somewhere in /sys). You can then respond to an 'event' and create the correct drive names as the drivers load and initialize.
3. MAKEDEV? Wow - that's old. Instead of MAKEDEV, have a look at /etc/udev/links.conf - for Debian, that is the scheme used to deal with drivers which for whatever reason do not notify the udev system. The file is parsed some time during startup and symlinks are created ('L') via 'ln -s' and device nodes are created ('M') via mknod. I can't remember what those 'D' entries were ...
Re: HOWTO create devices for six scsi tapes?
Okay, there is nothing wrong with MAKEDEV. If they have changed it, then that is another black mark against Debian. Change for the sake of change is not progress. I find that the longer I use Linux, the more I rely on unix applications.
The answer I worked out is is to edit MAKEDEV and expand st0 st1 to add st2 st3 st4 st5 st6, then run MAKEDEV st2, ...... MAKEDEV st6.
Devices are created and last through reboots.
BTW, there is nothing in /sys in my system. This is a Debian board isn't it?
Re: HOWTO create devices for six scsi tapes?
If you have a new(ish) kernel with sysfs and sysfs is mounted, you should have items in /sys. If you don't have it mounted, then /sys will be empty (you can just add a line to /etc/fstab to mount sysfs at boot).
The only problem with MAKEDEV is that it creates a gazillion symlinks that "pollute" the /dev directory. Some people don't really mind that (and UNIX has been that way for decades anyway) but some people go crazy when they're playing around in /dev. If you have udev and sysfs and the appropriate scripts, it is possible that the stN nodes would be magically created. Then again, they might not be ...
At any rate, you've got the thing working and that's all that matters.
Re: HOWTO create devices for six scsi tapes?
Thank you for the explanation about why there has been yet another change in the basics.