LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-22-2005, 02:09 PM   #1
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Rep: Reputation: 15
Exclamation mounting my cdrom (data cd)


i am running fedora core 3 and i cannot my mount mycdrom
when i try to mount, this is what happens:
[root@hawk ~]#
[root@hawk ~]# mount -t cdfs /etc/fstab /mnt/cdrom
mount: fs type cdfs not supported by kernel
[root@hawk ~]#

here is my fstab file [/etc/fstab]

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
/dev/cdrom /etc/cdrom cdfs defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdb /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0
/dev/hda /media/cdrecorder auto pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0


note that the following line was added by me

/dev/cdrom /etc/cdrom cdfs defaults 0 0

anyways, thanks in advance

-

:newbie:

Last edited by anubis26; 01-22-2005 at 02:35 PM.
 
Old 01-22-2005, 02:39 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,744

Rep: Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924
cdfs is a filesystem for reading audio CDs not data CDs. The standard filesystem type for data CDs is iso9660.

You already have an fstab entry for the cdrom drive. You should be able to mount a data CD like:
mount /media/cdrom
or
mount /dev/cdrom

And it will be mounted to directory /media/cdrom

FYI you should not mount a device within /etc directory.

Last edited by michaelk; 01-22-2005 at 02:40 PM.
 
Old 01-22-2005, 02:49 PM   #3
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
never mind
i just updated my fstab file
and i get the following in kde

Could not mount device.
The reported error was:
mount: /dev/cdrom is not a block device


Last edited by anubis26; 01-22-2005 at 03:22 PM.
 
Old 01-22-2005, 02:51 PM   #4
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
and command line sez
[root@hawk ~]# mount -t iso9660 /etc/fstab /mnt/cdrom
mount: /etc/fstab is not a block device (maybe try `-o loop'?)
[root@hawk ~]#


Last edited by anubis26; 01-22-2005 at 03:23 PM.
 
Old 01-22-2005, 03:24 PM   #5
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
here is my updated fstab

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdb /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0
/dev/hda /media/cdrecorder auto pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0

Last edited by anubis26; 01-22-2005 at 03:26 PM.
 
Old 01-22-2005, 06:31 PM   #6
ValidiusMaximus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge
Posts: 169

Rep: Reputation: 30
what does `ls -l /dev/cdrom` return?
 
Old 01-23-2005, 08:39 AM   #7
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
this is what is gives me

[root@hawk ~]# ls -l /dev/cdrom
ls: /dev/cdrom: No such file or directory
[root@hawk ~]#
 
Old 01-23-2005, 11:38 AM   #8
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
bump
 
Old 01-23-2005, 01:10 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,744

Rep: Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924
Quote:
/dev/hdb /media/cdrom auto pamconsole,fscontext=system_ubject_r:removable_t,ro,exec,noauto,managed 0 0
/dev/hda /media/cdrecorder auto pamconsole,fscontext=system_ubject_r:removable_t,ro,exec,noauto,managed 0 0
Your CDROM device is /dev/hdb, your CD writer deviceis /dev/hda

So try
mount /media/cdrom

If you want to mount the drive manually try:
mount -t iso9660 /dev/hdb /media/cdrom

Sorry, I mislead you in my previous post. You do not need the line you added in the fstab file. If some application needs a /dev/cdrom you can add a device by entering the following command (as root).
ln -s /dev/hdb /dev/cdrom

Last edited by michaelk; 01-23-2005 at 01:12 PM.
 
Old 01-23-2005, 02:24 PM   #10
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
[root@hawk ~]# mount /media/cdrom
mount: No medium found
[root@hawk ~]# mount -t iso9660 /dev/hdb /media/cdrom
mount: No medium found
[root@hawk ~]#




note:
does it make any difference that my hard drive is sda
or that i have an xp dual boot???

[root@hawk ~]# mount -t iso9660 /dev/sdb /media/cdrom
mount: No medium found
 
Old 01-23-2005, 02:27 PM   #11
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
also in kde
i have a shortcut to "cdrom/dvd-rom"
when i double click,
it returns

Could not mount device.
The reported error was:
mount: special device /dev/cdrom does not exist
 
Old 01-23-2005, 02:42 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,744

Rep: Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924
Is there a data CD in the drive? Do you have the CD in the writer instead of the CDROM drive?

Quote:
[root@hawk ~]# mount -t iso9660 /dev/sdb /media/cdrom
mount: No medium found
I wouldn't of expected a no medium found error.
 
Old 01-24-2005, 04:30 PM   #13
anubis26
Member
 
Registered: Jan 2005
Location: Somewhere in the Central Timezone
Distribution: Suse 10.0
Posts: 128

Original Poster
Rep: Reputation: 15
yes i have a data (game) cd in the drive
it is also a burner / reader drive
 
Old 01-24-2005, 07:42 PM   #14
ValidiusMaximus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge
Posts: 169

Rep: Reputation: 30
post your dmesg
 
Old 01-24-2005, 08:26 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,744

Rep: Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924Reputation: 5924
Do you have the CD in the correct drive? Try the other one.

hda is the writer
hdb is just the CDROM drive.
 
  


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
CDROM data corruption? PFudd Linux - Hardware 9 05-22-2005 02:53 AM
Cant mount data CDROM twallstr Linux - Hardware 3 09-11-2004 07:30 PM
mount data cdrom lxxy *BSD 5 12-29-2003 05:04 PM
How Do I copy data from the cdrom to my harddrive TransAmJugo Linux - Newbie 2 07-18-2003 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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