1832248 Members
2740 Online
110041 Solutions
New Discussion

Re: CDRom device path

 
O'lnes
Regular Advisor

CDRom device path

How to check what is the device path of CDRom? Thanks.
Andy
7 REPLIES 7
Dirk Wiedemann
Respected Contributor

Re: CDRom device path

What kind of computer?
What operating system?
O'lnes
Regular Advisor

Re: CDRom device path

The OS is Redhat 7.3
Andy
Donald Kok
Respected Contributor

Re: CDRom device path

you can read it in /etc/fstab.

My systems are 100% Murphy Compliant. Guaranteed!!!
Donald Kok
Respected Contributor

Re: CDRom device path

Also look at /etc/sysconfig/hwconf
My systems are 100% Murphy Compliant. Guaranteed!!!
I_M
Honored Contributor

Re: CDRom device path

Hi

I guess your CD-ROM is on either
IDE / SCSI or USB.

# dmesg | grep hd

# dmesg | greo sd

I'm not familiar with USB connection device.

Good luck

O'lnes
Regular Advisor

Re: CDRom device path

how about the checking of other device eg. harddisk, i use 'ioscan' in UNIX , how can check it in linux? Thanks.
Andy
Michael Kelly_5
Valued Contributor

Re: CDRom device path

In linux, the device paths for hard disks are as follows (assuming that you don't have devfs):
IDE Disks
/dev/hda = Primary Master
/dev/hdb = Primary Slave
/dev/hdc = Secondary Master
/dev/hdd = Secondary Slave

Each disk can have up to 63 partitions and the first partition on the PM is /dev/hda1, the second partition is /dev/hda2 etc.

CDROMs don't have partitions on them so if your CDROM is the SM then you access it via /dev/hdc
e.g. mount -t iso9660 /dev/hdc /cdrom

SCSI disks are different. linux assigns the paths /dev/sda, /dev/sdb etc. in the order in which it finds the disks.
/dev/sda will be the lowest LUN on the first controller found, /dev/sdb will be the next lowest LUN on the first controller OR the lowest LUN on the second controller found etc.
SCSI disks can have up to 15 partitions so the first partition on the first disk is /dev/sda1 etc.
If you don't change the SCSI configuration then the order will be the same everytime linux boots. However if you add/remove a disk then the mapping will be different.

AS with IDE disks you refer to a SCSI CDROM via the whole disk path e.g. /dev/sdb

hth.
The nice thing about computers is that they do exactly what you tell them. The problem with computers is that they do EXACTLY what you tell them.