LinuxQuestions.org
Review your favorite Linux distribution.
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 06-28-2003, 11:06 PM   #1
Frank
Member
 
Registered: Jun 2002
Location: Québec, Canada
Distribution: Slackware
Posts: 42

Rep: Reputation: 15
Problem installing cdrom drive...


Hi,
I just installed Slackware and I can't mount my cdrom drive. It says: Can't find /cdrom in /etc/fstab or /etc/mtab.

Here is what is written in fstab:
/dev/hda5 swap swap defaults 0 0
/dev/hda6 / reiserfs defaults 1 1
/dev/hda1 /home reiserfs defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

What should I do to be able to read cdroms???

Thanks!

Frank.
 
Old 06-29-2003, 01:39 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Hi

Well, reading what you just wrote:

"Hi,
I just installed Slackware and I can't mount my cdrom drive. It says: Can't find /cdrom in /etc/fstab or /etc/mtab.

Here is what is written in fstab:
/dev/hda5 swap swap defaults 0 0
/dev/hda6 / reiserfs defaults 1 1
/dev/hda1 /home reiserfs defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

What should I do to be able to read cdroms???"

The more obvious thing that I see is that /cdrom =! /mnt/cdrom. So, I hope you are mounting /mnt/cdrom as that is what is in your /etc/fstab. mount /mnt/cdrom.

If there is not directory in /mnt for cdrom, create one, and try again. If I have not read this correctly, please clarify. Good luck.

Thor
 
Old 06-29-2003, 10:16 AM   #3
Frank
Member
 
Registered: Jun 2002
Location: Québec, Canada
Distribution: Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
The /mnt/cdrom is indeed there, and I can access to it. The problem is I always get a blank directory. I do umount on the shell and they say the cdrom drive isn't mounted yet. Then I do mount and they tell me this:
Can't find /cdrom in /etc/fstab or /etc/mtab.

What can I do to be able to access the contents of my cdroms???
 
Old 06-29-2003, 10:32 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
try mount /mnt/cdrom or mount /dev/cdrom
 
Old 06-29-2003, 03:24 PM   #5
Frank
Member
 
Registered: Jun 2002
Location: Québec, Canada
Distribution: Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
As I said, I can't mount my cdrom drive. When I do mount /mnt/cdrom, it says: Can't find /cdrom in /etc/fstab or /etc/mtab.
 
Old 06-29-2003, 08:41 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,983

Rep: Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678
Have you tried this (as root):

mount -t iso9660 /dev/cdrom /mnt/cdrom
 
Old 06-30-2003, 12:56 AM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
If that fails, try going through the commands that you used to get this error and cut and paste them in here. Prompts and all and don't leave anything out.
 
Old 07-12-2003, 12:09 PM   #8
Frank
Member
 
Registered: Jun 2002
Location: Québec, Canada
Distribution: Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
When I do: mount -t iso9660 /dev/cdrom /mnt/cdrom
it shows:
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: No medium found
 
Old 07-12-2003, 05:18 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,983

Rep: Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678Reputation: 5678
Stupid question but do you have a regular data CD in the drive?
 
Old 07-13-2003, 11:46 AM   #10
Frank
Member
 
Registered: Jun 2002
Location: Québec, Canada
Distribution: Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Of course!
 
Old 07-15-2003, 03:20 AM   #11
faheyd
Member
 
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342

Rep: Reputation: 30
Hi Frank,
Just so we all are on a level playing field, /dev/cdrom is not a 'real' device, it's a sym link to the 'real' device. Normally, it would link to /dev/hdc (master on the secondary ide channel, but it can be /dev/hdb or /dev/hdd.
Now, if you open up a console window, type 'dmesg' and look at the output, you can actually see the devices being discovered/configured at boot, see if you can figure out what the real device is for your 'cdrom'.
Next, please do a 'ls -al /dev/cdrom' and tell us what your your system is linking /dev/cdrom to? This will tell us what to do next.
In the mean time, you may have a corrupted mtab file. How about doing $ rm -f /etc/mtab*
, then reboot.
 
Old 08-06-2003, 12:44 PM   #12
Frank
Member
 
Registered: Jun 2002
Location: Québec, Canada
Distribution: Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Here my fstab:
/dev/hda5 swap swap defaults 0 0
/dev/hda6 / ext3 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

With this, when I do 'mount /mnt/cdrom', it does:
wrong fs type, bad option, bad superblock on /dev/cdrom or too many mounted file systems.

++I did 'dmesg' and I found:
hdc: ATAPI 24X DVD-ROM drive, 512kB Cache, UDMA(33)
++I did 'ls -al /dev/cdrom' and it showed: /dev/cdrom -> /dev/hdc
++I edited my fstab and changed /dev/cdrom to /dev/hdc and now it says:
wrong fs type, bad option, bad superblock on /dev/hdc or too many mounted file systems.
++I also did 'rm -f /etc/mtab' and rebooted, but nothing changed.

I also installed Slackware on an other computer (an old Pentium 166Mhz) and I had the same problem: I couldn't mount the cdrom drive. I'm beginning to ask myself some serious questions...

To all of you Slackware 9.0 users, was your cdrom drive mounted right after the installation of the OS and if not, how did you manage to mount it???
 
Old 08-06-2003, 12:55 PM   #13
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
There wasn't any entries for my cdrom drives. I added the lines in fstab myself:
/dev/hdc /mnt/cdrom iso9660 user,noauto,ro 0 0
/dev/hdd /mnt/cdrw iso9660 user,noauto,ro 0 0
I had a similar problem, but I forgot how I fixed it
 
Old 08-07-2003, 05:34 AM   #14
faheyd
Member
 
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342

Rep: Reputation: 30
Frank,
I found another link out there, by chance, are we talking about a 'rw/cdrom' and not just a cdrom?
Because if so, your device is /dev/scd0 and that's what you should be mounting. so try that:
mount -t iso9660 /dev/scd0 /mnt/cdrom
and see what happens. If it works, change your 'link' in your /dev/cdrom from /dev/hdc to /dev/scd0
example:
cd /dev
rm cdrom
ln -s /dev/scd0 /dev/cdrom
and all should be well with your fstab, if you keep it original
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0

Go Forth and Multiply!
 
Old 08-07-2003, 11:48 AM   #15
Frank
Member
 
Registered: Jun 2002
Location: Québec, Canada
Distribution: Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
In fact, it's a dvd-rom drive and not a rw/cdrom drive.
I tried 'mount -t iso9660 /dev/scd0 /mnt/cdrom' and it said:
mount: /dev/hd0 is not a valid block device.

The fact that I got a dvd-rom drive doesn't seem to change a thing, because I get the same problem with my old computer, which got a regular cdrom drive!
 
  


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
Installing Vector Linux on computer with no CDROM drive DaneM VectorLinux 2 02-13-2005 10:32 PM
installing without boot cdrom, no floppy drive, and no network - stuck need some help TimeFade Linux - Laptop and Netbook 4 05-14-2004 03:39 PM
problems installing cdrom drive blueuk Linux - Hardware 4 11-01-2003 07:28 PM
problem unmount cdrom drive hamish Linux - General 5 10-28-2003 12:23 AM
Problem with cdrom drive and mount after installing patches for game... Shade Linux - General 7 07-11-2003 02:25 AM

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

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