<p dir="ltr">Take a look at this thread. Many mount examples.<br>
<a href="http://superuser.com/questions/79813/read-and-write-permission-for-fat32-partition-in-ubuntu">http://superuser.com/questions/79813/read-and-write-permission-for-fat32-partition-in-ubuntu</a></p>
<div class="gmail_quote">On Mar 17, 2015 10:16 AM, "E.S. Rosenberg" <<a href="mailto:esr%2Blinux-il@g.jct.ac.il">esr+linux-il@g.jct.ac.il</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Last time I checked vfat doesn't do linux permissions well, instead<br>
you need to mount it with user permissions (though I have to say I<br>
haven't dealt with vfat in years).<br>
<br>
If you can't change the contents of the flash drive it could also be a<br>
pointer to the memory failing...<br>
<br>
HTH,<br>
Eliyahu - אליהו<br>
<br>
2015-03-17 9:08 GMT+02:00 Shlomo Solomon <<a href="mailto:shlomo.solomon@gmail.com">shlomo.solomon@gmail.com</a>>:<br>
> Can anyone suggest why I can't seem to change permissions of files on a<br>
> disk-on-key mounted on my PI?<br>
> The chmod command reports success, but nothing has changed.<br>
> BTW - all commands over SSH<br>
><br>
> Here's the Raspbian version:<br>
> pi@raspberrypi /media/D80C-5ACC/pictures $ uname -a<br>
> Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT<br>
> 2015 armv7l GNU/Linux<br>
><br>
> Here's the relevant line from /etc/fstab on the PI:<br>
> /dev/sda1 /media/D80C-5ACC vfat defaults,noatime 0 1<br>
><br>
><br>
> pi@raspberrypi /media/D80C-5ACC/pictures $ ls -la<br>
> total 52484<br>
> drwxr-xr-x 2 root root 4096 Mar 10 19:51 .<br>
> drwxr-xr-x 7 root root 4096 Jan 1 1970 ..<br>
> -rwxr-xr-x 1 root root 3387111 Mar 3 08:32 a.jpg<br>
> -rwxr-xr-x 1 root root 3470696 Mar 3 08:31 b.jpg<br>
> -rwxr-xr-x 1 root root 2924927 Mar 3 08:30 c.jpg<br>
><br>
> << snip snip >><br>
><br>
> pi@raspberrypi /media/D80C-5ACC/pictures $ sudo chmod -v -R 777 *<br>
> mode of `a.jpg' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx)<br>
> mode of `b.jpg' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx)<br>
> mode of `c.jpg' changed from 0755 (rwxr-xr-x) to 0777 (rwxrwxrwx)<br>
><br>
> << snip snip >><br>
><br>
> pi@raspberrypi /media/D80C-5ACC/pictures $ ls -la<br>
> total 52484<br>
> drwxr-xr-x 2 root root 4096 Mar 10 19:51 .<br>
> drwxr-xr-x 7 root root 4096 Jan 1 1970 ..<br>
> -rwxr-xr-x 1 root root 3387111 Mar 3 08:32 a.jpg<br>
> -rwxr-xr-x 1 root root 3470696 Mar 3 08:31 b.jpg<br>
> -rwxr-xr-x 1 root root 2924927 Mar 3 08:30 c.jpg<br>
><br>
><br>
><br>
> --<br>
> Shlomo Solomon<br>
> <a href="http://the-solomons.net" target="_blank">http://the-solomons.net</a><br>
> Sent by Claws Mail 3.11.1 - KDE 4.12.15 - LINUX Mageia 4<br>
><br>
><br>
> _______________________________________________<br>
> Linux-il mailing list<br>
> <a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
> <a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div>