On Sunday 28 June 2009, Rony Bill wrote:
On 6/28/09, Nachiketa Sadhu sadhu@iitb.ac.in wrote:
Rony wrote:
SATA drives per slot are named as sda, sdb, sdc and sdd. If any of the drives has partitions then _those_ partitions are numbered as 1,2,3 etc. Therefore a SATA HDD on slot sda will have partitions sda1, sda2, sda3 etc. However a CD/DVD Drive does not have partitions and is named only as sda, sdb, sdc sdd etc.
You mention above that your HDD is sda, therefore the next free name for your SATA CD ROM will be sdb. As an exercise run the command 'dmesg' in your terminal and look for entries for your HDD and CD drive.
I am afraid not. The output from my fedora 11 is attached below. You will see that dvd drives are named sr0 and sr1. Of course if you say that the naming convention are different for cddrives then I can not say anything.
Thanks and regards.
sadhu
[root@urmi dev]# ls -l sr* brw-rw----+ 1 root cdrom 11, 0 2009-06-28 21:18 sr0 brw-rw----+ 1 root cdrom 11, 1 2009-06-28 21:18 sr1 [root@urmi dev]# ls -l cd* lrwxrwxrwx. 1 root root 3 2009-06-28 21:18 cdrom -> sr0 lrwxrwxrwx. 1 root root 3 2009-06-28 21:18 cdrom1 -> sr1 lrwxrwxrwx. 1 root root 3 2009-06-28 21:18 cdrw -> sr0 lrwxrwxrwx. 1 root root 3 2009-06-28 21:18 cdrw1 -> sr1 [root@urmi dev]# ls -l sd* brw-rw----. 1 root disk 8, 0 2009-06-28 21:18 sda brw-rw----. 1 root disk 8, 1 2009-06-28 21:18 sda1 brw-rw----. 1 root disk 8, 2 2009-06-28 21:18 sda2 brw-rw----. 1 root disk 8, 3 2009-06-28 21:18 sda3 brw-rw----. 1 root disk 8, 4 2009-06-28 21:18 sda4 brw-rw----. 1 root disk 8, 16 2009-06-28 21:18 sdb brw-rw----. 1 root disk 8, 17 2009-06-28 21:18 sdb1 brw-rw----. 1 root disk 8, 18 2009-06-28 21:18 sdb2 [root@urmi dev]#
Hmm! So this appears to be the new way of naming CD drives by other distros too.
actually it was the old way of handling scsi drives and cdrw drives, and was discarded at least 2 years ago. My sarge (and earlier) setupsused sr0.