How to find how much free space left on my hard disk?
When I installed Red Hat Linux on my 19GB hard disk, I left 7868MB free (1432-2434) free.
Now how can I find out this information that I have left 7868MB? this is what I know and I wrote it down on piece of paper but is there any command to find out how much space I have left on my hard disk which is "raw" or "un-allocated" or "unpartitioned" ? Thanks, Data Sheet |
cfdisk
parted gparted (gui for parted) |
In terminal
Code:
fdisk -l |
in terminal ,df -h
|
df -h... dang, beat to it!
If you use KDE, there's also kdiskfree and kdf but I don't know how well those work. I also don't know if I just said the same program twice - I don't use the GUI for these kinds of things. cfdisk is better than all of those though. |
The tools df -h , kdiskfree and kdf all see to assume you only want info for one drive. Also, cfdisk isn't installed by default for Redhat / Fedora.
So, I made a little diddy to calculate unpartitioned space for a drive which you choose. Just put this in a file like drive.pl and make it executable with chmod +x drive.pl Then, you would run it like this example... ./drive.pl /dev/hda Code:
#!/usr/bin/perl -w |
All times are GMT -5. The time now is 04:39 PM. |