LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-22-2003, 08:40 PM   #1
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Rep: Reputation: 30
re: where'd my cdrom go?


Hello All:

Newbie here. When I type:

ls -l /dev/cdrom

I get:
lrwxrwxrwx 1 root root 9 Aug 27 14:38 /dev/cdrom -> /dev/scd0

Can someone please explain this to me. I used to have my cdrom under /dev/cdrom. Does the previous line mean I now have it under /dev/scd0? What does "->" mean?

If my cdrom is now scd0, then how do I mount it? And how did it become scd0 when it used to be cdrom?

I used to mount my cdrom with:

mount -t iso9660 -v /dev/cdrom /mnt/cdrom

Now when I type that I get:

mount: block device /dev/cdrom is write-protected, mounting read-only
mount: No medium found

I have RH 7.3, using kde on the desktop.

Anxiously awaiting relevant replies.

Thanks,

ergo_sum
 
Old 10-22-2003, 08:53 PM   #2
AltF4
Member
 
Registered: Sep 2002
Location: .at
Distribution: SuSE, Knoppix
Posts: 532

Rep: Reputation: 31
/dev/scd0 --> first SCSI CD-ROM
/dev/cdrom --> symbolic link to your CD-ROM (for IDE CD-ROM: e.g. /dev/hdc)
 
Old 10-22-2003, 10:13 PM   #3
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Thanks, AltF4.

As posted, I'm a newbie. And, by the questions I asked, there's a whole bunch I don't understand.
That's why I always ask for "relevant" replies.
I'm interested in answers to my questions (hence relevance, yo).

Your post looks like a blurb (blurbs?) to me. I don't know which questions it answers.
Can you please be patient, and maybe use verbs and subjects and objects?

thanks

ergo_sum
 
Old 10-22-2003, 10:18 PM   #4
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Oh, here's my /etc/fstab

I'm way lost here.
A little help please.

ergo_sum
 
Old 10-22-2003, 10:19 PM   #5
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Sorry.
Here it is, my fstab:

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/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
 
Old 10-22-2003, 10:47 PM   #6
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
I really don't know what you are asking but I understand what he said. In windows you see links all over the place. Well, cdrom is just a link. The arrow represents that the drive is linked to scd0. If you have a IDE drive you want it pointing the the IDE device which is /dev/hdc(I think that's actually supposed to be a hard drive device name but what do I know..)

*twiddles thumbs waiting for program to finish making*
 
Old 10-22-2003, 11:04 PM   #7
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
well, /dev/cdrom -> /dev/scd0 means what it looks like - its pointin to whatever.
it cant have just changed to a scsi drive on its own, ya know. what'd u do? im assuming you didnt compile ur own kernel from your questions - so your drive shouldnt have scsi support?

find out which device under /dev is ur cd-drive. it should have come up under dmesg during startup.

do a
Code:
dmesg | grep 'cd'
or (if you dont get anything with the above) a
Code:
dmesg | grep 'hdc'
that should tell you where the drive is.

once you get it, and if its saying something other than "scd0", go remove it with
Code:
rm /dev/cdrom
next make a new link to the drive with
Code:
ln -s /dev/xxx /dev/cdrom
where xxx is what you saw was the device for the drive from above.

and then to check it, do :
Code:
mount /dev/cdrom /mnt/cdrom
ls /mnt/cdrom
umount /mnt/cdrom
hope that helps

Last edited by h/w; 10-22-2003 at 11:06 PM.
 
Old 10-23-2003, 08:11 AM   #8
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Yes!!!!

But lo, I feel like such a dweeb newbie. Enclosed is output from

dmesg | grep 'hdc'

Kernel command line: ro root=/dev/hda2 hdc=ide-scsi
ide_setup: hdc=ide-scsi
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdcMA, hddio
hdc: LG CD-RW CED-8080B, ATAPI CD/DVD-ROM drive
hdc: DMA disabled

So, is my cdrom hdc?
And would linking to the cdrom be made by writing:

ln -s /dev/hdc /mnt/cdrom

Anxiously awaiting your reply.

ergo_sum
 
Old 10-23-2003, 09:16 AM   #9
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Sorry, I don't use smilies and am very concerned re: how they got there in my post.

here is output again from dmsg | grep 'hdc'

Kernel command line: ro root=/dev/hda2 hdc=ide-scsi
ide_setup: hdc=ide-scsi
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdcMA, hddio
hdc: LG CD-RW CED-8080B, ATAPI CD/DVD-ROM drive
hdc: DMA disabled
 
Old 10-23-2003, 09:33 AM   #10
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46

well, it seems to have picked up the drive fine.
do a "dmesg | grep 'cd'" as i mentioned before, it should tell you what device the drive is being pointed to. in my case its 'sr0', so its /dev/sr0.
so i went and made a /dev/cdrom -> /dev/sr0
 
Old 10-23-2003, 11:03 AM   #11
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
Well let me acknowledge my newbieness.

So what is my cdrom?

Anxiously awaiting your reply.

ergo_sum
 
Old 10-23-2003, 11:06 AM   #12
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by ergo_sum
Sorry, I don't use smilies and am very concerned re: how they got there in my post.
Smilies are defined by particular characters on your keyboard, usually most of them will start with a colon ( : ) or semi-colon ( ; ) followed by another character.

Like putting : and a D together will make
Putting ; and a ) together will make a

Its not a matter of that you put them there or not, its what's typed and how they are recognized.. If you don't want these smilies to show up, you'll have to put a space between the characters that create them. Or turn smilies off in your profile but that won't stop other members that have them on to not see them.

Regards.
 
Old 10-23-2003, 11:46 AM   #13
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
anxiously awaiting the ouput of:
dmesg | grep 'cd'
 
Old 10-24-2003, 09:01 AM   #14
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
When I input dmesg | grep 'cd'

I get nothing, just a new prompt.

ergo_sum
 
Old 10-24-2003, 09:09 AM   #15
ergo_sum
Member
 
Registered: Aug 2003
Posts: 253

Original Poster
Rep: Reputation: 30
h/w

Unbelievable as is sounds I did install rh on this box. And I have no idea how my cdrom is now somehow a scuzzy drive--I don't have a scsi card.

So, w/ the output from both
dmesg | grep 'hdc'
and
dmesg | grep 'cd'

posted, please tell me what my cdrom is. Is it hdc, and if so, then should the sym link be:

ln -s /dev/hdc /mnt/cdrom


Please let me know.

And thanks,

ergo_sum
 
  


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
Where'd they go? Jaster Debian 4 11-16-2004 05:29 PM
Where'd my network go? theMonkeY Slackware 2 09-12-2004 08:43 AM
Where'd it go? mrde50garfield Mandriva 0 07-07-2004 05:12 PM
Where'd it go? rhraz Linux - Software 3 02-10-2004 11:02 PM
Now you see it, um...where'd it go? GhostInDarkness Red Hat 1 11-06-2003 01:00 PM

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

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