rsync error: Read-only file system (30)
Hi all,
I regularly rsync directories to an external usb drive. Recently I've started getting errors which look: blah blah:Read-only file system (30) The external usb drive has two partitions (ext3 and fat32) and I rsync to the ext3 one. The rsync command is rsync -ahi --delete /home/mike/some_dir /media/usb_drive Searching online, people have reported this error with faulty usb cables but everything was working fine until recently so it seem unlikely a usb cable would suddenly wear off. Any suggestions? TIA, Mike. |
Anything of interest in /var/log/messages ?
Or the output of dmesg? Cheers, Tink |
Thanks Tinkster.
Here's the (presumably) relevant output from /var/log/messages: Code:
Jan 6 10:40:59 pc1 kernel: [ 316.476021] usb 2-2: new high speed USB device using ehci_hcd and address 4 Code:
Jan 6 10:41:05 pc1 kernel: [ 322.525518] EXT3-fs warning: mounting fs with errors, running e2fsck is recommended Thanks, Mike. |
The messages to me suggest either
a) a faulty piece of hardware or b) a low-level driver at fault or c) a USB disconnect caused by the HDD itself ... I had similar issues w/ my external Seagate 1TB device until I added Code:
SUBSYSTEMS=="scsi",DRIVERS=="sd",ATTRS{vendor}=="Seagate*",ATTRS{model}=="Desktop*",RUN+="/bin/sh -c echo 1 > /sys/class/scsi_disk/%k/allow_restart'" Did the problems start occurring after an update/upgrade of sorts, or is just out of the blue? If your HDD doesn't have the time-out issue, and if there was no update, a) is most definitely the case, and I'd be looking at getting a replacement cable and/ or device sooner rather than later. Cheers, Tink |
Thanks Tinkster.
The problems suddenly started about a month or so ago. The drive is about a year old so it seems unlikely to would wear out so quickly. I'm also not sure what can go wrong with the USB cable since there's nothing there which could break/melt etc. . I install applications regularly with apt-get and it does upgrade existing packages during the process so it may have upgraded rsync or something related which is now causing these issues. Others have reported the same problem, all when using rsync: http://linux.derkeiler.com/Mailing-L...5-09/1469.html http://raywoodcockslatest.blogspot.c...only-file.html is there some udev/hal/whatever feature which umounts usb drives after a while?. Thanks. |
I have had my external USB drive occasionally (maybe three or four times in two years) decide that it was read-only.
Unmounting it, disconnecting it, then reconnecting it has always resolved the problem. I think Tinkster may be on to something as this applies to my experience. It is entirely possible that my USB cable might have gotten jostled or otherwise disturbed, given the physical geography of my laptop area. |
Thanks Frank.
The problem I've got occurs on daily basis. If the drive isn't being accessed for a while it seems dismount or its permissions change to RO. The drive's usb cable suffers much less jolt than the keyboard and mouse usb cables and the latter two are functioning fine so I'm inclined to think this is not a hardware issue (at least not a cable one). |
All times are GMT -5. The time now is 11:48 PM. |