Hi,
I need to rediracte all the names of the devices (only disks) to a file.
Thanks:confused:
/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.
And in case you are talking about the true disk device only:
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...
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