- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to distinguish dvd rom or hard disk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 04:04 AM
тАО07-07-2009 04:04 AM
how to distinguish dvd rom or hard disk
because i use command
ioscan -fnC disk
I found dvd rom and hard disk ,I only would like to show hard disk only,how to do it
how to distinguish them
I need to use program to distinguish them
my attached file which shows my machine result
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 04:08 AM
тАО07-07-2009 04:08 AM
Re: how to distinguish dvd rom or hard disk
the first, there is a comment DVD-ROM
device file : /dev/dsk/c0t0d0
HW path : 0/0/2/0.0.0.0
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 04:11 AM
тАО07-07-2009 04:11 AM
Re: how to distinguish dvd rom or hard disk
Right hand column.
Where it says: DVD-ROM
ioscan -fnC disk | grep -v -i dvd-rom
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 05:26 AM
тАО07-07-2009 05:26 AM
Re: how to distinguish dvd rom or hard disk
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 06:40 AM
тАО07-07-2009 06:40 AM
Re: how to distinguish dvd rom or hard disk
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 06:52 AM
тАО07-07-2009 06:52 AM
Re: how to distinguish dvd rom or hard disk
I agree with Bill that ioscan does not diffentiate between different types of disks. so, in your case, the only way to get only Hard disk is to use the grep.
# ioscan -fnC disk | grep -v -i dvd-rom
This will give you what you required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 06:17 PM
тАО07-07-2009 06:17 PM
Re: how to distinguish dvd rom or hard disk
it cannot solve my problem
the dvd rom still exist
in my attached file,it shows this situation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 06:41 PM
тАО07-07-2009 06:41 PM
Re: how to distinguish dvd rom or hard disk
You are getting this o/p as option "-v" is "All lines but those matching are printed"....so the line containing "DVD" is removed but the entry for DVD contains two lines and only One line containing DVD is removed and what you are seeing is the other line.
Regds,
R.K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 10:21 PM
тАО07-07-2009 10:21 PM
Re: how to distinguish dvd rom or hard disk
Go thru this book page number from 135 - 140.. you will get a clear picture..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 10:21 PM
тАО07-07-2009 10:21 PM
Re: how to distinguish dvd rom or hard disk
Go thru this book page number from 135 - 140.. you will get a clear picture..
http://books.google.com/books?id=Ni3G00IKHh4C&pg=PA138&lpg=PA138&dq=ioscan+output&source=bl&ots=P7ptHXsQwu&sig=dMDhMB_96GQzFD797lnnpUhEXEg&hl=en&ei=ljhUSum6EIy5jAflgomhCQ&sa=X&oi=book_result&ct=result&resnum=6