LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-20-2004, 01:09 PM   #1
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Rep: Reputation: 30
finding a CDRom


many distros must figure out which drive is what, i have run into the same problem, i need to identify the /dev/ designation of a CDrom drive automatically on different machines using a script.

does anyone know how to go about doing this, in such a way that a script could accomplish it and make a symlink /dev/cdrom to it?
 
Old 02-21-2004, 12:39 PM   #2
koen plessers
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Mint
Posts: 191

Rep: Reputation: 30
Hello

Have you tried: dmesg | grep CD-ROM ?
mine e.g. says:

hdc: ATAPI 52X CD-ROM drive, 128kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0

so I mount it with:

mount /dev/hdc /mnt/cdrom

Have a lot of fun

Koen Plessers
 
  


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
wine not finding my cdrom Vindane Linux - Software 2 03-04-2005 03:55 PM
Finding the CDROM rmartine Linux - Newbie 2 01-31-2005 06:33 PM
trouble finding cdrom techrolla Linux - Newbie 2 05-03-2004 11:33 PM
Finding my CDROM Paulsuk Linux - Hardware 5 04-19-2004 10:05 AM
finding cdrom - slack9.1 joshurl Linux - Laptop and Netbook 0 03-09-2004 05:33 PM


All times are GMT -5. The time now is 03:36 AM.

Main Menu
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