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 02:30 AM..
Sponsored Links
    #2  
Old 05-09-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 27 July 2014, 8:53 PM EDT
Location: NM
Posts: 10,155
Thanks: 269
Thanked 781 Times in 731 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: 27 July 2014, 5:28 AM EDT
Location: Switzerland - GE
Posts: 5,609
Thanks: 151
Thanked 387 Times in 364 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: 14 April 2013, 5:54 AM EDT
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
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 10:11 AM
/dev X /devices ffpradella UNIX for Dummies Questions & Answers 0 06-25-2008 06:42 PM
passthrough devices vs. named devices thumper UNIX for Dummies Questions & Answers 1 06-04-2008 09:13 PM
USB Devices davidkretsch Red Hat 2 02-21-2005 05:32 PM
HP-UX 10.20 devices LivinFree HP-UX 9 02-05-2002 05:02 AM



All times are GMT -4. The time now is 06:20 AM.