Operating System - HP-UX
1753863 Members
7528 Online
108809 Solutions
New Discussion юеВ

Re: how to distinguish dvd rom or hard disk

 
Torsten.
Acclaimed Contributor

Re: how to distinguish dvd rom or hard disk

What do you really want to get?

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!   
Bill Hassell
Honored Contributor

Re: how to distinguish dvd rom or hard disk

> bash-4.0#

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
Vishu
Trusted Contributor

Re: how to distinguish dvd rom or hard disk

Hi alert0919,

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
Vishu
Trusted Contributor

Re: how to distinguish dvd rom or hard disk

Hi,

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
alert0919
Advisor

Re: how to distinguish dvd rom or hard disk

Hi, all responser
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

alert0919
Advisor

Re: how to distinguish dvd rom or hard disk

thanks for all replies