On Sun, 2003-07-20 at 17:11, zentara wrote:
On 20 Jul 2003 15:12:16 +0200 Anders Johansson
wrote: On Sun, 2003-07-20 at 15:03, zentara wrote:
Your cd can also probably be accessed as /dev/scd0. But the scd0 driver can't write, while sr0 can.
Hm. Device nodes are determined by their major/minor numbers. As far as I can see, both scd0 and sr0 are major 11, minor 0, so their capabilities should be completely identical.
Well, you may be right there, but there also is this type of entry in /etc/modules.conf alias scd0 sr_mod # load sr_mod upon access of scd0
??? In mine it says alias block-major-11 sr_mod Which should cover both of them, since they're both block devices with major number 11
I was trying to answer the original post with a "generalized answer". What I was trying to point out is something like accessing a tape drive with the rewinding device, or the non-rewinding device. Different /dev/* can access the tape drive with different capabilities.
True, but /dev/st0 and /dev/nst0 have different minor numbers, so it's not exactly the same. My point was just that you can name the node pretty much whatever you want, say mknod /dev/DonaldDuck b 11 0 and use it to access the CD device. I suspect the only reason they have both sr0 and scd0 in there is that one or the other (or perhaps both) is hard coded in various apps, so it makes it easier for the user.
Your mind is like a steel trap Anders. :-)
Yep, it's full of mice