Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.mac.misc > #7449 > unrolled thread
| Started by | Robert Peirce <bob@peirce-family.com> |
|---|---|
| First post | 2019-12-16 15:17 -0500 |
| Last post | 2019-12-22 12:37 +1300 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.sys.mac.misc
Time Machine question -- changing source disk names Robert Peirce <bob@peirce-family.com> - 2019-12-16 15:17 -0500
Re: Time Machine question -- changing source disk names dempson@actrix.gen.nz (David Empson) - 2019-12-17 10:04 +1300
Re: Time Machine question -- changing source disk names Robert Peirce <bob@peirce-family.com> - 2019-12-21 08:54 -0500
Re: Time Machine question -- changing source disk names dempson@actrix.gen.nz (David Empson) - 2019-12-22 12:37 +1300
| From | Robert Peirce <bob@peirce-family.com> |
|---|---|
| Date | 2019-12-16 15:17 -0500 |
| Subject | Time Machine question -- changing source disk names |
| Message-ID | <qt8opd$1mqs$1@gioia.aioe.org> |
I tried googling this but couldn't find anything. I had photos and iTunes on an external disk called Pictures which I backed up to Time Machine. The drive was getting pretty full so I decided to split out iTunes. I called the new drive Music. Time Machine worked fine with this setup. Later I discovered, because of an app that looks for paths in files associated with the tune rather than the tune itself, I needed to use the name Pictures for iTunes so I renamed Pictures to Photographs and Music to Pictures, using sudo in /volumes. This was an alternative to changing the path in thousands of files! Time Machine didn't like this. It produced an error. Since Finder still showed the old disk names I figured the problem must be that Time Machine was looking for a specific Mac-named drive and couldn't find it so I changed the names in Mac OS to match the names in /volumes and started a Time Machine backup. This worked. Now for the question. Previously I had Time Machine backups for Mac HD, Music and Pictures. The latest backup shows Mac HD, Photographs [former Pictures] and Pictures [former Music]. If I select a photo in Photographs and "enter" Time Machine, it is somehow able to find that photo from as far back as I was saving the Pictures drive. How can it do that if it is keying to the Mac name for the drive?
[toc] | [next] | [standalone]
| From | dempson@actrix.gen.nz (David Empson) |
|---|---|
| Date | 2019-12-17 10:04 +1300 |
| Message-ID | <1oiq2nw.1oir3b4sd9fluN%dempson@actrix.gen.nz> |
| In reply to | #7449 |
Robert Peirce <bob@peirce-family.com> wrote: > I tried googling this but couldn't find anything. > > I had photos and iTunes on an external disk called Pictures which I > backed up to Time Machine. The drive was getting pretty full so I > decided to split out iTunes. I called the new drive Music. Time > Machine worked fine with this setup. > > Later I discovered, because of an app that looks for paths in files > associated with the tune rather than the tune itself, I needed to use > the name Pictures for iTunes so I renamed Pictures to Photographs and > Music to Pictures, using sudo in /volumes. This was an alternative to > changing the path in thousands of files! There is your error. Using sudo that way does NOT rename the volume. It renames the temporary folder currently being used as a mount point, but it won't stick. The next time the volume is mounted, the system will default to creating a mount point with the same name as the volume, unless there is already a mount point with the same name, in which case the system creates a mount point with the volume name, a space and a sequence number, e.g. with two volumes called Pictures mounted you would have "/Volumes/Pictures/" and "/Volumes/Pictures 1/". Renaming the mount point like that will also confuse most of the OS and applications, because anything looking for volumes by ID numbers won't be able to find the previous content of the volume because the system is still looking for the previous mount point name. You should have renamed the volumes using Finder, unmounted both of them (to ensure the mount points were deleted and there was no conflicting name) then remounted both of them. Because of the way mount points get named, you need to be aware of this if you have any software which uses pathnames to access files and have two drives with the same name which might get mounted either one at a time, sometimes both at once, and sometimes in a different order. The path won't be consistent unless the drives are always mounted in the same order when you use that software. The easiest solution is to ensure your volumes have distinct names. Well-written Mac applications don't use pathnames so don't care about volume names or mount points. They use aliases or similar mechanisms ot locate files, which rely on file IDs, directory IDs and/or volume IDs as the primary way to locate the file, in some cases with the path as a fallback option. > Time Machine didn't like this. It produced an error. Since Finder > still showed the old disk names I figured the problem must be that Time > Machine was looking for a specific Mac-named drive and couldn't find it > so I changed the names in Mac OS to match the names in /volumes and > started a Time Machine backup. This worked. Now for the question. Renaming them in Finder and NOT unmounting them probably left them using the mount point names you forced via sudo (the system may have tried to rename the mount points and found that they already matched). > Previously I had Time Machine backups for Mac HD, Music and Pictures. > The latest backup shows Mac HD, Photographs [former Pictures] and > Pictures [former Music]. If I select a photo in Photographs and "enter" > Time Machine, it is somehow able to find that photo from as far back as > I was saving the Pictures drive. How can it do that if it is keying to > the Mac name for the drive? Time Machine backups are not tied to drive names. It shows you the drive names (at that point in history), but the backups are actually tracked using a unique identifier for each volume, which is preserved over renaming the volume (and can be used to distinguish identically named volumes). If you erase one of your source drives, the newly erased drive will have a new unique identifier so will not have continuity with backups of the former content of that drive. A similar rule applies to the computer name. If you rename your computer (in System Preferences > Sharing), Time Machine can work out that it is the same computer and will rename its backup folder the next time you do a backup. -- David Empson dempson@actrix.gen.nz
[toc] | [prev] | [next] | [standalone]
| From | Robert Peirce <bob@peirce-family.com> |
|---|---|
| Date | 2019-12-21 08:54 -0500 |
| Message-ID | <qtl86e$80k$1@dont-email.me> |
| In reply to | #7454 |
On 12/16/19 4:04 PM, David Empson wrote: > Robert Peirce <bob@peirce-family.com> wrote: >> Previously I had Time Machine backups for Mac HD, Music and Pictures. >> The latest backup shows Mac HD, Photographs [former Pictures] and >> Pictures [former Music]. If I select a photo in Photographs and "enter" >> Time Machine, it is somehow able to find that photo from as far back as >> I was saving the Pictures drive. How can it do that if it is keying to >> the Mac name for the drive? > > Time Machine backups are not tied to drive names. It shows you the drive > names (at that point in history), but the backups are actually tracked > using a unique identifier for each volume, which is preserved over > renaming the volume (and can be used to distinguish identically named > volumes). > > If you erase one of your source drives, the newly erased drive will have > a new unique identifier so will not have continuity with backups of the > former content of that drive. Got it. Thanks. I will be careful never to erase one of my source drives. That raises a new question. What happens if the drive fails and I have to replace it?
[toc] | [prev] | [next] | [standalone]
| From | dempson@actrix.gen.nz (David Empson) |
|---|---|
| Date | 2019-12-22 12:37 +1300 |
| Message-ID | <1oizjk5.1jttjrp7rpdwgN%dempson@actrix.gen.nz> |
| In reply to | #7466 |
Robert Peirce <bob@peirce-family.com> wrote: > On 12/16/19 4:04 PM, David Empson wrote: > > Robert Peirce <bob@peirce-family.com> wrote: > >> Previously I had Time Machine backups for Mac HD, Music and Pictures. > >> The latest backup shows Mac HD, Photographs [former Pictures] and > >> Pictures [former Music]. If I select a photo in Photographs and "enter" > >> Time Machine, it is somehow able to find that photo from as far back as > >> I was saving the Pictures drive. How can it do that if it is keying to > >> the Mac name for the drive? > > > > Time Machine backups are not tied to drive names. It shows you the drive > > names (at that point in history), but the backups are actually tracked > > using a unique identifier for each volume, which is preserved over > > renaming the volume (and can be used to distinguish identically named > > volumes). > > > > If you erase one of your source drives, the newly erased drive will have > > a new unique identifier so will not have continuity with backups of the > > former content of that drive. > > Got it. Thanks. I will be careful never to erase one of my source > drives. That raises a new question. What happens if the drive fails > and I have to replace it? I don't recall ever having to deal with that situation (I've only done complete system restores for the startup drive, not for a secondary drive). At a minimum you would need to restore the replacement drive from the backup. The question then is whether TM regards the restored drive as a replacement of the original, or just a copy it and still expects to back up the (missing) original. There is a "tmutil associatedisk" verb that might be helpful in forcing the issue. Aha. The man page for tmutil under that verb describes a similar "restore disk" situation. That looks like the correct solution. -- David Empson dempson@actrix.gen.nz
[toc] | [prev] | [standalone]
Back to top | Article view | comp.sys.mac.misc
csiph-web