LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-29-2011, 10:07 AM   #1
rperlberg
LQ Newbie
 
Registered: May 2006
Posts: 18

Rep: Reputation: 0
smbclient - computing free space


How can I use smbclient to determine the amount of free space on a share? When I do a "dir" in smbclient, it displays something like:

52492 blocks of size 8388608. 2407 blocks available

How do I translate that into bytes?
 
Old 12-29-2011, 10:15 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by rperlberg View Post
How can I use smbclient to determine the amount of free space on a share?
really, that's not exactly advanced mathematics, is it?

Quote:
Originally Posted by rperlberg View Post
When I do a "dir" in smbclient, it displays something like:

52492 blocks of size 8388608. 2407 blocks available

How do I translate that into bytes?
By multiplying. It says that one block is 8388608 bytes (which is 8MB), and there are 52492 of them altogether (slightly more than 400GB), and 2407 free (short of 20GB).

[X] Doc CPU
 
1 members found this post helpful.
Old 12-29-2011, 10:23 AM   #3
rperlberg
LQ Newbie
 
Registered: May 2006
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you. The wording of the message is such that I did not realize that 8388608 is the block size. Thanks for the clarification.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration