LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-05-2009, 01:02 AM   #16
victvishwa
LQ Newbie
 
Registered: May 2006
Posts: 20

Original Poster
Rep: Reputation: 0

Dear Van,

this is a different one,

[root@linuxbox ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 9.7G 414M 8.8G 5% /
/dev/sda1 99M 12M 83M 13% /boot
none 1014M 0 1014M 0% /dev/shm
/dev/sda3 9.7G 61M 9.1G 1% /opt
/dev/sda2 15G 1.9G 12G 14% /usr
/dev/sda5 9.7G 346M 8.8G 4% /var

Regards
Kasi VPS
 
Old 06-05-2009, 02:18 AM   #17
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
fdisk -l
shows the entire physical hard disk space, regardless of whether a filesystem has been installed. You can calc how much is available as per previous posts.

df -h
show how much space is available in the filesystem layer on top of the physical disk.
The filesystem does not necessarily cover the entire physical disk, although this is unusual except during installation.
 
Old 06-05-2009, 02:26 AM   #18
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
Has anybody mentioned this: fdisk -l and this: df -h before???
 
Old 06-15-2009, 04:15 PM   #19
victvishwa
LQ Newbie
 
Registered: May 2006
Posts: 20

Original Poster
Rep: Reputation: 0
I have posted both the df -h and fdisk -l outputs.

How can we determine the remaining free space on the hard drive using the df -h and fdisk -l ?

I require the output of free space left on hard drive in GB.

Thanks
Kasi VPS
 
Old 06-15-2009, 04:39 PM   #20
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I require the output of free space left on hard drive in GB.
You have already been given the answers to your questions.

Please re-read this thread.
 
Old 06-15-2009, 05:26 PM   #21
victvishwa
LQ Newbie
 
Registered: May 2006
Posts: 20

Original Poster
Rep: Reputation: 0
The reply by Contusion gives the answer, still it says the value in cylinders, which I also read, but I have to manually calculate the numbers and if it is for many systems, How can I found out?

Relpy by Contusion

"Based on your fdisk output of your 147GB hard disk there is still space left.
See the total cylinders of your hard disk is 17844. But your last partition ends on 15695 cylinder. So you still have 17844-15695 cylinders left"
 
  


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
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
how do you check the free space mahmoud Linux - Newbie 2 01-03-2008 10:32 AM
how to do a free space regular check baronlynx Linux - General 1 10-04-2005 07:01 PM
How to check free disk space TigerLinux Linux - Newbie 9 10-04-2005 05:04 PM
How do I check free partition space explorer Linux - General 5 04-14-2004 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:08 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