LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 03-09-2012, 06:42 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 578

Rep: Reputation: 31
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
 
Old 03-09-2012, 07:29 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 189Reputation: 189
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, 07:35 AM   #3
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Thumbs up

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
 
Old 03-09-2012, 10:59 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,450
Blog Entries: 4

Rep: Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505Reputation: 1505
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!
 
Old 03-09-2012, 12:05 PM   #5
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 578

Original Poster
Rep: Reputation: 31
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
 
Old 03-09-2012, 12:27 PM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

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

Last edited by bigrigdriver; 03-09-2012 at 12:28 PM.
 
  


Reply


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 09: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 11:27 AM
/dev/cdrom links to /dev/sg0 instead of /dev/sr0 -why? Yalla-One Slackware 3 10-01-2006 08:02 PM
Livecd cannot mount CDROM (/dev/sr0) robmool Linux - Kernel 2 09-28-2006 03:52 AM
external cdrw assigned to /dev/uba instead of /dev/sr0 gchew Slackware 0 11-14-2004 04:22 AM


All times are GMT -5. The time now is 05:21 AM.

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