I recently upgraded from a 3TB media drive to an 8TB media drive, only to find the spin-up time was too slow for Kodi running on FireTV units around the house (too many "file not found" or "can't access share" errors because SMB is so impatient as the drive awakes from sleep). So I decided to use the 8TB drive as a backup drive and use two 4TB 2.5" drives (which spin up in half the time) as the actual server drives. This is where I ran into a weird filename problem.
Namely, let's say I had two partitions XMedia1 and XMedia2 (that are two separate drives with the 4TB drives and were partitions with the 8TB drive) with various shared folders in each. I don't recall having this problem the last time I changed drives, but basically this is what happened here. I ejected the 8TB drive and connected the two 4TB drives (well one 3 and one 4 really, but the extra 1TB doesn't matter here since the media partitions are two 3TB partitions). I've already used CCC to make identical partitions/drives on the new ones). I renamed the drives so the new drives matched the old partitions and the old partitions have new "backup" names added.
I found the "shared folder" list in the Preferences File Sharing Pane to be empty (drive is no longer connected so they're gone). So I added back the identical folders from the new small drives. I found that Kodi could not find the files in the other room. I rebooted the Mac and found that it NOW showed the files as "Movies-1" "iTunes-1" etc. that tells me somewhere on this Mac it's got a list of shared folders and the old ones from the 8TB drives are still on the list (it obviously hides entries when a drive is disconnected in the GUI preference pane) and so when I added duplicate names it added "-1" to it so the names didn't match. The problem is, of course I need the old 8TB files GONE and the new ones to match without any "-1" added or Kodi can't find the files! (and I do not want to re-scan everything in Kodi as that would take FOREVER and be a royal PITA any time I got a new hard drive).
I fixed the problem by re-attaching the 8TB drive and renaming them and then rebooting. The old file share list (that was hidden when it wasn't attached) then showed up for the 8TB drive and I could remove the files from the shared list, eject the drive and then add the shares off the new drives and this time they're correct and have no "-1" added since the list was truly empty then. This solves my problem for now, but I'd like to avoid this issue in the future if I ever have to replace a drive or whatever.
In other words, say a drive failed and I had to replace it. OS X would see the drive as missing and the drive shares would disappear from that shared list in the preference pane, but they're still in a stored file somewhere waiting for that drive to be re-attached (which can never be re-attached since it's dead). So how would I get those names off that shared list at that point? I imagine that there is a file somewhere on this computer that actually holds the list of names and it would need deleted to start over (since OS X HIDES the names if the drive isn't attached or else I wouldn't be getting the "-1" problem to begin with).
So my question is if anyone knows what the name of this file is and where it's located so that if I ever have that problem again, I can either edit or delete the file so OS X is forced to generate a clean file without those names on it so it doesn't think there's duplicate names when I go to add the new drive shares.
Namely, let's say I had two partitions XMedia1 and XMedia2 (that are two separate drives with the 4TB drives and were partitions with the 8TB drive) with various shared folders in each. I don't recall having this problem the last time I changed drives, but basically this is what happened here. I ejected the 8TB drive and connected the two 4TB drives (well one 3 and one 4 really, but the extra 1TB doesn't matter here since the media partitions are two 3TB partitions). I've already used CCC to make identical partitions/drives on the new ones). I renamed the drives so the new drives matched the old partitions and the old partitions have new "backup" names added.
I found the "shared folder" list in the Preferences File Sharing Pane to be empty (drive is no longer connected so they're gone). So I added back the identical folders from the new small drives. I found that Kodi could not find the files in the other room. I rebooted the Mac and found that it NOW showed the files as "Movies-1" "iTunes-1" etc. that tells me somewhere on this Mac it's got a list of shared folders and the old ones from the 8TB drives are still on the list (it obviously hides entries when a drive is disconnected in the GUI preference pane) and so when I added duplicate names it added "-1" to it so the names didn't match. The problem is, of course I need the old 8TB files GONE and the new ones to match without any "-1" added or Kodi can't find the files! (and I do not want to re-scan everything in Kodi as that would take FOREVER and be a royal PITA any time I got a new hard drive).
I fixed the problem by re-attaching the 8TB drive and renaming them and then rebooting. The old file share list (that was hidden when it wasn't attached) then showed up for the 8TB drive and I could remove the files from the shared list, eject the drive and then add the shares off the new drives and this time they're correct and have no "-1" added since the list was truly empty then. This solves my problem for now, but I'd like to avoid this issue in the future if I ever have to replace a drive or whatever.
In other words, say a drive failed and I had to replace it. OS X would see the drive as missing and the drive shares would disappear from that shared list in the preference pane, but they're still in a stored file somewhere waiting for that drive to be re-attached (which can never be re-attached since it's dead). So how would I get those names off that shared list at that point? I imagine that there is a file somewhere on this computer that actually holds the list of names and it would need deleted to start over (since OS X HIDES the names if the drive isn't attached or else I wouldn't be getting the "-1" problem to begin with).
So my question is if anyone knows what the name of this file is and where it's located so that if I ever have that problem again, I can either edit or delete the file so OS X is forced to generate a clean file without those names on it so it doesn't think there's duplicate names when I go to add the new drive shares.