LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-20-2019, 12:39 PM   #1
Mantra
Member
 
Registered: Jun 2018
Posts: 57

Rep: Reputation: Disabled
Unison with NTFS


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.)
 
Old 07-26-2019, 10:49 AM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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.

Cheers,

Rick
 
Old 07-26-2019, 04:32 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,704

Rep: Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897Reputation: 5897
NTFS is not compatible with symlinks and unison will not copy it over. Look at the documentation below, Permissions are covered too.

https://www.cis.upenn.edu/~bcpierce/....html#symlinks

As far as I know rsync would have the same problems as Unison.

With samba it is possible to have a share as read only.

Last edited by michaelk; 07-26-2019 at 04:34 PM.
 
2 members found this post helpful.
Old 06-03-2021, 04:14 PM   #4
Mantra
Member
 
Registered: Jun 2018
Posts: 57

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply

Tags
ext, ntfs, unison



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question about unison nephish Linux - Software 1 11-18-2005 07:54 PM
all 3 lights on my NIC are blinking in unison mpyusko Linux - Networking 2 05-07-2005 01:03 PM
Need FC2 x86_64 binary RPM of unison BobBuchanan Linux - Software 0 02-15-2005 08:00 PM
Question about Unison paths overbored Linux - Software 1 10-28-2004 08:30 PM
any tools other than unison? pudhiyavan Linux - General 2 01-29-2004 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration