Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Stop Finder from rounding file sizes on Samba shares Network
If you have a Linux or BSD machine running Samba you may notice that its exported shares round up all files under a megabyte (i.e. 720kB becomes 1MB) by Finder.

To fix this problem add the following line to the server's smb.conf:

allocation roundup size = 0

Restart the Samba daemon, reconnect to the share, and files under one megabyte should now be calculated correctly in Finder.

[crarko adds: I haven't tested this one. I would assume (but don't know) that this change may also be needed to the Samba server on a Mac.

On most systems this file is located at /etc/samba/smb.conf or /usr/local/samba/lib/smb.conf. In Snow Leopard the location is /etc/smb.conf. You may want to save off a backup copy of the file prior to editing it. To save it you need an editor that can authenticate as root, such as TextWrangler or BBedit or you can use a command line editor invoked with sudo.]
    •    
  • Currently 3.80 / 5
  You rated: 1 / 5 (5 votes cast)
 
[4,621 views]  

Stop Finder from rounding file sizes on Samba shares | 6 comments | Create New Account
Click here to return to the 'Stop Finder from rounding file sizes on Samba shares ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Mail forward ends in revealing the hidden part of system
Authored by: HAB on Feb 10, '11 08:34:07AM

Just discovered one feature/bug? in Mail 4.4, Mac OS X 10.6.6.

Let us say I receive an e-mail with several attachments, at least one of them is a .zip file. Then I want to Forward this message with some of those attachments but not with all. I accidentally double-clicked the zip file which I wanted to delete from the message being forwarded and now Mac opens this zip attachment as if it would be normally downloaded. The Finder window which shows this attachment is in this moment deep in the system cache/temp structure and I can browse through the whole, normally hidden portion of the system.

I do not believe, it is a type of behavior which is desired. Since I have not found any "Mac bug reporting" and I am not sure this is standard, I try this forum which looks open to this kind of reports.



[ Reply to This | # ]
Mail forward ends in revealing the hidden part of system
Authored by: leamanc on Feb 11, '11 07:21:15AM

You might try posting in the actual forums...links to the forums off to the right.

Also, here is the place you submit bug to Apple.



[ Reply to This | # ]
Stop Finder from rounding file sizes on Samba shares
Authored by: Kalak on Feb 10, '11 02:43:44PM
This is also a client issue, as it does not occur on 10.4 based clients, no matter what the setting is on the server. 10.6 does have the issue, and it is solved by putting the line in the server config file "smb.conf" in the global section:
[global]
allocation roundup size = 0
---
--
Kalak
I am, and always will be, an Idiot.


[ Reply to This | # ]
Stop Finder from rounding file sizes on Samba shares
Authored by: bedouin on Feb 10, '11 04:23:42PM

Just to clarify, this change should be made on the server (i.e. the Linux machine). No need to muck around with OS X's smb.conf.



[ Reply to This | # ]
Stop Finder from rounding file sizes on Samba shares
Authored by: leamanc on Feb 11, '11 07:23:09AM

Kalak above disagrees. I also wonder why it would need to be made on the server, because it's OS X's Finder that is doing the file size calculation.



[ Reply to This | # ]
Stop Finder from rounding file sizes on Samba shares
Authored by: scphysics on Feb 11, '11 07:24:22AM

I'm guessing there's a loss of speed when listing directory contents when you have "roundup" disabled. Does anyone have an idea how much?



[ Reply to This | # ]