Hi all, When I do an ls -l for /cdrom, I get the following: lrwxrwxrwx 1 root root 9 Jan 21 17:16 scd0 -> /dev/scd0 When I do an ls -l for /dev/cdrom, I get the following: lrwxrwxrwx 1 root root 8 Feb 13 10:18 /dev/cdrom -> /dev/sr0 fstab contains: /dev/cdrom /cdrom auto ro,noauto,user,exec 0 0 So, my question is: why is /cdrom set up this way? I installed my scsi dvd and just made /dvd, and created a symlink for /dev/dvd -> /dev/sr2 . Do I need to do anything differently? Thanks, -ronc
On Wed, 13 Feb 2002 14:17:06 -0500
Ron Cordell
Hi all,
When I do an ls -l for /cdrom, I get the following: lrwxrwxrwx 1 root root 9 Jan 21 17:16 scd0 -> /dev/scd0
When I do an ls -l for /dev/cdrom, I get the following: lrwxrwxrwx 1 root root 8 Feb 13 10:18 /dev/cdrom -> /dev/sr0
fstab contains: /dev/cdrom /cdrom auto ro,noauto,user,exec 0 0
So, my question is: why is /cdrom set up this way? I installed my scsi dvd and just made /dvd, and created a symlink for /dev/dvd -> /dev/sr2 . Do I need to do anything differently?
If it's working don't "fix it" :-) Different device names can be used for the same device depending on it's function. -- $|=1;while(1){print pack("h*",'75861647f302d4560275f6272797f3');sleep(1); for(1..16){for(8,32,8,7){print chr($_);}select(undef,undef,undef,.05);}}
On Wednesday 13 February 2002 03:07 pm, zentara wrote:
On Wed, 13 Feb 2002 14:17:06 -0500
Ron Cordell
wrote: Hi all,
When I do an ls -l for /cdrom, I get the following: lrwxrwxrwx 1 root root 9 Jan 21 17:16 scd0 -> /dev/scd0
When I do an ls -l for /dev/cdrom, I get the following: lrwxrwxrwx 1 root root 8 Feb 13 10:18 /dev/cdrom -> /dev/sr0
fstab contains: /dev/cdrom /cdrom auto ro,noauto,user,exec 0 0
So, my question is: why is /cdrom set up this way? I installed my scsi dvd and just made /dvd, and created a symlink for /dev/dvd -> /dev/sr2 . Do I need to do anything differently?
If it's working don't "fix it" :-)
Different device names can be used for the same device depending on it's function.
I'm not sure that it _is_ correct. Kscd doesn't have access permissions to /dev/dvd or /dev/cdrw even though they are chmod 777. So I was looking around and wondered about that... -ronc
Ron Cordell wrote:
On Wednesday 13 February 2002 03:07 pm, zentara wrote:
On Wed, 13 Feb 2002 14:17:06 -0500
Ron Cordell
wrote: Hi all,
When I do an ls -l for /cdrom, I get the following: lrwxrwxrwx 1 root root 9 Jan 21 17:16 scd0 -> /dev/scd0
When I do an ls -l for /dev/cdrom, I get the following: lrwxrwxrwx 1 root root 8 Feb 13 10:18 /dev/cdrom -> /dev/sr0
fstab contains: /dev/cdrom /cdrom auto ro,noauto,user,exec 0 0
So, my question is: why is /cdrom set up this way? I installed my scsi dvd and just made /dvd, and created a symlink for /dev/dvd -> /dev/sr2 . Do I need to do anything differently?
If it's working don't "fix it" :-)
Different device names can be used for the same device depending on it's function.
I'm not sure that it _is_ correct. Kscd doesn't have access permissions to /dev/dvd or /dev/cdrw even though they are chmod 777. So I was looking around and wondered about that...
-ronc
My .02 here is that if you run strings on kscd, it is _LOOKS_ to be hard coded for /dev/cdrom..So your /dev/dvd, or /dev/cdrw wont work.. Use xmms to play audio from those devices if you have them hooked to your sound card.. also notice that /dev/scd0 and /dev/sr0 have the same major/minor numbers.. so, they are the same device... Why? Im not sure why we have 2 names.. Maybe someone else can answer that. have fun ;) Jim
On Wednesday 13 February 2002 02:17 pm, Ron Cordell wrote:
When I do an ls -l for /cdrom, I get the following: lrwxrwxrwx 1 root root 9 Jan 21 17:16 scd0 -> /dev/scd0
When I do an ls -l for /dev/cdrom, I get the following: lrwxrwxrwx 1 root root 8 Feb 13 10:18 /dev/cdrom -> /dev/sr0
I think maybe one is a raw SCSI device and one is not, but I could be wrong. Hopefully someone out there can clear this up for us. :-)
On Wednesday 13 February 2002 02:17 pm, Ron Cordell wrote:
When I do an ls -l for /cdrom, I get the following: lrwxrwxrwx 1 root root 9 Jan 21 17:16 scd0 -> /dev/scd0
When I do an ls -l for /dev/cdrom, I get the following: lrwxrwxrwx 1 root root 8 Feb 13 10:18 /dev/cdrom -> /dev/sr0
I think maybe one is a raw SCSI device and one is not, but I could be wrong. Hopefully someone out there can clear this up for us. :-)
Nope.. After poking around a bit here is what I see... They are the same device right, not raw or other, because the have the same major/minor #.. Looks like some distros use /dev/scd0 and some call it /dev/sr0.. look in /usr/src/linux/Documentation/devices.txt and check it out.. Regardless, they are the first SCSI cdrom.. Best Regards- Jim Bonnet
On Wed, 13 Feb 2002 15:00:26 -0800
Jim Bonnet
Nope.. After poking around a bit here is what I see... They are the same device right, not raw or other, because the have the same major/minor #.. Looks like some distros use /dev/scd0 and some call it /dev/sr0.. look in /usr/src/linux/Documentation/devices.txt and check it out.. Regardless, they are the first SCSI cdrom..
I've seen this with tape drivers before. You can have a "non-rewinding" driver, or a "rewinding driver", and others. They all can use the same tape drive, if the drive supports it. So I'll bet there is some subtle difference in them which the software developers use to their advantage. Probably one is "writing" and the other is read-only, or something like handles buffering different, etc. -- $|=1;while(1){print pack("h*",'75861647f302d4560275f6272797f3');sleep(1); for(1..16){for(8,32,8,7){print chr($_);}select(undef,undef,undef,.05);}}
On Wed, 13 Feb 2002, Ron Cordell wrote:
When I do an ls -l for /cdrom, I get the following: lrwxrwxrwx 1 root root 9 Jan 21 17:16 scd0 -> /dev/scd0
When I do an ls -l for /dev/cdrom, I get the following: lrwxrwxrwx 1 root root 8 Feb 13 10:18 /dev/cdrom -> /dev/sr0
fstab contains: /dev/cdrom /cdrom auto ro,noauto,user,exec 0 0
So, my question is: why is /cdrom set up this way? I installed my scsi dvd and just made /dvd, and created a symlink for /dev/dvd -> /dev/sr2 . Do I need to do anything differently?
It actually doen't matter, since both devices are the same. Have a look at the major/minor numbers of these device entries: $ ls -l /dev/sr0 brw-r----- 1 root disk 11, 0 Feb 12 13:17 /dev/sr0 $ ls -l /dev/scd0 brw-r----- 1 root disk 11, 0 Feb 12 13:17 /dev/scd0 As you can see, both are Major 11, Minor 0 But I agree, it is not consistent - I assume these links are being created by separate tools during the installation. Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH mailto:grimmer@suse.de Deutschherrnstr. 15-19 http://www.suse.de/~grimmer/ 90429 Nuernberg, Germany Pregnancy is a side effect of sloppy birth control.
participants (6)
-
Jim Bonnet
-
Joost van der Lugt
-
Joshua Lee
-
Lenz Grimmer
-
Ron Cordell
-
zentara