Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-09-2012, 05:42 AM   #1
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
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.

Old 03-09-2012, 06:29 AM   #2
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 192Reputation: 192
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.
Old 03-09-2012, 06:35 AM   #3
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Thumbs up


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.

Old 03-09-2012, 09:59 AM   #4
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,652
Blog Entries: 36

Rep: Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842Reputation: 2842
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!
Old 03-09-2012, 11:05 AM   #5
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
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 ?

Old 03-09-2012, 11:27 AM   #6
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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).

Last edited by bigrigdriver; 03-09-2012 at 11:28 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
usbdisk Ubuntu 10.10 trying to mount /dev/sr0 metallica1973 Ubuntu 1 10-18-2010 08:41 AM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 10:27 AM
/dev/cdrom links to /dev/sg0 instead of /dev/sr0 -why? Yalla-One Slackware 3 10-01-2006 07:02 PM
Livecd cannot mount CDROM (/dev/sr0) robmool Linux - Kernel 2 09-28-2006 02:52 AM
external cdrw assigned to /dev/uba instead of /dev/sr0 gchew Slackware 0 11-14-2004 03:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration