Shirt Pocket Discussions  
    Home netTunes launchTunes SuperDuper! Buy Now Support Discussions About Shirt Pocket    

Go Back   Shirt Pocket Discussions > SuperDuper! > General
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-23-2009, 12:49 AM
camner camner is offline
Registered User
 
Join Date: Apr 2004
Posts: 160
Sandbox failing oddly

A short while ago I needed to change the size of my Sandbox, which is a partition on the same drive as my main volume ("Macintosh HD"). To do this, I cloned Macintosh HD to an external drive, and then used Disk Utility to repartition the drive. Obviously, this erased the volumes. I then recloned back to Macintosh HD from the external drive and recreated the Sandbox and booted off the Sandbox.

So far so good. A couple of days later, I rebooted my machine (from the Sandbox) and it was as if it booted with a different user (though it didn't--the user was the same, as I only have 1 user set up). All of the user preferences were no longer being respected. I got a "fresh" desktop, and the icons for Documents and Downloads were question marks.

I then recreated the Sandbox using "shared users and applications" and "smart copy" and all seemed to be well.

A couple of days later, I rebooted again from the Sandbox, and same problem. In the meantime I had rebooted at least a couple of times off of Sandbox without an issue.

Something seems to be failing here...any thoughts about what it might be? Some kind of corruption issue, it seems.
Reply With Quote
  #2  
Old 11-23-2009, 07:51 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
That seems weird. The only thing I can think of is that the 'original drive' was, for some reason, either not present or had a different name...
__________________
--Dave Nanian
Reply With Quote
  #3  
Old 11-23-2009, 03:13 PM
camner camner is offline
Registered User
 
Join Date: Apr 2004
Posts: 160
Quote:
Originally Posted by dnanian View Post
That seems weird. The only thing I can think of is that the 'original drive' was, for some reason, either not present or had a different name...
No renaming as far as I can determine (at least I didn't do anything to rename). What I noticed was that once the Sandbox wouldn't correctly boot (well, that's not quite accurate...it booted, just didn't find the appropriate user settings) rebooting again had no effect. I had to recreate the Sandbox again.

Is there a possibility that something is amiss on the "underlying drive" such that the symlinks created by SD! are getting corrupted? I did run both Disk Warrior and the disk repair facility in Disk Utility. The former showed some little stuff (such as incorrect icons), and Disk Utility showed nothing wrong.
Reply With Quote
  #4  
Old 11-23-2009, 03:18 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Sure, that's possible... but not likely. I really don't know why that would be unless, again, the drive wasn't available for some reason when you logged in. Very strange.
__________________
--Dave Nanian
Reply With Quote
  #5  
Old 11-23-2009, 03:28 PM
camner camner is offline
Registered User
 
Join Date: Apr 2004
Posts: 160
Quote:
Originally Posted by dnanian View Post
Sure, that's possible... but not likely. I really don't know why that would be unless, again, the drive wasn't available for some reason when you logged in. Very strange.
Strange indeed. I'll keep an eye out. Correlation doesn't imply causation, of course, so it may only be coincidence that the problem occurred after I repartitioned my drive (which required a "clone/reclone back").

(I want to state explicitly what I hope is implicit is that I am emphatically NOT suggesting that SuperDuper is in any way responsible for this behavior. I don't have ANY reason to suggest this is the case.)
Reply With Quote
  #6  
Old 11-23-2009, 04:19 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Oh, I understand. I don't think it's SD! either. After all, a Sandbox is just a copy with symlinks, and when you're running from it we're not doing anything at all.

What's unexpected is that something would change that would 'break' the connection between the volumes.
__________________
--Dave Nanian
Reply With Quote
  #7  
Old 11-25-2009, 01:22 AM
camner camner is offline
Registered User
 
Join Date: Apr 2004
Posts: 160
OK, it happened again. Look at the screenshot. When the Sandbox rebooted, the user <robertcamner> on Sandbox was no longer a symlink.

Now, what I've been doing is trying to fix a problem with Time Machine, and I've been deleting the .inprogress file made by TM, but I can't see how that could recreate the user folder.
Attached Images
File Type: jpg screenshot.jpg (98.6 KB, 593 views)
Reply With Quote
  #8  
Old 11-25-2009, 08:34 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Me neither. Something clearly deleted it, though.
__________________
--Dave Nanian
Reply With Quote
  #9  
Old 11-25-2009, 08:29 PM
camner camner is offline
Registered User
 
Join Date: Apr 2004
Posts: 160
OK, I may be onto something. I'm pretty sure I can reproduce the issue I'm having, which is always a good start...

This all began when Time Machine was failing because I repartitioned my hard drive. What I've learned from Googling is that when one repartitions a drive the UUID of the partitions (even if named exactly the same as before) will change, and TM doesn't like that. If I understand correctly, that's because when TM goes to back up a volume with the same name as the volume that has been backed up before to the TM drive, if the UUIDs of those identically named volumes are different, TM fails with this error message: Unable to complete backup. An error occurred while linking files on the backup volume. TM seems to have no problem if the volume name changes...

I've been trying to fix my TM without erasing my Time Machine drive and starting over again. This has led to repeated TM backup failures (my experiments have not been bearing fruit, alas...).

Now, here's where things get interesting as far as SD! is concerned. I've been booted from my Sandbox when doing this. Whenever a TM backup fails with this error message, upon the next reboot, the user directory symlink on the Sandbox has been hosed (see screenshot in my previous post).

I suppose if I want to explore this further I could try to make a "failed" TM backup while booted from my main drive "Macintosh HD" and see what, if anything, happens to the user folder. I'm not sure I'm going to do this, but if I do, I'll be sure to make a complete clone first!

Admittedly this is a low-probability event....
Reply With Quote
  #10  
Old 11-26-2009, 11:56 PM
camner camner is offline
Registered User
 
Join Date: Apr 2004
Posts: 160
Well, it's not quite that simple. This is proving difficult to track down, and it is very frustrating, because rebooting from the Sandbox will periodically fail with the symlink to the main volume user folder broken.

I have a question about how the Sandbox works (or really, it's how Mac OS X works). My Sandbox and main volume are on the same physical drive. I'm trying to figure out when the symlink breaks.

If the symlink breaks while I'm booted off of the Sandbox, would I notice it immediately, or only if I attempted to access my userfolder via the symlink?

Is it possible that the symlink is breaking during the boot process? What happens if doing boot time the Mac tries to follow the symlink and for some reason cannot? Will it automatically create a new user folder?
Reply With Quote
  #11  
Old 11-27-2009, 08:09 AM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Your User Folder is being constantly accessed when you're logged in, so you'd likely notice it right away.

If they're both on the same drive, then the original drive would certainly be available at login time, which kills my theory.

Are you using any programs that you haven't used before? Perhaps one is messing with the symlink?
__________________
--Dave Nanian
Reply With Quote
  #12  
Old 11-27-2009, 08:28 PM
camner camner is offline
Registered User
 
Join Date: Apr 2004
Posts: 160
The only thing I've been for a bit which is unusual (and which clearly involves symlinks) is to use both Time Machine (to delete some items) and software called "Back-in-Time" which allows for individual instance deletions from Time Machine. Back-in-Time also "messes with symlinks" because it has to destroy some symlinks on the TM volume and recreate others. Other than that I don't know how it does its magic.
Reply With Quote
  #13  
Old 11-27-2009, 09:59 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
Well... perhaps you need to try not using either to see if that has any effect?
__________________
--Dave Nanian
Reply With Quote
  #14  
Old 12-01-2009, 10:33 PM
camner camner is offline
Registered User
 
Join Date: Apr 2004
Posts: 160
Yup! That's exactly what I'm doing now.

One clear oddity (or maybe merely "another clear oddity"...)...

I deleted something using Time Machine (booted into the Sandbox)
I looked at the Sandbox and found the user folder symlink and it resolved perfectly
I rebooted into the Sandbox
....no symlink of the user folder! How could it break in the shut down/reboot process when nothing else had happened since I checked it?

A question...how can I tell the difference between a symlink and a normal alias? When I said "symlink was fine" all I REALLY know that a file with an icon with a little arrow on it resolved correctly. Could something have replaced a symlink with a normal alias which doesn't resolve correctly on boot up?

Just casting about here....
Reply With Quote
  #15  
Old 12-01-2009, 10:36 PM
dnanian's Avatar
dnanian dnanian is offline
Administrator
 
Join Date: Apr 2001
Location: Weston, MA
Posts: 14,923
Send a message via AIM to dnanian
No, I don't think anything would do that. (You can check a symlink vs. alias in Terminal with "ls -l"...
__________________
--Dave Nanian
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
inner vs. outer partition; bootable clone partition size; Why not back up Sandbox? LearningUser General 1 06-22-2009 07:01 AM
Sandbox size recs for Leopard jeremy_m General 2 05-18-2009 07:52 AM
Totally confused about Sandbox CaptSaltyJack General 11 08-22-2008 05:59 PM
Updating main volume from Sandbox camner General 1 06-08-2008 08:38 PM
Sandbox not recognized anymore... Al Taylor General 1 05-30-2007 04:31 PM


All times are GMT -4. The time now is 11:17 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.