LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General > LinuxQuestions.org Member Intro
User Name
Password
LinuxQuestions.org Member Intro New to LinuxQuestions.org? Been a long time member but never made a post? Introduce yourself here.

Notices

Reply
 
LinkBack Search this Thread
Old 11-08-2011, 09:41 AM   #1
Xberry
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
How to check the hard disk size in linux


Hi am xberry and i am new here i hope i find frnds who wil help wen i am i ned
 
Old 11-08-2011, 09:50 AM   #2
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 44
Welcome to LQ!

Try running from the command line:
Code:
df -h
 
Old 11-08-2011, 10:30 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo, Slackware
Posts: 14,896
Blog Entries: 2

Rep: Reputation: 3810Reputation: 3810Reputation: 3810Reputation: 3810Reputation: 3810Reputation: 3810Reputation: 3810Reputation: 3810Reputation: 3810Reputation: 3810Reputation: 3810
Quote:
Originally Posted by etech3 View Post
Try running from the command line:
Code:
df -h
Code:
df -h
will only show the size of mounted partitions, not the harddisk size. For the harddisk size try
Code:
fdisk -l
This will show up the total size of a harddisk and the partitions and unpartitioned space (if any).
Keep in mind that you have to be root for the fdisk command to work correctly. So, depending on the distro you use. use either sudo or su to get root privileges.
 
Old 11-08-2011, 10:45 AM   #4
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 44
TobiSGD,

My bad. You are right, I'm used to using df to keep an eye out for space.
 
Old 11-08-2011, 12:54 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
It also can be checked at


cat /proc/partitions


and will also list all your partitions and size.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I check my hard disk for errors. possible hard disk failure lgtrean Linux - Hardware 6 06-22-2011 04:06 PM
How to extend the Ubuntu Linux hard disk size to use full capacity ? albertwt Linux - Newbie 9 12-24-2010 01:22 AM
How to change disk size by editing disk information on the hard disk? xptchina Linux - Virtualization and Cloud 2 12-16-2010 08:12 AM
How to check and use unpartitioned space of Hard disk in linux. nhsarvaiya Linux - Hardware 8 07-14-2008 11:40 PM


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

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