(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



Snow Leopard is not lying to you


2009/08/31



There's been some confusion about changes in Snow Leopard relating to how it reports disk sizes. Some bloggers have completely misunderstood this and think that something has changed with regard to file sizes and the output of programs like "df". That's simply not the case.

When I upgraded to Snow Leopard, my free disk space jumped impressively, going from 52% used to just 37% - a savings of 11,514,359,808 bytes. Most of that is probably due to dropping Universal Binaries - no point to those as Snow Leopard only works on Intel Macs (Rosetta, which lets you *run* Power PC binaries, is still an optional install). None of it has anything to do with Apple's "Base 10 change".

To prove that, let's look at a 1MB file. I happen to have one handy, and Finder will tell you that it is a 1MB file and if you look at it in Terminal, you'll see that, yes, it is really what we've always called a 1MB file: 1,048,576 bytes. Of course it was 1,048,576 bytes both before and after upgrading to Snow Leopard.

If a disk manufacturer created a 1MB disk drive, it wouldn't be that big. It would be 1,000,000 bytes. That's the change we're talking about here. But before we get to that, let's look at "df".

$ df
Filesystem    512-blocks      Used Available Capacity  Mounted on
/dev/disk0s2   155629664  67930040  87187624    44%    /
$ cp my-one-mb-file newfile
$ df
Filesystem    512-blocks      Used Available Capacity  Mounted on
/dev/disk0s2   155629664  67932088  87185576    44%    /
$ expr 87187624 - 87185576
2048
 

And, of course, 2048 * 512 is exactly 1,048,576 bytes, proving (if you really needed proof!) that neither Leopard nor df is lying about anything.

Finder DOES use base-10 and this could get confusing for larger files. For example, take this .iso image:

-rw-r--r--   1 apl  apl  280926208 Aug 20  2008 osr505.iso
 

Snow Leopard Finder says that's a 280MB file. That's the "base 10" change; under previous versions that would have been shown as 267 MB. But that changes nothing about how big the file actually is or how it affects "df".

The disk space gained in Snow Leopard is NOT from this.


;


Click here to add your comments





Tue Sep 1 12:48:01 2009: Subject:   BruceGarlock
http://garlockfamily.com
gravatar
I think another chunk of that space comes from not installing every possible printer driver for every possible printer. Snow Leopard "looks" at the printers around you (probably using bonjour networking) and installs only the drivers for the printers that it sees.

Funny thing is that 2 of my All-in-One HP's had to be re-installed, as the printers were no longer an option after I upgraded.

Oh, and although I use Safari, or the webkit nightlies now, I am posting this in FF 3.5.2, without issue, and with a ton of plug-ins. I know Tony was having FF issues. I did have one crash, but FF started right back up.

Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar


cartoon
Looking for Mac OS X Help?
OS X PDF e-books
Inexpensive, instant download


numly esn 53055-090831-447685-23
numly barcode

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!



 I sell and support
 Kerio Mail server




pavatar.jpg
More:
       - MacOSX
       - Disks/Filesystems


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress