Forum

Full Version: File system becomes read only spontaneously
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Something that has been happening rather frequently lately is that the xbian filesystem will become read only spontaneously. This has been happening every couple weeks and each time I just reinstall, upgrade, and restore from backup. I have not been able to figure out what is causing damage to the file system. It will happen at time when it is running but not in use. I'll simpliy ssh into it and see and error saying the filesystem is read only.

I am using a model b raspberry pi. Could this be a power supply problem? I am using an iphone charger as a power supply which provides 1 amp which should be enough. Could the cable be causing an issue?

I turned off overclocking just in case that was causing the issue but the file system will still become corrupted.

Could it be a bad SD card? Is there a way to check it?

I have a usb hard drive attached but with external power, incase that information helps.

Any help is appreciated.

Thanks
What does dmesg say when your FS turns readonly?
Happened to me, with similar configuration, a 1TB ext4 external disc with own power supply.
I have noticed that sometimes appears a message in XBMC saying that xbian-beta2 partition is being unmounted and mounted again...
(26th May, 2014 09:02 PM)chochis Wrote: [ -> ]Happened to me, with similar configuration, a 1TB ext4 external disc with own power supply.
I have noticed that sometimes appears a message in XBMC saying that xbian-beta2 partition is being unmounted and mounted again...

I'll see that message appear periodically as well.

Right now the system is working correctly. When it inevitably dies again I'll check dmesg to see what it says.
(26th May, 2014 11:04 PM)bullginger Wrote: [ -> ]
(26th May, 2014 09:02 PM)chochis Wrote: [ -> ]Happened to me, with similar configuration, a 1TB ext4 external disc with own power supply.
I have noticed that sometimes appears a message in XBMC saying that xbian-beta2 partition is being unmounted and mounted again...

I'll see that message appear periodically as well.

Right now the system is working correctly. When it inevitably dies again I'll check dmesg to see what it says.

I think I am having this issue now...
I try to change settings but they dont keep on reboot...

Any ideas how to force it back to non-read only?
@all

the remount to RO is only possibility to avoid reflash. BTRFS remounts to RO if data/metadata being processed do not match, metadata tree looks broken etc. this can have many reasons, mostly it is poor AC, too much OC (in rare case also older kernel, like pre 3.12.x). if filesystem would continue W operations with wrong informations, it would become unreadable completely very soon.

if the problem is just OC or spikes in poor AC, then just reboot is enough. if FS is really damaged, then RO will return 30s-1m after boot. in that case reboot to initramfs and "btrfs check" could help (btrfs-tools at minimum 3.14 version - otherwise reformat).
Reference URL's