list of devices | Unix Linux Forums | HP-UX

  Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

list of devices

HP-UX


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-09-2009
yoavbe yoavbe is offline
Registered User
 
Join Date: Jun 2006
Last Activity: 9 April 2013, 8:13 AM EDT
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
list of devices

Hi,
I need to rediracte all the names of the devices (only disks) to a file.
Thanks

Last edited by yoavbe; 05-09-2009 at 03:30 AM..
Sponsored Links
    #2  
Old 05-09-2009
jim mcnamara jim mcnamara is online now Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 22 December 2014, 11:30 AM EST
Location: NM
Posts: 10,313
Thanks: 297
Thanked 823 Times in 765 Posts
/etc/mnttab already is a list of mounted disk devices. /etc/fstab is also a list of disk devices, but it may refelct devices that are not mounted.
Sponsored Links
    #3  
Old 05-11-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 22 December 2014, 10:44 AM EST
Location: Switzerland - GE
Posts: 5,982
Thanks: 171
Thanked 440 Times in 412 Posts
And in case you are talking about the true disk device only:

Code:
ant:/home/vbe $ vgdisplay -v|grep dsk|more
   PV Name                     /dev/dsk/c2t2d0
   PV Name                     /dev/dsk/c1t2d0
   PV Name                     /dev/dsk/c14t0d0
   PV Name                     /dev/dsk/c15t0d0 Alternate Link
   PV Name                     /dev/dsk/c15t0d1
   PV Name                     /dev/dsk/c14t0d1 Alternate Link
   PV Name                     /dev/dsk/c14t0d2
   PV Name                     /dev/dsk/c15t0d2 Alternate Link
   PV Name                     /dev/dsk/c15t0d3
   PV Name                     /dev/dsk/c14t0d3 Alternate Link
etc...

    #4  
Old 05-13-2009
rene_metaal rene_metaal is offline
Registered User
 
Join Date: Jul 2002
Last Activity: 3 August 2014, 5:28 AM EDT
Posts: 27
Thanks: 0
Thanked 1 Time in 1 Post
ioscan -fnkC disk
And maybe you want to: | grep rdsk | sort -u >>disks.lst
This will also includes the CDROM/DVD, remember to delete that line
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
send email from address list and subject list paulds UNIX for Dummies Questions & Answers 2 06-27-2008 11:11 AM
/dev X /devices ffpradella UNIX for Dummies Questions & Answers 0 06-25-2008 07:42 PM
passthrough devices vs. named devices thumper UNIX for Dummies Questions & Answers 1 06-04-2008 10:13 PM
USB Devices davidkretsch Red Hat 2 02-21-2005 06:32 PM
HP-UX 10.20 devices LivinFree HP-UX 9 02-05-2002 06:02 AM



All times are GMT -4. The time now is 12:59 PM.