Why is my rsync command failing with a Read-only file system error?

0
1
Asked By CuriousCat42 On

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

Answered By DataDynamo On

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.

Answered By MemoryMaven On

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.

Answered By HelpfulHacker01 On

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.

Answered By TechGuru99 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.