-   Linux - Newbie (
-   -   mount command show /dev/sr0 .what sr0 is representing ? (

gardenair 03-09-2012 05:42 AM

mount command show /dev/sr0 .what sr0 is representing ?
I want to clear a point regarding to my dvd drive.Preior i was using my old pc for linux.At taht time when I use mount command it show me all the mounthed devices included my

/dev/hdc on /media/RHEL_5.3 i386 DVD type iso9660 (ro,noexec,nosuid,nodev,uid=0)

Now I am using a external dvd driter.With mount command for dvd it show me

/dev/sr0 and rest of the things shows that it is my dvd .

the question is what is the difference between /dev/hdc & /dev/sro ?

Please guide me.


fukawi1 03-09-2012 06:29 AM

hdx is usually used to represent IDE devices, sdx is usually used for SCSI originally, then sata, and USB devices.

sr0, scd0 etc are assigned by the kernel, to devices that are recognised as CD/DVD drives.

kapilbajpai88 03-09-2012 06:35 AM


It is naming convention for linux, and thats why the notation of device is different (for internal and external devices). /dev/hdc is used to be the old convention for PATA devices usually, and /dev/sr0 is not the new convention used for SATA counterpart.

Logically both are same, and representing the DVD device only.


onebuck 03-09-2012 09:59 AM

Member response

You can find some useful information;
libata wiki
libATA Developer's Guide
How to configure and use libata SATA / PATA drivers
major libata update

This will depend on the kernel you are using.

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

gardenair 03-09-2012 11:05 AM

Thanks for guiding me. I shall discuss it more closely later in this post.Yes you are right "It is naming convention for linux,"The thing which I want to discuss now is when I insert my dvd into the DVD drive and use mount command it show me various devices and at the end of line it show me


# mount
/dev/sr0 on /media/Centos_6.2 Final type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=0,gid=0,iocharset=utf8,mode=0400,dmode=0500)

Now i use command to umount my dvd


#umount /dev/cdrom
Now i use mount command and it does not show me the line starting /dev/sr0

I use the command # mount /dev/cdrom even # mount /dev/sr0 but it show me


# mount dev/cdrom
mount:can't find /dev/cdrom in /etc/fstab or etc/mtab


# mount dev/sr0
mount:can't find /dev/sr0 in /etc/fstab or etc/mtab

The only thing i know is to mount my dvd again i mount my dvd into the drive.Linux will start reading and will mount it.

Is there anyway to mount it again without inserting back the dvd into the drive ?


bigrigdriver 03-09-2012 11:27 AM


Is there anyway to mount it again without inserting back the dvd into the drive ?
Yes there is a way.

*If* the dvd drive has a disk with the iso9660 filesystem on it (a data dvd) and
*If* the drive is listed in /etc/fstab,
you may mount the drive with the short mount command: mount /dev/cdrom.

If the above conditions are not present, then you must use the long version of the mount command to remoount the dvd drive with a disk in the drive:
mount -t ext3 /dev/sr0 /media/cdrom.

Note the mount command is followed by -t ext3 (filesystem type), /dev/sr0 (dvd drive device to be mounted, or /dev/dvd may be used if it's so named on your system), and mount point (media/cdrom, or whatever the mount point is on your system).

All times are GMT -5. The time now is 06:14 PM.