LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-29-2003, 02:04 AM   #1
Gunn
LQ Newbie
 
Registered: May 2003
Posts: 12

Rep: Reputation: 0
Mounting CDRom problem


Hi,
I'm not able to mount the CDROM.
I had use : "mount /dev/cdrom" but it pop up an error " No Medium found"
Anyone know what is the problem?

rgds,
Gunn
 
Old 05-29-2003, 02:19 AM   #2
log
Member
 
Registered: Dec 2002
Location: South Australia
Distribution: Gentoo
Posts: 113

Rep: Reputation: 15
sounds like you dont have a CD in the drive?
 
Old 05-29-2003, 03:03 AM   #3
Gunn
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
I had the CD and gives error : mount : Not a directory"
 
Old 05-29-2003, 03:47 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
do this as root with a data cdrom, not audio, in the drive.
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
ls /mnt/cdrom

if you get the error message
/mnt/cdrom/ file exists, ignore it
 
Old 05-29-2003, 04:52 AM   #5
Gunn
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
I had try on " mount /dev/cdrom /mnt/cdrom " but display result as below:

/dev/cdrom: Input/ouput error
mount: block device /dev/cdrom is write protected, mounting read-only
/dev/cdrom: Input/output error
mount: you must specify the filesystem type
 
Old 05-29-2003, 05:27 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,748

Rep: Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927
What distribution / version are you running? SUSE uses /media/cdrom where as most others use /mnt/cdrom

Post /etc/fstab so we can take a look. It appears that there isn't an entry for the /mnt/cdrom.

Try this:
mount -t iso9660 /dev/cdrom /mnt/cdrom
 
Old 05-29-2003, 09:28 PM   #7
Gunn
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
tried out " mount -t iso9660 /dev/cdrom /mnt/cdrom" but still gives the same error :
mount: block device /dev/cdrom is write protected, mounting read-only
mount: Not a directory

The content of /etc/fstab is as below:

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
 
Old 05-29-2003, 09:53 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,748

Rep: Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927Reputation: 5927

mount: block device /dev/drom is write protected, mount read-only

Is a normal message for mounting a CDROM using the mount command.

mount: Not a directory.

Are you postive that the /mnt/cdrom directory exists?

Do you still get /dev/cdrom input/output errors?
 
Old 05-29-2003, 10:39 PM   #9
Gunn
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
I had checked out if /mnt/cdrom exists or not by typing :
mkdir /mnt/cdrom

and the result is : "mkdir: cannot create directory '/mnt/cdrom/: File exists"

If I type mount -t iso9660 /dev/cdrom /mnt/cdrom, I didn't get any Input/output error

BUT

if type mount /dev/cdrom /mnt/cdrom, I'll get below results:

/dev/cdrom: Input/output error
mount: block device /dev/cdrom is write-protected, mounting read-only
/dev/cdrom: Input/output error
mount: you must specify the filesystem type
 
Old 05-29-2003, 11:23 PM   #10
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Rep: Reputation: 30
maybe it is a file type that is not supported such as windows boot files or an audio cd.

what data is on this cd?
does the cd rom ever work?
r u dual booting? if so, does it work in the other OS?
 
Old 05-29-2003, 11:23 PM   #11
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
i think that udf part in fstab is messing things up a little.
you can take that out, and then reboot and try your
mount commands again.
 
Old 05-30-2003, 12:44 AM   #12
Gunn
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
The cd is Linux software installer.
My PC is dual boot (Windows and Linux)
The cd can b open in Windows, the cdrom works under Windows

I had take out the udf in /etc/fstab, reboot and try to mount but still get the same error.
 
Old 05-30-2003, 02:18 AM   #13
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
so you can mount it with
mount -t iso9660 /dev/cdrom /mnt/cdrom

but not with
mount /mnt/cdrom

if those are both true, it is almost surely something in fstab
 
Old 05-30-2003, 02:31 AM   #14
Gunn
LQ Newbie
 
Registered: May 2003
Posts: 12

Original Poster
Rep: Reputation: 0
The cd can b open under Windows platform not in Linux.
I can't mount the cdrom using neither " mount -t iso9660 /dev/cdrom /mnt/cdrom"
nor " mount /mnt/cdrom"

I wonder, does this problem caused by some missing files in /dev?
 
Old 05-30-2003, 03:22 AM   #15
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
post the output of
ls -l /dev/cdrom

it looks like it is sort of working.
you can try mount -t iso9660 /dev/hdX /mnt/cdrom
replacing the X with b or c or d in turn depending on
whether the cdrom drive is primary slave
secondary master or slave.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 04:46 PM
Problem in mounting CDRom JIV Linux - Software 3 02-06-2004 11:59 AM
Problem mounting cdrom rwelch Linux - Hardware 4 03-07-2003 10:14 PM
Mounting cdrom problem... Martok1 Linux - Newbie 9 02-10-2003 05:29 AM
problem w/mounting cdrom in rh 7.2 linuxnewbie00 Linux - Newbie 3 03-27-2002 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:38 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
Open Source Consulting | Domain Registration