Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
For a while, I've been using Unison to keep my desktop and laptop in sync, and it works very well for me.
But now, I'd like to move some of my files from my ext home partition to an ntfs partition on my desktop (and leave them unchanged on my laptop).
Any ideas on the best way to do this?
I'm concerned that there won't be a sane way of keeping the permissions properly recorded on moving to ntfs, and hence, unison will see everything as changed files - not to mention seeing the symlink I'd like to put on the ext partition (to the ntfs directory) as a separate file. I don't want to change unison's handling of any other symlinks.
(Extra details that may or may not be relevant: the files in question are all in one folder, all audio files of one format or another. I want to move them to an ntfs partition with Windows XP on - because I have some old audio hardware that only works on Win XP. As a bonus, is there any way to 'mount' a directory as read-only on windows, but leave it rw on linux? I know that's a windows question really.)
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hi Mantra,
I am absolutely unfamiliar with Unison, so my comments won't touch on that.
I would check out the appropriate syntax of the rsync command to do what you want (move files to the ntfs partition, preserving / translating permissions ... ), if just copying and deleting is problematic for you (that would be my first try ...).
In Windows, to "mount" read-only, just specify the "read-only" restriction in the Properties dialog box for the parent directory you are going to keep your files in.
If this is unclear or if I've misunderstood something, please feel free to ask again.
Hi, thanks for the replies (and sorry I didn't reply at the time, and for the late post, but thought it might be useful to put my solution here for others) - in the end I just decided the simplest solution by far was to split my unison "repository" into two, one on each filesystem. It means I have to run unison twice, with different profile files each time, but that seemed much quicker than trying to figure out the correct way to do it in one command. I've made use of unison in other circumstances, and with hindsight actually the optimum solution is probably to move the data over to the ntfs filesystem, and then do a bind mount back to its original location - I've done this with ext filesystems on different partitions and it works really well, since the bind mount is transparent to unison. Permissions aren't actually much of a problem for unison even if they change, as it still sees the file data as the same so it only wants to propagate the permissions changes across, which can be overridden.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.