LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-27-2007, 06:15 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,129

Rep: Reputation: 30
mount cdrom in RHEL5


I usually use "mount /mnt/cdrom" to mount the cdrom in RH server , but after upgrade to RHEL5 , the command is longer used to mount cdrom , could advise how to mount cdrom on RHEL5 ? thx
 
Old 09-27-2007, 07:08 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Try
Code:
#mount /media/cdrom
or
Code:
#mount /dev/hdX /media/cdrom
/dev/hdX would be your cd/dvd device name e.g. /dev/hdc, /dev/sdc etc.

Last edited by reddazz; 10-03-2007 at 08:56 AM. Reason: typos
 
Old 10-03-2007, 03:17 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,129

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by reddazz View Post
Try
Code:
#mount /media/cdrom
or
Code:
#mount /dev/hdX /media/cdrom
/dev/hdX in would be your cd/dvd device name e.g. /dev/hdc, /dev/sdc etc.
thx
I tried /dev/hda-z but still not work , what is wrong ? thx
 
Old 10-03-2007, 03:24 AM   #4
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
I tried /dev/hda-z but still not work , what is wrong ? thx
hda usually refers to a harddisk (IDE), cd/dvd-drives are hdc, hdd or sdc, sdd or so..so try
Code:
mount /dev/hdc /media/cdrom
as root, provided that /media/cdrom exists. If it doesn't work, try hdd, sdc, sdd, ...

The defice files are under /dev so when you put the disc in, you can either have a look at /dev
Code:
ls /dev
or try to figure the device from dmesg for example:
Code:
dmesg | tail
The reason why a simple "mount /media/cdrom" doesn't work is probably that your /etc/fstab doesn't contain an entry that would tell what device (of your CD/DVD) should be mounted to what mountpoint with what options. Without such a line mount can't figure out what to mount to /media/cdrom unless you tell the exact device. Nowadays things are automated so if you're using a graphical desktop, you just put the disc in and it's mounted to the right place automatically (you can edit your udev rules file to change this behaviour). So, if you like to do it like you've done it so far, with "mount /media/cdrom", you're going to have to add an fstab entry. It's not difficult, but first figure out what device file it is that you use (hdc, hdd, ...?) -- after you successfully mount the drive, remember that device file and add a line to /etc/fstab. For more information about fstab, take a look at it's manpage.

Last edited by b0uncer; 10-03-2007 at 03:26 AM.
 
Old 11-13-2009, 12:38 PM   #5
jackofalltrades
LQ Newbie
 
Registered: Jan 2007
Location: AZ
Distribution: Solaris 8-10 and RHEL 2.1 and 3.0 AS
Posts: 4

Rep: Reputation: 0
mount cdrom in rhel 5

Try mount /dev/cdrom /mnt. I realize that may sound simplistic, but it is what I use and it works well.
 
  


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
CDROM refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 10:43 PM
Unable to export DISPLAY or mount an NFS partition on RHEL5 sudheer_tenneti Linux - Networking 0 08-30-2007 06:48 AM
Can't mount cdrom any more. linmith Linux - Hardware 5 03-24-2005 06:29 PM
cannot mount cdrom or cd-rw gavinbeatty Slackware 7 09-08-2004 03:10 PM
cannot mount cdrom namrepus Linux - Newbie 3 12-11-2003 12:00 PM


All times are GMT -5. The time now is 08:57 PM.

Main Menu
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