[SuSE Linux] Newbie Question: df output
When I run df -h -m I get the following: Filesystem MB-blocks Used Available Capacity Mounted on /dev/hda1 874 111 713 13% / /dev/hdc1 7021 1055 5563 16% /usr My question is: hda1 started out as a 1.2 g drive, hdc1 started out as 8.4 g drive. Why are the sizes reported so much lower than the actual drive size? Did I do something wrong in defining them? Is there space that is not being reported? Hope this isn't a tiresome question. I have read info df and looked through a couple of books here, but am not finding an explanation (that I understand at any rate). Thanks for any help. ------------------------------------------------------ davix davix@home.com <A HREF="http://davix.latesky.net/"><A HREF="http://davix.latesky.net/</A">http://davix.latesky.net/</A</A>> ------------------------------------------------------ -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On 21 Mar, Davix wrote:
When I run
df -h -m
I get the following:
Filesystem MB-blocks Used Available Capacity Mounted on /dev/hda1 874 111 713 13% / /dev/hdc1 7021 1055 5563 16% /usr
My question is: hda1 started out as a 1.2 g drive, hdc1 started out as 8.4 g drive. Why are the sizes reported so much lower than the actual drive size? Did I do something wrong in defining them? Is there space that is not being reported?
Hope this isn't a tiresome question. I have read info df and looked through a couple of books here, but am not finding an explanation (that I understand at any rate).
Thanks for any help.
------------------------------------------------------ davix davix@home.com <A HREF="http://davix.latesky.net/"><A HREF="http://davix.latesky.net/</A">http://davix.latesky.net/</A</A>> ------------------------------------------------------
-- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Here is my output using the switches you specified: merwyn ~: df -h -m Filesystem MB-blocks Used Available Capacity Mounted on /dev/hda2 5483 1062 4137 20% / /dev/hdb1 2919 151 2617 5% /home /dev/sda1 988 211 726 23% /jaz Now try using the df command with no switches and see what you get. Mine says: merwyn ~: df Filesystem 1024-blocks Used Available Capacity Mounted on /dev/hda2 5615309 1087741 4236792 20% / /dev/hdb1 2990073 154801 2680647 5% /home /dev/sda1 1011810 215172 744365 22% /jaz The first ones make the switches display things slightly differently. -- Michael Perry mperry@basin.com ---------------------- -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
No David, you didn't do anything wrong. What you need to know is that "1000" in computer talk is actually 1024. If you were to do a simple 'df' you would get the 1024KB listing. When you added the -m parameter you told Linux to divide the 1024KB listings by 1024 to get the MB listings. Do the math, convince yourself! Jerry Davix wrote:
When I run
df -h -m
I get the following:
Filesystem MB-blocks Used Available Capacity Mounted on /dev/hda1 874 111 713 13% / /dev/hdc1 7021 1055 5563 16% /usr
My question is: hda1 started out as a 1.2 g drive, hdc1 started out as 8.4 g drive. Why are the sizes reported so much lower than the actual drive size? Did I do something wrong in defining them? Is there space that is not being reported?
Hope this isn't a tiresome question. I have read info df and looked through a couple of books here, but am not finding an explanation (that I understand at any rate).
Thanks for any help.
-- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (3)
-
davix@home.com
-
jlkreps@navix.net
-
mperry@basin.com