Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 10-14-2003, 09:04 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 7

Rep: Reputation: 0
Harddisk capacity

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

thx guys..
Old 10-14-2003, 09:18 PM   #2
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
the command 'df' may help....this shows the partitions and there size and usage stats....

'df --help' for more options
Old 10-14-2003, 09:19 PM   #3
Registered: Sep 2003
Location: Norfolk, VA
Distribution: Slackware
Posts: 119

Rep: Reputation: 15
'df -h'

Doh...sorry for the dupe. :P

You beat me to submit.
Old 10-14-2003, 09:35 PM   #4
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
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.

        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)
Old 10-14-2003, 09:37 PM   #5
Registered: Sep 2003
Location: Norfolk, VA
Distribution: Slackware
Posts: 119

Rep: Reputation: 15
Nice post hw-tph. Thanks!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Determine HD Capacity... BFEINZIMER Linux - Hardware 2 09-29-2005 11:46 PM
Hard Drive capacity twantrd Linux - General 2 10-12-2004 03:04 PM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 03:03 AM
CD/RW capacity limits slackerboy Linux - General 14 01-20-2003 02:41 AM
To see the memory capacity of machine saravanan1979 Linux - Hardware 7 05-30-2002 03:08 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration