Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-20-2009, 02:32 PM   #1
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:
find /dev/disk/by-path/ -type l -iname \*usb\*scsi\* -print0 | xargs -0 -iD readlink -f D | grep scd

However, what modification should make to the above command toto find my PATA CD-ROM?

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


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?


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration