LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-20-2009, 02:32 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Finding my CD-ROM device by find command?


My system has a PATA CDROM as /dev/scd0 and a USB CDROM as /dev/scd1.

Right now I can detect/find my USB-CDROM by the following command:
Code:
find /dev/disk/by-path/ -type l -iname \*usb\*scsi\* -print0 | xargs -0 -iD readlink -f D | grep scd

Output:
/dev/scd1
However, what modification should make to the above command toto find my PATA CD-ROM?

I tried
Code:
find /dev/disk/by-path/ -type l -iname \*ata\*scsi\* -print0 | xargs -0 -iD readlink -f D | grep scd

and 

find /dev/disk/by-path/ -type l -iname \*cdrom\*scsi\* -print0 | xargs -0 -iD readlink -f D | grep scd
From where do I find the device type for my PATA CD-ROM to substitute in the above command?
 
  


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
Lockup of CD Rom/DVD Rom Device by shell process jiju.jacob Linux - Newbie 2 07-19-2008 02:54 AM
Burning CD or DVD from command line: Can't find device! rm_-rf_windows Linux - Software 10 10-30-2007 05:13 PM
find command : finding files that are created within last 24 hours Fond_of_Opensource Linux - Newbie 1 11-06-2006 03:47 AM
Can not find CD-Rom device sgtbob Linux - Hardware 4 03-31-2004 08:28 AM
When switched to command line, repeats "sr0: CD-ROM device not ready" over and over paradoxdruid Linux - General 7 10-21-2003 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:08 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
Open Source Consulting | Domain Registration