Why can’t I copy symbolic links

cpsymlinkveracrypt

I'm trying to copy one directory to an ext4 filesystem on a Veracrypt encrypted USB stick. The command I used was:

cp -aL /source /destination

I've also tried:

cp -ad /source /destination

… but I get back:

cp: cannot create symbolic link ‘/xyz/pdq’: Operation not permitted

I looked at the problem links and they don't link outside the copied directory tree. Why is this happening?

Best Answer

Just for you I played with Veracrypt(never heard the name before :D).

Have you formatted the drive as FAT? Then thats your problem. When Veracrypt asks you, format it as NTFS instead of FAT and then try again.

FAT32 unfortunately does not support owner, permissions or symlinks. That is why you are getting an Operation not permitted error. Note that this error is not “permission denied”: “operation not permitted” often means “operation not supported”, i.e. nobody can do this.

Related Question