- 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 10:23 PM
тАО07-07-2009 10:23 PM
Re: how to distinguish dvd rom or hard disk
The DVD or all disks without the DVD?
SAM -> disks will sort this for you, try this.
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-08-2009 05:36 AM
тАО07-08-2009 05:36 AM
Re: how to distinguish dvd rom or hard disk
This looks like bash is root's shell (# prompt is typically only for root). If this is root's shell in /etc/passwd, you cannot run in single user mode (a very bad thing). bash does not come in an archived library version unless you compile and make one. In single user mode, /usr is not mounted so bash doesn't exist. Only the programs in /sbin will be seen.
And don't copy bash to /sbin because it will required shared libraries found in /usr/lib...still leaving root without any shell in single user mode.
The correct (only) shell for root is /sbin/sh which is not the Bourne shell but the POSIX shell, virtually the same at the command level to bash and ksh. Most notable differences involve interactive features such as arrow keys and command history manipulation.
> ioscan -fnC disk
Add the -k option so ioscan will run about 100 times faster.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 08:39 AM
тАО07-08-2009 08:39 AM
Re: how to distinguish dvd rom or hard disk
please try this command to get only the disk in your system.
# ioscan -C disk | grep -i -v dvd-rom
It will show all the hard disk only. the logical path to the DVD-ROM, which you see on your last output will be gone this time hopefully. Please try and paste the output.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 08:49 AM
тАО07-08-2009 08:49 AM
Re: how to distinguish dvd rom or hard disk
Assigning points is also a way to say Thank you to people who are spending their valuable time in resolving your issues. so, plz assign points to them.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 12:15 AM
тАО07-09-2009 12:15 AM
Re: how to distinguish dvd rom or hard disk
thanks for your replies
I have solved my question by using command diskinfo
when it is a disk
When i use diskinfo /dsk/rdsk/c0t0d0
it will shows type:direct access
if it is a CD-ROM
When i use diskinfo /dsk/rdsk/c0t0d0
it will shows type:CD-ROM
so I could distingisush them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2009 12:16 AM
тАО07-09-2009 12:16 AM
Re: how to distinguish dvd rom or hard disk
- « Previous
-
- 1
- 2
- Next »