[ale] fun fun changing Linux swap partition to a swap file
Ron Frazier
atllinuxenthinfo at c3energy.com
Thu Jan 20 12:21:47 EST 2011
I think you're right. Now that you mention it, Gparted does say GiB.
Like measuring in miles or kilometers. Personally, I always thought it
was disreputable marketing by HDD makers to use 1000 as their
multiplier / divisor when the computer always thinks in terms of 1024.
Makes the drives look bigger, but that's another rant.
The numbers reported actually were:
Disk utility: 104,857,600,000 bytes, or 105 GB
Gparted: 97.66 GiB, does not report actual number of bytes
So, it looks like your math works out.
What I'm still wondering, though, is whether the file system is using
the full partition, or whether I have to move the fences, as Tim
suggested. It's an ext4 file system, and I resized it with Gparted, as
described in the other post.
Sincerely,
Ron
On Thu, 2011-01-20 at 11:40 -0500, Michael B. Trausch wrote:
> On Thu, 2011-01-20 at 11:34 -0500, Ron Frazier wrote:
> > You may be right. Now I'm confused. Oh horsefeathers! Gparted
> > reports the partition as 97 GB and Disk Utility shows it as 105 GB.
> > ARRGH!
>
> Looks like one of them is using the standard SI unit "GB" and the other
> is using the non-standard (and now deprecated) unit "GiB". Add to it
> some rounding, because I can't get the (exact) same numbers.
>
> By the looks of it, I'd wager that Disk Utility is using GB and gparted
> is using GiB (e.g., you have approximately 105 billion bits in that
> partition).
>
> Here's the output from a small 'bc' session to show what I'm talking
> about:
>
> scale = 4
> 105 * 1000 * 1000 * 1000
> 105000000000
> . / 1024 / 1024 / 1024
> 97.7888
>
> 105 * (1000 ^ 3) is exactly 105 billion bytes. Divide that by (1024 ^
> 3) (to convert from bytes to GiB) and you have 97.7888 GiB, which
> (technically) should be rounded up to 98 GiB.
>
> --- Mike
--
(PS - If you email me and don't get a quick response, you might want to
call on the phone. I get about 300 emails per day from alternate energy
mailing lists and such. I don't always see new messages very quickly.)
Ron Frazier
770-205-9422 (O) Leave a message.
linuxdude AT c3energy.com
More information about the Ale
mailing list