Hey everyone! I'm trying to use rsync to copy files from my home directory to a microSD card (inserted into a T-FCard reader connected via USB). However, I keep getting this error: "rsync: [receiver] mkstemp "/media/jazei/MSDB/Vim/.plugins.txt.uul3Lm" failed: Read-only file system (30)." Even when I use dirdiff, it shows the same error. I've tried changing permissions with chmod 777 and also using sudo, but nothing seems to work. What should I check? Here's a screenshot for reference: https://imgbox.com/9olj7ivT. Thanks in advance!
4 Answers
Also, if you haven’t already, try checking the filesystem for errors. First, unmount the device with `sudo umount /media/jazei/MSDB` and then run `sudo fsck -y /dev/sdX`, replacing `X` with your actual device identifier. Make sure to find your device using `lsblk` before running that! If the issue keeps happening on different systems, your SD might be on its last legs.
I've had similar issues and what worked for me was reinstalling rsync itself. Sometimes a fresh install can fix weird bugs that crop up. If that doesn’t help, you might want to check if the SD card is locked physically. Though it sounds like you’re using it without an adapter, sometimes the readers can still have issues.
Another thing to try is remounting your device as read-write. Use the command `sudo mount -o remount,rw /media/jazei/MSDB`. After that, double-check the `dmesg` logs for any I/O errors that might indicate corruption.
It sounds like your microSD card might be mounted as read-only. You can check this by running the command `mount` in your terminal. If you see (ro) next to your device, it’s definitely in read-only mode. These sorts of issues can happen if the card is getting old or has been heavily written to, as it might have bad sectors. If that's the case, you may need to consider replacing it.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures