Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8481337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:32:12+00:00 2026-06-10T19:32:12+00:00

I am using Carbon Copy Cloner to clone my hard drive in preparation for

  • 0

I am using Carbon Copy Cloner to clone my hard drive in preparation for a Mountain Lion fresh install. The process seems to be stuck on copying bands from the robottinosino.sparsebundle image.

To check that “something” is moving, I am resorting to this very crude CLI script:

rsync -n -avv --delete /Users/robottinosino/robottinosino.sparsebundle/ /Volumes/AppleSSD_Clone_2012-09-03/Users/robottinosino/robottinosino.sparsebundle/ | grep -v ' is uptodate$' | grep bands | wc -l

I simulate an rsync but don’t run it (-n option), I filter out the lines which confirm bands are the same, select only lines describing bands which still need to be copied and count the number of bands still pending.

Now I’d like to know how fast the process is making progress, say “how many bands per second” as it has been a couple of days now… and I don’t want to stop it if it can finish before the week-end. If it can’t finish before the week-end, I had better stop it now as I’ll have to abort anyway.

Say I define the hack above as function x() { … } and use this abomination to count the “bands/second”:

start_seconds=$(date +%s); bands_at_start=$(x); sleep 6; bands_at_end=$(x); end_seconds=$(date +%s); total_seconds=$((end_seconds-start_seconds)); total_bands=$((bands_at_start-bands_at_end)); bands_per_second=$((total_bands/total_seconds)); echo $bands_per_second

which gives rubbish results.

Is the problem the fact that I am doing integer division? Can I do float/double division in Bash? Is there a more normal way of doing this using shell scripting?

I am beginner, don’t put me down. Thanks in advance for your help.

EDIT: I am trying this to circumvent the integer division:

bands_per_second=$(echo "scale=10; $total_bands/$total_seconds" | bc);

but there must be a better way to do this timing in Bash/shell scripting or with some other scripting tools? You know, with so many (thousands, if the count above is correct) bands remaining, I really can’t estimate whether it’s worth continuing…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:32:14+00:00Added an answer on June 10, 2026 at 7:32 pm

    That sparsebundle is your FileVault encrypted home directory. If you happen to be logged in as that user while you try this, things might go wrong. If this is what you’re doing, you might try something along these lines:

    1) Create a new user with admin access but no encryption. Log out, log in as the new user, and try again.

    2) Undo the filevault encryption. Possibly not a good idea, since you would then be backing up the unencrypted versions of the files.

    3) Boot from an OS X install disk / USB drive rather than the hard disk before running your backup, so that the hard disk isn’t in use at all.

    Note that Mountain Lion supports full disk encryption, which requires turning off your home directory encryption first. Might want to turn that on when you get the install done.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How easy/hard is it to make a carbon copy of a Magento site? My
How can I format an USB flash drive using cocoa frameworks or carbon? Is
I'm using Eclipse Carbon now and I have some installed Plugins. How to move
I'm writing a C++ plugin in Mac OS X using the Carbon framework (yeah,
How can I clip the mouse movement into a window Region using Carbon?
Is there any library that allows to create a Carbon application using C++ classes?
I just read this article on how to create global hotkeys using Carbon events.
C-h is correctly interpreted has 'help' in Carbon Emacs.app and using /usr/bin/emacs in Terminal.app.
I'm using some Carbon code in my Cocoa project for handling global key events
Using InstallApplicationEventHandler and RegisterEventHotKey from Carbon framework, I'm able to catch whatever key I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.