LinuxQuestions.org
Visit Jeremy's Blog.
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 02-13-2004, 05:21 PM   #1
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
/dev/cdrom link is dead


Well I made a huge user error after emerging some new packages in Gentoo. I ran 'etc-update' to update my configuration files and that somehow broke my cdrom link. Its a dead link now. It used to point to /dev/cdroms/cdrom0 but their is now such link now. Its not the kernel because I've been running this 2.6 kernel for 2 months now with no problems. Its a conf file that I messed up.

DMESG shows the cdrom drive detected as /dev/hdc yet a quick scan of /dev does not show hdc which I found strange. The only thing I've gotten from doing a lot of research is that /etc/devfsd.conf could have something to do with it. I don't know what devfs is and I am surely not going to start hacking the conf file without knowing whats going on.

Any ideas? Again, the /dev/cdrom link is completly dead.
 
Old 02-13-2004, 05:34 PM   #2
verdeboy2k
Member
 
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
huh, well devfs is the device filesystem that keeps track of your hardware, but CD-ROMs should be hd_ or sd_ for either IDE or SCSI drives. Try making the link point to /dev/hdc and see what happens, since it already doesn't work, not much harm could come from trying that.
 
Old 02-13-2004, 05:39 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
hmmm...well I try to remove the symbolic link:

Code:
root in /dev # rm cdrom
rm: remove symbolic link `cdrom'? y
Then I run 'ls' and /dev/cdrom is still there. It won't let me delete it. This is getting really wierd.
 
Old 02-13-2004, 05:39 PM   #4
ashoksagar
LQ Newbie
 
Registered: Feb 2003
Posts: 29

Rep: Reputation: 15
What does the ouput of ls show?

Quote:
ls -al /dev/cdrom
Quote:
ls -al /dev/hdc
Quote:
ls -al /dev/cdroms/cdrom0

as verdeboy said you could symlink /dev/hdc to /dev/cdrom and see what happens:
Quote:
ln -sf /dev/hdc /dev/cdrom
 
Old 02-13-2004, 05:43 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
Code:
root in /dev # ln -sf /dev/hdc /dev/cdrom
ln: creating symbolic link `/dev/cdrom' to `/dev/hdc': File exists

root in /dev # ls -al /dev/cdrom
lr-xr-xr-x    1 root     root           13 Feb 13 17:47 /dev/cdrom -> cdroms/cdrom0

root in /dev # ls -al /dev/hdc
ls: /dev/hdc: No such file or directory

root in /dev # ls -al /dev/cdroms/cdrom0
ls: /dev/cdroms/cdrom0: No such file or directory
It seems kernel related but as I said this kernel has been working for quiet some time now. Perhaps a module is missing?
 
Old 02-13-2004, 05:55 PM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 47
do you have a device
/dev/scd0
or
/dev/sg0
(or something similar with the numbers changed?) when I installed kernel2.6.2 the device name assigned to my cdrom changed w/o warning. Also, if you are using ide-scsi on your cd-drive, you should be able to see that it is there with
cdrecord -scanbus
 
Old 02-13-2004, 05:58 PM   #7
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
Code:
root in /dev # cdrecord -scanbus
Cdrecord-Clone 2.01a25 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Their is no hint of /dev/scd or /dev/sg. I think that 'Cannot open SCSI driver' may be a good start. What is the name of that module I have to load? ide_scsi?
 
Old 02-14-2004, 05:32 AM   #8
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Original Poster
Rep: Reputation: 57
hmmm...this fixed it:

# modprobe ide-scsi

I thought I did not need scsi emulation in the 2.6 kernel but this works.
 
  


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
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 08:11 PM
ln: creating symbolic link `/dev/dvd' to `/dev/hdc': Permission denied qazwsx27 Fedora 3 06-14-2005 03:09 PM
how to fix /dev/cdrom circular link? mishunimi Mandriva 4 06-13-2005 09:58 AM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 09:36 PM
symbolic link: /dev/sound to /proc/asound/dev otterit Linux - General 3 08-08-2002 06:33 PM


All times are GMT -5. The time now is 11:07 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration