Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anisimovdk/904539c30873b24b493a68e754babafb to your computer and use it in GitHub Desktop.
Save anisimovdk/904539c30873b24b493a68e754babafb to your computer and use it in GitHub Desktop.
Files or directories moved from OSX to Synology NAS is inaccessible

Files or directories moved from OSX to Synology NAS is inaccessible

If files or directory is inaccessible you need to normalize it from UTF-8 C (OSX) to D (Linux)

  • Enable NFS on NAS
  • Setup NFS permission on NAS for target directory
  • From linux connect to NFS share (CentOS: mount.nfs -w 192.168.1.100:/volume1/datastore/ /mnt/)
  • Install convmv tool (CentOS: yum install convmv)
  • Open mounted directory
  • Run command convmv -r -f utf8 -t utf8 --nfc . (dry-run)
  • If error (max: 255) appeared modify convmv (vi /usr/bin/convmv) variable $maxfilenamelength from 255 to 1024, then run previous command again
  • To perform converting run the command convmv -r -f utf8 -t utf8 --nfc --notest .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment