1

Running Ubuntu 14.04 (Trusty), I have mounted an exFAT formatted USB drive. While attempting to git clone a repo onto it, I've run into the following error:

Cloning into 'rschedule'...
error: chmod on /media/john/John/apps/rschedule/.git/config.lock 
failed: Function not implemented
fatal: could not set 'core.filemode' to 'false'

Cloning the repo onto my computer's local file system works normally. I can also otherwise access the USB drive normally (i.e. read / create files).

Any ideas as to what may be going wrong?

Additional information which is hopefully irrelevant: Ubuntu is running on a Chromebook using crouton.

Edit:

A possibly related question: How do I use 'chmod' on an NTFS (or FAT32) partition?. Unfortunately, assuming it is related, I haven't been able to figure out how to translate that question / answers to my problem.

John
  • 133

1 Answers1

0

Assembling from the comments above:

Mounting with

sudo mount -t exfat -o rw,auto,user,fmask=0022,dmask=0000,uid=1000,gid=1000 /dev/sda1 mnt

where mnt is in my home directory thus owned by me and then doing

git -c core.fileMode=false clone ../whatever-bare-repo.git/

seems to work correctly

qwazix
  • 416