[TriLUG] RHEL disks
Carl Crider
c.crider at gmail.com
Mon May 4 20:22:27 EDT 2009
Personally I like how df gives the percent of disk space used.
q at homestar:~$ df -a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 18543888 8565988 9043324 49% /
proc 0 0 0 - /proc
/sys 0 0 0 - /sys
varrun 517584 224 517360 1% /var/run
varlock 517584 0 517584 0% /var/lock
udev 517584 88 517496 1% /dev
devshm 517584 12 517572 1% /dev/shm
devpts 0 0 0 - /dev/pts
lrm 517584 39792 477792 8%
/lib/modules/2.6.24-23-generic/volatile
/dev/sdb1 39077884 20328456 18749428 53% /media/USER
/dev/sda2 6956144 3801316 3154828 55% /media/Apps
securityfs 0 0 0 - /sys/kernel/security
binfmt_misc 0 0 0 -
/proc/sys/fs/binfmt_misc
gvfs-fuse-daemon 18543888 8565988 9043324 49% /home/q/.gvfs
/dev/sdd1 244196000 117355536 126840464 49% /media/disk
/dev/sde1 117218240 113724264 3493976 98% /media/OneTouch
On Mon, May 4, 2009 at 7:11 PM, Carl Crider <c.crider at gmail.com> wrote:
> What about the "df" command?
>
> http://unixhelp.ed.ac.uk/CGI/man-cgi?df
>
>
>
>
> On Mon, May 4, 2009 at 6:17 PM, stan briggs <stanbriggs at gmail.com> wrote:
>
>> all,
>>
>> i trying to programatically gather information on the disks that are
>> installed on two different platforms. the solaris side i can handle
>> but the RHEL side i can't quite get to. things like 'fdisk -l' and the
>> contents of /proc/partitions give me details that i don't need. i just
>> want to list the disks (and their sizes, hopefully) that are currently
>> connected to the server.
>>
>> any suggestions?
>>
>> thanks,
>> stan
>>
>> --
>> Stan B. Briggs
>> +1-919-414-9513
>> +++++++++++++++++++
>> the oBoJ Foundation is the open source community coming together for
>> the benefit of society. our events and work are for the purpose of
>> raising awareness, raising funds, and performing activities for good
>> causes. participation is open to all who wish to support worthwhile
>> public causes. www.oBoJ.org
>> +++++++++++++++++++
>> Little tiny dreams require little tiny thoughts and little tiny steps.
>> Great big dreams require great big thoughts and little tiny steps.
>> +++++++++++++++++++
>> --
>> TriLUG mailing list :
>> http://www.trilug.org/mailman/listinfo/trilug
>> TriLUG FAQ : http://www.trilug.org/wiki/Frequently_Asked_Questions
>>
>
>
>
> --
> Carl Crider
> c.crider at gmail.com
> 919.923.6733
>
--
Carl Crider
c.crider at gmail.com
919.923.6733
More information about the TriLUG
mailing list