Finding UUID Records in Carbon Copy Cloner

Joined
Dec 10, 2020
Messages
4
Reaction score
0
Points
1
I just had to restore a CCC backup to my system drive. Unfortunately I had to delete the original APFS volume before doing this. Now, CCC is treating the system drive as a completely new source because the UUID is different.

Is there any way at all I can at least figure out what UUID the old drive had? It just has to be somewhere in the record CCC has of the task...
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
Welcome to our forums.

Because you removed your original APFS volume, the UUID of the new volume does not match. Therefore CCC would treat it as a new one. For more info on what the UUID is, the best place to find out is the CCC knowledge base:

 
OP
J
Joined
Dec 10, 2020
Messages
4
Reaction score
0
Points
1
For anyone looking, I did figure this out. I'm sure no one is concerned about spoilers, just keeping it tidy, lol.

CCC keeps an SQLite database here: /Library/Application Support/com.bombich.ccc/MetaData.db It contains the real guts of the CCC tasks.

In the database, there is a table named VOLUME, which stores information about source volumes, including CCC's unique id as well as the UUID.

In my case, I have 3 entries in the table - 1, 2, & 3 in the "ID" column. As you'd expect, entry 1 was for the system drive in its first incarnation. 3 was the entry for the "new" system drive.

All I had to do was swap the UUIDs for 1 and 3.

  1. Disable the CCC task for the system drive.
  2. Boot to an external drive.
  3. Make a document for taking notes. Let's call it "notes."
  4. Make a backup of the /Library/Application Support/com.bombich.ccc directory. Don't do anything if you haven't done this. I'd keep it in the same directory & call it "com.bombich.ccc-bak."
  5. Take note of the ownership of the com.bombich.ccc directory & its files (probably root:admin); write it down in "notes."
  6. Change ownership of the database & the directory it's in: sudo chown -R {your username}:staff /Library/Application\ Support/com.bombich.ccc
  7. Open the database: /Library/Application Support/com.bombich.ccc/MetaData.db
  8. Open the Volumes table.
  9. Check each record's UUID against the UUIDs for your drives. You should be able to figure out which one was for the original system drive - if it's the only entry without a drive that corresponds to the UUID that's a good clue. If you're only using CCC to clone one drive, it'll probably be the one under ID 1, also. The "new" system drive should be the most recent entry, but check it against that drive's known UUID.
  10. Make a note of what the two UUIDs are; write them down in "notes."
  11. Double check that you have a backup of the com.bombich.ccc directory.
  12. Swap the UUID records for the two entries - the "old" system drive gets the UUID for the "new" system drive, and the "new" one gets the UUID of the "old" one.
  13. Save and close MetaData.db.
  14. Change the ownership back. If the original ownership was root:admin, then: sudo chown -R root:admin /Library/Application\ Support/com.bombich.ccc
  15. Reboot back into your system drive.
  16. Open CCC, re-enable the task, and start running it. You should be able to tell if it's now treating the "new" drive as if it were the "old" drive.

Hope this helps someone some day.
 
OP
J
Joined
Dec 10, 2020
Messages
4
Reaction score
0
Points
1
Thanks chscag, glad to be here! Against the odds, there actually is a way to do this - a great relief.

Welcome to our forums.

Because you removed your original APFS volume, the UUID of the new volume does not match. Therefore CCC would treat it as a new one. For more info on what the UUID is, the best place to find out is the CCC knowledge base:

 
Joined
Jul 13, 2018
Messages
133
Reaction score
31
Points
28
Location
Ottawa
Your Mac's Specs
MacPro 5.1 3.1 2.1 iMacs,Minis,Lampshade,G4,G3 desktops ColorClassic (PPC),etc
Very clever! Some good sleuthing there.
Isn't there an easier way though? As I'm sure you know, when I change a volume name or if the backup is say on a different drive (eg I might have moved it). CCC says "this volume is missing" and then allows me to choose a different source or destination. Doesn't this solve the same problem or have I missed something? What implications are there?
 
OP
J
Joined
Dec 10, 2020
Messages
4
Reaction score
0
Points
1
Very clever! Some good sleuthing there.
Isn't there an easier way though? As I'm sure you know, when I change a volume name or if the backup is say on a different drive (eg I might have moved it). CCC says "this volume is missing" and then allows me to choose a different source or destination. Doesn't this solve the same problem or have I missed something? What implications are there?

It did say "this volume is missing," and I chose the "new" one as the source - doing that resulted in CCC backing up the entire drive as if it were new, though. Or if not, a very significant portion of the data. I also back up the sparse image offsite, and just really didn't want to have to deal with uploading the whole thing again. I'm also can't stand to see a problem lack a solution, haha.

You probably know this, but for others - CCC does allow you to turn off "strict volume identification" - matching by just the name and not both the name and UUID - for the destination, but not the source.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top