UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2006-07-29 09:51 AM

helpmeforlinux
Member
Registered: 2006-07-29
Posts: 3

Re: Hard disk info

Sir i want to know the partitions of the hard disk and storage size of hard disk in my network. My network is a group of 5 pc's and on my pc linux is installed. How to the hard disk partions, total size, used space, free space etc in linux

Offline

#2 2006-08-02 06:51 PM

biologz
Administrator
From: Puking on the pavement
Registered: 2005-11-02
Posts: 396

Re: Hard disk info

Hi,

JUst a quick answer:

  -Partitions, used, free etc.:

use this command:

df -h

You can also use this one:

fdisk -l

gethostbyintuition() is still a dream of mine

                                                 -- quoted from bash

Offline

#3 2006-08-02 10:18 PM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,230

Re: Hard disk info

Personally I think cfdisk is a very good partitioning program.

Offline

#4 2006-08-03 05:17 AM

helpmeforlinux
Member
Registered: 2006-07-29
Posts: 3

Re: Hard disk info

Thanks for reply. Using df we can get harddisk info but is there any system call for this in linux

Offline

#5 2006-08-03 09:56 AM

biologz
Administrator
From: Puking on the pavement
Registered: 2005-11-02
Posts: 396

Re: Hard disk info

Yes, df use the statfs system call. I've nerver used it so just try a man 2 statfs, it could be useful.

good luck


gethostbyintuition() is still a dream of mine

                                                 -- quoted from bash

Offline

#6 2006-08-03 10:25 AM

helpmeforlinux
Member
Registered: 2006-07-29
Posts: 3

Re: Hard disk info

thank u sir reply me and suggesting such good otion thanks

Offline

#7 2009-09-08 08:41 AM

dannydesiliva
Guest

Re: Hard disk info

If u really want to see the underlying physical hard disks of a PV presented from a RAID arry or a storage u have to use the RAID array specific or storage specific utilities and/or commands depending on from where u presented the PV.


So from where this PV is presented from ..?

regards
John

Board footer

Powered by FluxBB