LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-02-2004, 08:16 PM   #1
GlobShim
Member
 
Registered: Aug 2003
Posts: 32

Rep: Reputation: 15
cdrom not in fstab


I don't know when this happened, but today I tossed a CD in and it wasn't recognizing the cdrom. I tried to mount it and it said there was no cdrom in fstab. So I checked fstab, there was no cdrom line. I don't know when this happened, but it also turns out that there is no /dev/cdrom either.

Am I correct in remembering that /dev/cdrom was a symlink to something else? If so what? If not how do I get my /dev/cdrom back?

Thanks
 
Old 04-02-2004, 08:31 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Okay first post your fstab.

/dev/cdrom is usually a symlink. Which device depends on which ide cable and whether its master or slave

Primary Master /dev/hda
Primary Slave /dev/hdb
Secondary Master /dev/hdc
Secondary Slave /dev/hdd
 
Old 04-02-2004, 08:38 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Ok what distro, version are you running? Its possible that something happend to the drive. I'm guessing maybe kudzu didn't detect the drive and therefore deleted it from the /etc/fstab/
 
Old 04-02-2004, 08:42 PM   #4
LSA
Member
 
Registered: Dec 2003
Distribution: Slackware 10
Posts: 45

Rep: Reputation: 15
I don't know if this is much help but my /dev/cdrom is pointing to /dev/scd0

My CD drive isn't a scsi though
 
Old 04-02-2004, 08:44 PM   #5
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
If its a writer then scsi emulation is normally used. so scd0 would be correct.
 
Old 04-02-2004, 08:47 PM   #6
LSA
Member
 
Registered: Dec 2003
Distribution: Slackware 10
Posts: 45

Rep: Reputation: 15
Quote:
Originally posted by leonscape
If its a writer then scsi emulation is normally used. so scd0 would be correct.
Ok, I understand now, thanks.

Sorry for the off-topic
 
Old 04-02-2004, 09:28 PM   #7
GlobShim
Member
 
Registered: Aug 2003
Posts: 32

Original Poster
Rep: Reputation: 15
Ok, I got it working, but for completeness, I am running Red Hat 9 and here is my fstab:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext2 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/hda7 swap swap defaults 0 0
/dev/hda2 /mnt/win/c vfat defaults 0 0
/dev/hda5 /mnt/stor/d vfat defaults 0 0
/dev/hdc1 /mnt/stor/e vfat defaults 0 0
/dev/hdc2 /mnt/stor/f vfat defaults 0 0
/dev/hdc5 /mnt/stor/g vfat defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro 0 0

The thing was that I just added the second hard drive and moved the cdrom to the slave on the secondary IDE. I didn't know that it would just delete the cdrom entry in fstab like that. I created the symlink again, and it goes to /dev/hdd (it is not a burner).

Ok, one last question. Before I could type mount cdrom and it would mount it, now I have to type mount /dev/cdrom or mount /mnt/cdrom. How was that possible before?

Thanks all
 
Old 04-02-2004, 09:31 PM   #8
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Is it possible you had the cdrom directory in the root ie /cdrom not /mnt/cdrom?

This would explain it. Or a symlink from /cdrom too /mnt/cdrom?

( Been a while since I used redhat )
 
Old 04-02-2004, 09:41 PM   #9
GlobShim
Member
 
Registered: Aug 2003
Posts: 32

Original Poster
Rep: Reputation: 15
That might be it. I don't remember exactly, but I don't remember a /cdrom. The eject cdrom works, but mount needs the whole path now.

I tried adding a symlink in / and that still doesn't do it. It still says it can't find /cdrom in /etc/fstab or /etc/mtab.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/fstab - /mnt/cdrom d1l2w3 Linux - Hardware 10 01-08-2005 08:33 PM
mounting cdrom and fstab mikz Slackware - Installation 7 09-05-2004 12:07 PM
fstab cdrom help eo697 Slackware 24 07-26-2004 09:14 AM
CDROM in /etc/fstab not working fbarre Linux - Newbie 12 08-29-2003 01:58 PM
fstab and cdrom links - hdc or cdrom? tunedLow Linux - Newbie 5 12-21-2001 12:57 PM

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

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