February 14, 201115 yr I made a rookie mistake and wrote directly to the cache drive... my data still seems to be there if I access via the disk shares, but my user share now only shows the data that (was previously) on my cache drive. Is there a way to restore my user share?
February 14, 201115 yr Author A little more info - my original share was "TV Shows" and I created "tv shows" on the cache drive. If I use a disk share I can see both folders (which I didn't think would be possible since they are spelled exactly the same, just using different case) and opening either seems to present the same contents for that disk. Interestingly, there is a config section for each on the shares page, and if I set either of them to "don't export" it applies to both. Changing it back, also changes the setting for both, but only the version I created via the cache drive is accessible (as a user share) showing only the files I put on the cache drive. This behaviour isn't even consistent with what happens when I use a disk share (per previous comments where I see the same content in both "TV Shows" and "tv shows"). I've since changed the (empty) cache drive to a data drive... Any ideas?
February 14, 201115 yr A little more info - my original share was "TV Shows" and I created "tv shows" on the cache drive. If I use a disk share I can see both folders (which I didn't think would be possible since they are spelled exactly the same, just using different case) and opening either seems to present the same contents for that disk. Interestingly, there is a config section for each on the shares page, and if I set either of them to "don't export" it applies to both. Changing it back, also changes the setting for both, but only the version I created via the cache drive is accessible (as a user share) showing only the files I put on the cache drive. This behavior isn't even consistent with what happens when I use a disk share (per previous comments where I see the same content in both "TV Shows" and "tv shows"). I've since changed the (empty) cache drive to a data drive... Any ideas? It is easy enough to rename the directory on the cache drive to match the capitalization used for the "user-share" you intended. Note the special "backslash" (\) before the spaces in the file names to "escape" the space to it is considered part of the directory name. On the command line type: mv /mnt/cache/tv\ shows /mnt/cache/TV\ Shows (In Linux you rename directories by moving them to their new name with the "mv" command.) On the flash drive, in the config/shares folder you'll find a file for each share. You can see the file names by typing: ls -l /boot/config/shares You'll probably see a file named /boot/config/shares/TV Shows.cfg and /boot/config/shares/tv shows.cfg You can remove the one you do not wish by typing: rm /boot/config/shares/tv\ shows.cfg or rm /boot/config/shares/TV\ Shows.cfg Make sure you use escape the spaces in the directory names and use the capitalization as it actually exists. You may have created directories on the disk drives with the wrong capitalization. You'll need to remove those directories and move any files in them to correctly named directories. To see what directories exist type: ls -ld /mnt/disk*/TV\ Shows ls -ld /mnt/disk*/tv\ shows You can move the files from the one directory to the other with another "mv" command, one disk at a time. mv /mnt/disk1/tv\ shows/* /mnt/disk1/TV\ Shows/ mv /mnt/disk2/tv\ shows/* /mnt/disk2/TV\ Shows/ etc... Then you;ll need to remove the empty directories on the disks with the wrong name rmdir /mnt/disk1/tv\ shows rmdir /mnt/disk2/tv\ shows etc... After you move the files, rename and delete the directories, stop the array, and reboot. Joe L.
Archived
This topic is now archived and is closed to further replies.