Hi, Experts,
I wonder if there is a simple command that can show the size of a raw device.
For instance,
How do I tell the size of c3t5006016839A02025d8s2?
One command I know is 'newfs'. However, I might get an IO error, if this device was not labeled.
The other command is 'format' which requires user interaction, so that I can not use it in my perl script.
Is there other commands that I can use?
Many thanks.
I wonder if there is a simple command that can show the size of a raw device.
For instance,
Code:
% pwd
/dev/rdsk
% ls -l c3t5006016839A02025d8s2
lrwxrwxrwx 1 root root 83 Jul 31 11:29 c3t5006016839A02025d8s2 -> ../../devices/pci@7c0/pci@0/pci@9/QLGC,qlc@0,1/fp@0,0/ssd@w5006016839a02025,8:c,raw
How do I tell the size of c3t5006016839A02025d8s2?
One command I know is 'newfs'. However, I might get an IO error, if this device was not labeled.
The other command is 'format' which requires user interaction, so that I can not use it in my perl script.
Is there other commands that I can use?
Many thanks.