LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-14-2014, 04:53 AM   #1
oel
LQ Newbie
 
Registered: Apr 2014
Posts: 24

Rep: Reputation: Disabled
Mount cdrom


Hello,

I try mount an iso on a Oracle Enterprise Linux with hyper-v

# mount -t iso9660 /dev/cdrom /media
mount: special device /dev/cdrom does not exist


I used more times isos in this server and I think I used always next command

# mount /dev/cdrom /media

Any help?

Regards
 
Old 05-14-2014, 05:02 AM   #2
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
Try

# mount /dev/sr0 /media

Be sure that /media exists in file system.
 
Old 05-14-2014, 05:05 AM   #3
oel
LQ Newbie
 
Registered: Apr 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
# mount -t iso9660 /dev/sr0 /media
mount: special device /dev/sr0 does not exist


How can I check if /media exist in filesystem?

Regards
 
Old 05-14-2014, 05:15 AM   #4
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
First look into 'dmesg' for your CD-ROM device and how it is named in /dev, then check the existence of /media
with the command 'ls -l /'.
 
Old 05-14-2014, 05:48 AM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
$ cat /proc/devices

It will be one of the block devices. The file lists the major number of the block device and an implied name. From when device were made manually with MAKEDEV or mknod. In my case it's 11 sr.

$ ls -l /dev/* | grep "sr"

or

$ ls -l /dev/* | grep "11"

with results for me of:

brw-rw---T 1 root cdrom 11, 0 May 13 04:47 /dev/sr0

One way to be sure that you're using the right device. Bear in mind that user needs to be in the cdrom group to mount a cd and the mount needs to be in /etc/fstab with user permissions. Moot if doing the mount as root. Also bear in mind that you cannot mount blank media or audio cds.

$ mplayer cdda:// /dev/sr0

To play audio cds. One of many means to an end.
 
Old 05-14-2014, 06:07 AM   #6
oel
LQ Newbie
 
Registered: Apr 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi,


# ls -l /dev/* | grep "11"
crw------- 1 root root 5, 1 May 14 11:57 /dev/console
lrwxrwxrwx 1 root root 11 May 14 10:34 /dev/core -> /proc/kcore
crw-rw---- 1 root root 1, 11 May 14 10:35 /dev/kmsg
brw-rw---- 1 root disk 1, 11 May 14 10:35 /dev/ram11
crw--w---- 1 root tty 4, 11 May 14 10:35 /dev/tty11
lrwxrwxrwx 1 root root 8 May 14 10:35 1:11 -> ../ram11
lrwxrwxrwx 1 root root 11 May 14 10:35 10:231 -> ../snapshot
lrwxrwxrwx 1 root root 7 May 14 10:35 1:11 -> ../kmsg
lrwxrwxrwx 1 root root 8 May 14 10:35 4:11 -> ../tty11

# ls -l /dev/* | grep "sr"
srw-rw-rw- 1 root root 0 May 14 10:35 /dev/log
lrwxrwxrwx 1 root root 12 May 14 10:35 202:0 -> ../cpu/0/msr


# mount -t iso9660 /dev/ram11 /media
mount: wrong fs type, bad option, bad superblock on /dev/ram11,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

The end line when I type dmesg I get:
....
ISOFS: Unable to identify CD-ROM format.


With reference to berbae's update,

1. First look into 'dmesg' for your CD-ROM device
If I type dmesg I get a lot of information, but I dont find the pattern cdrom when I look for it.

2. How it is named in /dev
If I list with /dev
autofs kmsg nvram random tty11 tty31 tty51 usbmon0
block log oldmem raw tty12 tty32 tty52 vcs
bsg loop0 port root tty13 tty33 tty53 vcs1
char loop1 ppp rtc tty14 tty34 tty54 vcs2
console loop2 ptmx rtc0 tty15 tty35 tty55 vcs3
core loop3 pts sda tty16 tty36 tty56 vcs4
cpu loop4 ram0 sda1 tty17 tty37 tty57 vcs5
cpu_dma_latency loop5 ram1 sda2 tty18 tty38 tty58 vcs6
crash loop6 ram10 sdb tty19 tty39 tty59 vcsa
disk loop7 ram11 sdb1 tty2 tty4 tty6 vcsa1
dm-0 lp0 ram12 sg0 tty20 tty40 tty60 vcsa2
dm-1 lp1 ram13 sg1 tty21 tty41 tty61 vcsa3
dm-2 lp2 ram14 shm tty22 tty42 tty62 vcsa4
fb lp3 ram15 snapshot tty23 tty43 tty63 vcsa5
fb0 MAKEDEV ram2 stderr tty24 tty44 tty7 vcsa6
fd mapper ram3 stdin tty25 tty45 tty8 vga_arbiter
full mcelog ram4 stdout tty26 tty46 tty9 vgoracle
fuse mem ram5 systty tty27 tty47 ttyS0 vg_sav500760072
hpet net ram6 tty tty28 tty48 ttyS1 zero
hugepages network_latency ram7 tty0 tty29 tty49 ttyS2
hvc0 network_throughput ram8 tty1 tty3 tty5 ttyS3
input null ram9 tty10 tty30 tty50 urandom




3. Check the existence of /media with the command 'ls -l /'.
Yes, I have a dir called media located in /


Regards,
Mara
 
Old 05-14-2014, 06:16 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
$ cat /proc/devices

You skipped that step.
 
Old 05-14-2014, 06:20 AM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
On older machines the cdrom was /dev/hdc and the link from /dev/cdrom to it was optional. But that's like windows 95 era stuff.
 
Old 05-14-2014, 06:43 AM   #9
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,101
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
Hi.
Code:
cat /etc/fstab
to see it info is there, for me it has
Code:
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
which I actually commented out: http://www.tldp.org/LDP/abs/html/her...l#COMMENTBLOCK because of problems I had mounting but that's another story, could try it tho
Code:
sudo vi /etc/fstab
[not_code]...
same as vim: http://www.linuxstall.com/wp-content...heat-sheet.png arrows to move down i for insert mode put # at start:[/not_code]
#/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
~
~
[not_code][Esc] to exit insert mode then [Shift] +Q or +: and put at bottom of screen wq [Enter] for write quit[/not_code]
Quote:
Originally Posted by oel View Post
...

How can I check if /media exist in filesystem?

Regards
Code:
cd /media
would work some use /mnt I would also try omitting the type (-t) each try... try both
Code:
mount /dev/cdrom
mount /dev/cdrom0
if folders /media/cdrom or /mnt/cdrom exist try
Code:
mount /dev/sr0 /media/cdrom
or /mnt instead of /media good info and links also here: http://en.wikipedia.org/wiki/Mount_%28Unix%29
best wishes and have fun.

Last edited by jamison20000e; 05-14-2014 at 06:50 AM.
 
Old 05-14-2014, 06:56 AM   #10
oel
LQ Newbie
 
Registered: Apr 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hello, I still cant mount my cdrom device...

Code:
# cat /proc/devices
Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 29 fb
128 ptm
136 pts
162 raw
180 usb
189 usb_device
202 cpu/msr
203 cpu/cpuid
249 hidraw
250 usbmon
251 bsg
252 pcmcia
253 watchdog
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
  9 md
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp

Code:
# mount /dev/cdrom
mount: can't find /dev/cdrom in /etc/fstab or /etc/mtab
# mount /dev/cdrom0
mount: can't find /dev/cdrom0 in /etc/fstab or /etc/mtab
# mount /dev/sr0
mount: can't find /dev/sr0 in /etc/fstab or /etc/mtab
# mount /dev/ram11
mount: can't find /dev/ram11 in /etc/fstab or /etc/mtab
# mount /dev/hdc
mount: can't find /dev/hdc in /etc/fstab or /etc/mtab

# mount /dev/ram11 /media
mount: you must specify the filesystem type
# mount -t iso9660  /dev/ram11 /media
mount: wrong fs type, bad option, bad superblock on /dev/ram11,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

Last edited by oel; 05-14-2014 at 06:57 AM.
 
Old 05-14-2014, 07:08 AM   #11
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,101
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
Here is my output if it helps
Code:
cat /proc/devices 
Character devices:
  1 mem
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  6 lp
  7 vcs
 10 misc
 13 input
 14 sound/mixer
 14 sound/dsp
 14 sound/audio
 21 sg
 29 fb
 81 video4linux
 99 ppdev
116 alsa
128 ptm
136 pts
180 usb
189 usb_device
216 rfcomm
226 drm
252 media
253 bsg
254 rtc

Block devices:
259 blkext
  7 loop
  8 sd                                                                                                                                                                                          
 11 sr                                                                                                                                                                                          
 65 sd                                                                                                                                                                                          
 66 sd                                                                                                                                                                                          
 67 sd                                                                                                                                                                                          
 68 sd                                                                                                                                                                                          
 69 sd                                                                                                                                                                                          
 70 sd                                                                                                                                                                                          
 71 sd                                                                                                                                                                                          
128 sd                                                                                                                                                                                          
129 sd                                                                                                                                                                                          
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
..?
 
Old 05-14-2014, 07:21 AM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,324
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Quote:
...
Block devices:
...
8 sd
9 md
...
It might be one of those two in terms of the major number.

$ ls -l /dev/ | grep "8,"
$ ls -l /dev/ | grep "9,"

But it seems odd / missing to me. Perhaps you don't have some kernel modules loaded. Like sr_mod, sd_mod, scsi, sg. Or the device is broken or misconfigured from the hardware side of things.
 
1 members found this post helpful.
Old 05-14-2014, 07:35 AM   #13
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,101
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
Or, even
Code:
ls -l /dev/ | grep ""
to see them all...
 
Old 05-14-2014, 08:14 AM   #14
oel
LQ Newbie
 
Registered: Apr 2014
Posts: 24

Original Poster
Rep: Reputation: Disabled
Im working with Hyper-V.... perhaps the problema is that Hyper-V is not capable to present the DVD unit.... Could it be?
 
1 members found this post helpful.
Old 05-14-2014, 08:24 AM   #15
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by oel View Post
Im working with Hyper-V.... perhaps the problema is that Hyper-V is not capable to present the DVD unit.... Could it be?
yes as hyper-v is a virtualizer, it needs to be configured to allow for the VMs to access the real hardware like the CD/DVD player.
 
  


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
mount: mount point /mnt/cdrom does not exist Sujathapm Linux - Newbie 11 07-31-2013 03:19 AM
CDROM refuses to mount, /dev/cdrom does not exist shane25119 Linux - Hardware 10 08-02-2009 11:43 PM
Cdrom won't mount, "cdrom busy" mickeyboa Fedora 7 11-30-2004 11:39 PM
I can't mount CDROM dxtr Linux - Hardware 8 06-23-2004 10:21 PM
Can't Mount CDROM-Please Help! ClericPreston Linux - Newbie 2 06-17-2004 10:50 AM


All times are GMT -5. The time now is 04:40 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration