LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > 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
  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: 45
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: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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: 45
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



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
How to check and use unpartitioned space of Hard disk in linux. nhsarvaiya Linux - Hardware 11 03-13-2024 06:39 AM
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

LinuxQuestions.org > Forums > LinuxQuestions.org > LinuxQuestions.org Member Intro

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration