How to change permissions on a usb stick? [duplicate]
I have two usb sticks,both are recognized automatically but when I try to write or copy files to either it comes up with error saying I do not have permission to copy to this destination folder.I have changed the permissions in properties but it will not let me to change the permissions for the actual usb stick. What can I do?
EDIT: USB stick info from comments:
Solaris Disk /dev/sdb: 2065 MB, 2065694720 64 heads, 8 sectors/track, 7880 cylinders, total 4034560 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xc3072e18 Device Boot Start End Blocks Id System /dev/sdb1 * 32 4034559 2017264 6
Solution 1:
sudo fdisk -l
will tell you what's mounted. Then run:
sudo chmod 666 /dev/sdY
where sdY is the device assignment for your USB drive.That will allow you to read and write.
Solution 2:
Depends on how you have formated the USB drive.. often they are fat32, and if so, not that many things to setup.
if you format at extX then you and simply use chmod
and chown
to set permission and owner
edit: I see that from a comment above it looks like it has fat16 format. so it does not support file permissions.
see here for a way to mount it using different permissions