LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-27-2004, 08:59 AM   #1
Gijet
LQ Newbie
 
Registered: Feb 2004
Posts: 24

Rep: Reputation: 15
problem with mounting cdrom


my cdrom is asus 52x, in Hardware Browser I see the boldness about my cdrom is :

Driver : none or built in
Device : /dev/hdd

I have tried a lot of way to mounting my cdrom, but always failed , only voice the boisterous rotatory cd. I very surprised and confused because there is no problem when I Playing movie with xine or Mplayer

Result of comand which I do is :

1. [root@localhost root]# mount /mnt/cdrom
mount: Not a directory

2. [root@localhost root]# mount -t cdrom /dev/cdrom /mnt/cdrom
mount: fs type cdrom not supported by kernel

3. [root@localhost root]# mount -t iso9660 /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: Not a directory

4. [root@localhost root]# mount /dev/cdrom /mnt/cdrom
/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

5. [root@localhost root]# mount /dev/hdd /dev/cdrom
/dev/hdd: Input/output error
mount: block device /dev/hdd is write-protected, mounting read-only
/dev/hdd: Input/output error
mount: you must specify the filesystem type

and this is content of my /etc/fstab file:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda10 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 02-27-2004, 09:23 AM   #2
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
1. Does the directory /mnt/cdrom exist?

2. proper use of -t would be mount -t "filesystem type"

3. see #1 above.

looking at your fstab, you are specifying two different filesystems for the cdrom, udf and iso9660. Try removing one of the (udf).
example:
Code:
/dev/sr0         /mnt/cdrom       iso9660     noauto,user,ro   0   0
Since most CD's will be iso9660 filesystem, they will mount with no problem, then when you do have a udf disc, you specify with -t

mount /dev/cdrom -t udf /mnt/cdrom
 
Old 02-27-2004, 01:05 PM   #3
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
as stated above, but somewhat danced around, if you cd-rom is /dev/hdd then you, and if the directory /mnt/cdrom exists (to check this type "ls /mnt" and you should it.), you should be able to type:

Code:
mount /dev/hdd /mnt/cdrom
From there all the files on your cd should be accessable from the /mnt/cdrom directory.
 
Old 02-27-2004, 03:42 PM   #4
Gijet
LQ Newbie
 
Registered: Feb 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Ok guys thanks :

1. the directory /mnt/cdrom is exist

2. I have removed the udf

3. because I very confused then I have changed the hdd (secondary slave) to hdc (secondary master) so in "Hardware browser" :

Driver : none or built in
Device : /dev/hdc

and I have tried to used this command but always failed :

mount /dev/hdc /mnt/cdrom
mount /dev/cdrom -t iso9660 /mnt/cdrom

And the contents /etc/fstab file continued to not change. I also have tried to click the cdrom icon in desktop (KDE 3.1 ) but I still receive error mesage :

can not find /dev/hdc in /etc/fstab or /etc/mtab


Finally I changed /dev/cdrom to /dev/hdc but in /etc/fstab file

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

to

/dev/hdc /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

but still failed.....
 
Old 02-27-2004, 05:49 PM   #5
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
You didn't necessarily need to chang the /dev/cdrom to /dev/hdc in your fstab. /dev/cdrom is just a symbolic link to /dev/hdx. Verify this as shown here.
Code:
$ls -l /dev/cdrom
lrwxrwxrwx    1 root     root            8 Jan  9 05:46 /dev/cdrom -> /dev/hdc
One other thing I noticed in you fstab entry is "owner." If you want all users to be able to mount and unmount the drive, then change that to "users" like this:
Code:
/dev/cdrom /mnt/cdrom iso9660 noauto,users,kudzu,ro 0 0
As stated before, with that in your fstab, to mount the drive you should be able to type:
Code:
$mount /dev/cdrom
That's it. If it doesn't work, post the exact error message(s) you get so we can better help. Also, look in dmesg for any information on your drive.
Code:
$dmesg |grep hdc
post that too.
 
Old 02-28-2004, 03:34 AM   #6
Gijet
LQ Newbie
 
Registered: Feb 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Ok thanks guys....first I login as root, afterwards I change title “owner” to “users” and remove “udf” ......so.... my /etc/fstab file like this :

/dev/cdrom /mnt/cdrom iso9660 noauto,users,ro 0 0

afterwards, I try this command

[root@localhost root]# mount /mnt/cdrom

but I still receive error message: mount: /dev/cdrom is not a valid block device

[root@localhost root]# mount /dev/hdc /mnt/cdrom

the error message is ----> mount: you must specify the filesystem type

[root@localhost root]# mount /dev/hdc -t 9660 /mnt/cdrom

the error message is ----> mount: fs type 9660 not supported by kernel

[root@localhost root]# mount /mnt/cdrom /dev/cdrom
the error message is ------>> mount: you must specify the filesystem type

[root@localhost root]# mount /dev/cdrom -t iso9660 /mnt/cdrom

the error message is ----> mount: /dev/cdrom is not a valid block device


the CD / VCD which I use is newly bought.
 
Old 02-28-2004, 12:08 PM   #7
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
I don't know about a VCD, but you cannot mount an audio CD. It sounds to me like that's what you have. That's why it's returning the "not a vaild block device" message.

Audio (music) CD do not need to be mounted to play.
 
Old 02-28-2004, 12:58 PM   #8
Gijet
LQ Newbie
 
Registered: Feb 2004
Posts: 24

Original Poster
Rep: Reputation: 15
OK guys thanks......I mean that CD is Redhat CD not audio cd so...what must I do ..........please help guys... I need your help....
 
Old 03-01-2004, 12:40 AM   #9
PhD
LQ Newbie
 
Registered: Jan 2004
Posts: 29

Rep: Reputation: 15
what does mount -t auto /dev/cdrom produce?

normally just entering mount /dev/cdrom should just work...
are they burnt cd's? ive had some trouble mounting cd's that have been created by direct cd writing as these are written using a different filetype.. (drag and drop bizzo using easy cd creator in windows) ... but with cd's that have been burnt normally with the right iso standards should work...

this is my fstab entry...

/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0


other than that

Last edited by PhD; 03-01-2004 at 12:42 AM.
 
Old 03-01-2004, 07:54 AM   #10
superbondbond
Member
 
Registered: Nov 2002
Posts: 668

Rep: Reputation: 30
Quote:
Originally posted by PhD
ive had some trouble mounting cd's that have been created by direct cd writing as these are written using a different filetype..
As far as I know, DirectCD is UDF.
 
  


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 Off
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
Mounting CDRom problem Gunn Linux - General 27 08-12-2003 11:39 AM
Problem mounting cdrom rwelch Linux - Hardware 4 03-07-2003 10:14 PM
problem w/mounting cdrom in rh 7.2 linuxnewbie00 Linux - Newbie 3 03-27-2002 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 11:07 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