You are not logged in.
I can't write to my memory sticks anymore. I looked at /media and the permissions for the memory sticks are 700. If I connect a USB drive, its permissions are 777 and I can write to it. I haven't been able to find anything that says how to fix this. Any suggestions?
Offline
You are pretty sparse with the info there. Like what do you use to mount your media? I kind of remember udisks mounting in /media, while udisks2 mounts in /run/something/something/etc. What desktop environment are you using? Or are you mounting manually?
You may want to read https://wiki.archlinux.org/index.php/Fo … troduction specifically the second bullet point, but the whole page might do you good if you are going to be using these forums.
Offline
"can't write to my memory sticks anymore" ? you used to be able to ? what changed ? As WonderWoofy said, we need more information.
You could always try chown or chmod, but that's probably overkill until you tell us more ...
Oh, and where have you looked ("I haven't been able to find anything that says how to fix this") ?
Offline
Mount the pendrive / memory card and run 'findmnt'. Post the output.
Offline
I'm using KDE but I can't copy anything to there from the command line either. I have no idea when something changed. It's been a while since I used a memory stick.
findmnt returns this for the memory stick:
/media/8C46-4AF9 /dev/sdc1 vfat rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask
/media's permissions are 755. The permissions for /media/8C46-4AF9 are 700 and I am the owner.
cp says the filesystem is read only. /etc/mtab says it is mounted read only.
I belong to the storage group.
I have the udisks package installed.
Offline
Well, there's your problem, it is mounted as read-only. Now you have to figure out why it is mounted read only. Once again, you have not supplied enough info to properly diagnose the problem.
Offline
@djperkins - As others here stated, we'll need more details in order to help you.
To be a bit more specific, consider adding:
- Your udev rules
- Do you use any udisk auto-mount daemons etc.?
- Can you write to flash disks as root?
- What filesystem are you using for your flash disks / do you have the appropriate packages for such filesystem installed?
- Check for .pacnew files on your system, maybe some related package needs reconfiguration.
- When was the last time you mounted usb stick without problems and what changes/updates have you made since?
- Are you a member of the appropriate groups?
- Attach any relevant logs.
Offline
I'm having the exact same problem right now, and I find it strange because it started happening recently, too. I can't pinpoint it, though. dmesg reports that the stick is write-protected... but it's not - it's not locked and works perfectly on other devices - my camera or a Raspberry Pi, for instance.
[ 1147.496696] usb 2-6: new high-speed USB device number 5 using ehci_hcd
[ 1147.636742] scsi4 : usb-storage 2-6:1.0
[ 1148.641012] scsi 4:0:0:0: Direct-Access RICOH R5U880FlashMedia 0000 PQ: 0 ANSI: 2
[ 1148.861269] sd 4:0:0:0: [sdb] 15556608 512-byte logical blocks: (7.96 GB/7.41 GiB)
[ 1148.862018] sd 4:0:0:0: [sdb] Write Protect is on
[ 1148.862026] sd 4:0:0:0: [sdb] Mode Sense: 0b 00 80 08
[ 1148.862739] sd 4:0:0:0: [sdb] No Caching mode page present
[ 1148.862746] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1148.865961] sd 4:0:0:0: [sdb] No Caching mode page present
[ 1148.865969] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1148.867963] sdb: sdb1 sdb2
[ 1148.871588] sd 4:0:0:0: [sdb] No Caching mode page present
[ 1148.871597] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1148.871604] sd 4:0:0:0: [sdb] Attached SCSI removable diskI use mountie and udisks, but this does not happen with my USB pendrives. I've tested with two different memory sticks. Mounting as root does not allow me to write, too, as dmesg recognizes the sticks as write-protected.
What other logs should one post to try and debug this one here? Thanks in advance!
Offline
Not trying to dig this one out of the grave, just thought I'd lay this here for future reference... and giggles.
Turns out I had a problem with my laptop's card reader: dust had accumulated inside, which somehow made the cards inserted write-protected. I'm not kidding if I tell you that I solved the problem by blowing into the card reader pretty hard. Reinserted and voilá!, write-protection off.
Offline