LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount command show /dev/sr0 .what sr0 is representing ? (http://www.linuxquestions.org/questions/linux-newbie-8/mount-command-show-dev-sr0-what-sr0-is-representing-933581/)

gardenair 03-09-2012 06:42 AM

mount command show /dev/sr0 .what sr0 is representing ?
 
hi,
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 dvd.like..

/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.

thanks
gardenair

fukawi1 03-09-2012 07: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 07:35 AM

Hi,

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.

Regards,
Kapil

onebuck 03-09-2012 10:59 AM

Member response
 
Hi,

You can find some useful information;
libata
libata wiki
libata_FAQ
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 12:05 PM

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

Code:

# 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

Code:

#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

Code:

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

Code:

# 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 ?


thanks
gardenair

bigrigdriver 03-09-2012 12:27 PM

Quote:

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 12:20 AM.