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.
sudo chmod a+rwx /path/to/fvat/usband try again! – George Udosen Dec 12 '18 at 14:34chmod: changing permissions of '/media/john/John': Function not implemented– John Dec 12 '18 at 14:40git config core.fileMode falseversion so it's not globally set – George Udosen Dec 12 '18 at 14:42git configoutside of a git repository is giving me afatal: not in a git repositoryerror – John Dec 12 '18 at 14:49sudo mount -t vfat -o rw,auto,user,fmask=0022,dmask=0000 /dev/whatever /mnt/whatever. Ofcourse you will umount it first then remount itsudo umount /dev/sdb1I presume it's/dev/sdb1!! – George Udosen Dec 12 '18 at 14:55sudo mount -t exfat -o rw,auto,user,fmask=0022,dmask=0000 /dev/whatever /mnt/whatever(note: I needed to changevfatformat toexfat). This mounts the USB but the mounted folder is owned by the root user (rather than the current user) which messes things up and (I think) forces all commands to be run withsudo. Any idea how I can accomplish this so the mounted folder is owned by the current user? Simply running themountcommand withoutsudoproduces amount: only root can do thaterror. Thanks!! – John Dec 12 '18 at 15:19umask=000option to mount command! – George Udosen Dec 12 '18 at 15:25git config --global core.fileMode falseand try again. – Alvin Liang Dec 12 '18 at 15:31git config --global core.fileMode falsestill results in the same error when attempting togit clone. – John Dec 12 '18 at 15:35umask=000to the mount command still results in the root user having ownership permissions of the file. I should also say, for completeness sake, that I've tried to rungit cloneafter each one of these changes and I'm still running into the same error--I'm guessing it's because the USB is mounted with the incorrect permissions. If I inspect the USB's permissions after mounting it normally (i.e. just plugging it in and mounting via the GUI), then it saysowner: me&group: john. When mounting using your suggestion, it saysowner: root&group: root. – John Dec 12 '18 at 15:40git cloneonto anexfatformatted USB drive? – John Dec 12 '18 at 15:42sudo mount -t exfat -o rw,auto,user,fmask=0022,dmask=0000,uid=1000,gid=1000 /dev/sda2 /media/john(where1000is the user id and group id). Unfortunately, this still doesn't fix thegit cloneproblem (I also tried addingumask=000, no luck). It looks like I was wrong and the How do I use 'chmod' on an NTFS (or FAT32) partition? question is unrelated to this one. Thanks for all your help. – John Dec 12 '18 at 16:01