LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Harddisk capacity (https://www.linuxquestions.org/questions/linux-hardware-18/harddisk-capacity-104002/)

ilengna 10-14-2003 08:04 PM

Harddisk capacity
 
guys.. how to know the capacity of hard disk, like window: right click on drive C:\ - properties..

thx guys..

DoubleOTeC 10-14-2003 08:18 PM

the command 'df' may help....this shows the partitions and there size and usage stats....

'df --help' for more options

g00$e 10-14-2003 08:19 PM

'df -h'

Doh...sorry for the dupe. :P

You beat me to submit.

hw-tph 10-14-2003 08:35 PM

df -h would provide you with the size of the mounted partitions. If you do a hdparm -I <device> (device could be /dev/hda or something similar) you will get a lot of info, but important in this case is the Configuration section, where you can find the physical capacity of the drive.

Code:

Configuration:
        Logical        max    current
        cylinders      16383  4047
        heads          16      16
        sectors/track  63      255
        --
        CHS current addressable sectors:  16511760
        LBA    user addressable sectors:  90069840
        device size with M = 1024*1024:      43979 MBytes
        device size with M = 1000*1000:      46115 MBytes (46 GB)

Håkan

g00$e 10-14-2003 08:37 PM

Nice post hw-tph. Thanks!


All times are GMT -5. The time now is 01:57 AM.