LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   problem with mounting cdrom (https://www.linuxquestions.org/questions/red-hat-31/problem-with-mounting-cdrom-151141/)

Gijet 02-27-2004 08:59 AM

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

superbondbond 02-27-2004 09:23 AM

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

Tap-Out 02-27-2004 01:05 PM

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.

Gijet 02-27-2004 03:42 PM

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.....

superbondbond 02-27-2004 05:49 PM

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.

Gijet 02-28-2004 03:34 AM

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.

superbondbond 02-28-2004 12:08 PM

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.

Gijet 02-28-2004 12:58 PM

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....

PhD 03-01-2004 12:40 AM

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 :confused:

superbondbond 03-01-2004 07:54 AM

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.


All times are GMT -5. The time now is 01:32 PM.