Forum
[PROBLEM] FS goes Read Only - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Installation (/forum-16.html)
+--- Thread: [PROBLEM] FS goes Read Only (/thread-3030.html)



FS goes Read Only - Tahngarth - 11th Jun, 2015 06:06 AM

Hi,

I've a RPi2 with Xbian running on it.
Everything was fine until a few days ago.

The file systems on the SD card are turning Read Only after runing a few (random) time.

When I reboot the RPi2, everything is fine.
I've a USB Harddisk plugged on the RPi2 and no read only problem on it.

dmesg output :

Code:
[   36.593979] BTRFS: decompress failed!
[   36.594443] BTRFS: decompress failed!
[   37.376260] Adding 250876k swap on /dev/mmcblk0p3.  Priority:0 extents:1 across:250876k SSFS
[   38.817850] nf_conntrack version 0.5.0 (11811 buckets, 47244 max)
[   73.718568] init_special_inode: bogus i_mode (0) for inode mmcblk0p2:2946
[11591.678615] init_special_inode: bogus i_mode (244) for inode mmcblk0p2:2889
[11766.949810] ------------[ cut here ]------------
[11766.949870] WARNING: CPU: 0 PID: 335 at fs/btrfs/extent-tree.c:1547 lookup_inline_extent_backref+0x648/0x654()
[11766.949883] Modules linked in: nf_conntrack_ipv4 nf_defrag_ipv4 xt_tcpudp xt_conntrack nf_conntrack ip6table_filter ip6_tables iptable_filter ip_tables x_tables fuse snd_soc_pcm512x_i2c snd_soc_tas5713 snd_soc_pcm512x snd_soc_wm8804 regmap_i2c leds_gpio led_class snd_soc_bcm2708_i2s regmap_mmio i2c_bcm2708 i2c_core snd_soc_core spi_bcm2708 snd_compress snd_pcm_dmaengine frandom snd_bcm2835 snd_pcm snd_timer snd soundcore vchiq ipv6
[11766.950037] CPU: 0 PID: 335 Comm: btrfs-transacti Not tainted 3.18.8+ #1
[11766.950079] [<80014334>] (unwind_backtrace) from [<800112fc>] (show_stack+0x10/0x14)
[11766.950110] [<800112fc>] (show_stack) from [<804d9568>] (dump_stack+0x80/0xcc)
[11766.950139] [<804d9568>] (dump_stack) from [<80028180>] (warn_slowpath_common+0x64/0x88)
[11766.950164] [<80028180>] (warn_slowpath_common) from [<800281c0>] (warn_slowpath_null+0x1c/0x24)
[11766.950189] [<800281c0>] (warn_slowpath_null) from [<801e92f0>] (lookup_inline_extent_backref+0x648/0x654)
[11766.950215] [<801e92f0>] (lookup_inline_extent_backref) from [<801ea0c0>] (insert_inline_extent_backref+0x50/0xdc)
[11766.950238] [<801ea0c0>] (insert_inline_extent_backref) from [<801ea210>] (__btrfs_inc_extent_ref+0xc4/0x3b0)
[11766.950264] [<801ea210>] (__btrfs_inc_extent_ref) from [<801f27fc>] (__btrfs_run_delayed_refs+0x9c8/0x104c)
[11766.950342] [<801f27fc>] (__btrfs_run_delayed_refs) from [<801f5138>] (btrfs_run_delayed_refs+0x54/0x24c)
[11766.950369] [<801f5138>] (btrfs_run_delayed_refs) from [<802050e0>] (btrfs_commit_transaction+0x2c/0xab4)
[11766.950394] [<802050e0>] (btrfs_commit_transaction) from [<80203500>] (transaction_kthread+0x164/0x180)
[11766.950417] [<80203500>] (transaction_kthread) from [<8003f400>] (kthread+0xcc/0xe8)
[11766.950441] [<8003f400>] (kthread) from [<8000e5f8>] (ret_from_fork+0x14/0x3c)
[11766.950453] ---[ end trace 1c9978c8e0f7ca3a ]---
[11766.950478] ------------[ cut here ]------------
[11766.950499] WARNING: CPU: 0 PID: 335 at fs/btrfs/super.c:260 __btrfs_abort_transaction+0x8c/0x108()
[11766.950509] BTRFS: Transaction aborted (error -5)
[11766.950517] Modules linked in: nf_conntrack_ipv4 nf_defrag_ipv4 xt_tcpudp xt_conntrack nf_conntrack ip6table_filter ip6_tables iptable_filter ip_tables x_tables fuse snd_soc_pcm512x_i2c snd_soc_tas5713 snd_soc_pcm512x snd_soc_wm8804 regmap_i2c leds_gpio led_class snd_soc_bcm2708_i2s regmap_mmio i2c_bcm2708 i2c_core snd_soc_core spi_bcm2708 snd_compress snd_pcm_dmaengine frandom snd_bcm2835 snd_pcm snd_timer snd soundcore vchiq ipv6
[11766.950649] CPU: 0 PID: 335 Comm: btrfs-transacti Tainted: G        W      3.18.8+ #1
[11766.950675] [<80014334>] (unwind_backtrace) from [<800112fc>] (show_stack+0x10/0x14)
[11766.950699] [<800112fc>] (show_stack) from [<804d9568>] (dump_stack+0x80/0xcc)
[11766.950723] [<804d9568>] (dump_stack) from [<80028180>] (warn_slowpath_common+0x64/0x88)
[11766.950747] [<80028180>] (warn_slowpath_common) from [<80028238>] (warn_slowpath_fmt+0x30/0x40)
[11766.950770] [<80028238>] (warn_slowpath_fmt) from [<801d95b4>] (__btrfs_abort_transaction+0x8c/0x108)
[11766.950796] [<801d95b4>] (__btrfs_abort_transaction) from [<801f52fc>] (btrfs_run_delayed_refs+0x218/0x24c)
[11766.950821] [<801f52fc>] (btrfs_run_delayed_refs) from [<802050e0>] (btrfs_commit_transaction+0x2c/0xab4)
[11766.950844] [<802050e0>] (btrfs_commit_transaction) from [<80203500>] (transaction_kthread+0x164/0x180)
[11766.950865] [<80203500>] (transaction_kthread) from [<8003f400>] (kthread+0xcc/0xe8)
[11766.950885] [<8003f400>] (kthread) from [<8000e5f8>] (ret_from_fork+0x14/0x3c)
[11766.950896] ---[ end trace 1c9978c8e0f7ca3b ]---
[11766.950912] BTRFS: error (device mmcblk0p2) in btrfs_run_delayed_refs:2792: errno=-5 IO failure
[11766.950927] BTRFS info (device mmcblk0p2): forced readonly


Here are some informations :

sudo fsck /

Code:
fsck from util-linux 2.20.1
(Nothing more)

tune2fs -l /dev/mmcblk0p2 | grep "[0-9]\{1,2\}:[0-9]\{1,2\}:[0-9]\{1,2\}"
Code:
tune2fs: Bad magic number in super-block while trying to open /dev/mmcblk0p2
Couldn't find valid filesystem superblock.

Code:
df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          7.1G  2.3G  4.7G  33% /
udev            256K  4.0K  252K   2% /dev
tmpfs            74M  176K   74M   1% /run
/dev/mmcblk0p2  7.1G  2.3G  4.7G  33% /
/dev/mmcblk0p2  7.1G  2.3G  4.7G  33% /home
/dev/mmcblk0p2  7.1G  2.3G  4.7G  33% /lib/modules
/dev/mmcblk0p1   34M   22M   13M  63% /boot
/dev/sda1       932G  759G  174G  82% /media/PiHD
/dev/mmcblk0p2  7.1G  2.3G  4.7G  33% /xbmc-backup


Can you help me fix this ?

Thanks !! Smile


RE: FS goes Read Only - Tahngarth - 12th Jun, 2015 07:22 PM

It seems that if I don't use the "Download subtites" feature, I don't have the issue.
Yesterday, I've used my Kodi from 6pm to 11pm without using this feature and the problem didn't show up ...

Thanks for your future help !


RE: FS goes Read Only - f1vefour - 14th Jun, 2015 02:07 AM

So when subtitles are auto downloaded your getting a kernel panic, that makes no sense.

What is the output of 'uname - a'? What is your power supply rating?


RE: FS goes Read Only - Tahngarth - 15th Jun, 2015 03:56 AM

Subtitles are downloaded manually !
When I do it, the FS goes Read only but I can continue watching movies. (but making an addon update isn't possible for example).

I don't really now if there's a link between the "Download Subtitles" features and the FS going read-only ... I just figured out that It happend the last two times I tried to use this feature.
I'm watching a TV show right now with the subs "in the file" so I don't need to download them and, for three days , the problem didn't show up !

uname -a :
Code:
Linux xbian 3.18.8+ #1 SMP PREEMPT Thu Mar 5 03:13:36 CET 2015 armv7l GNU/Linux
I used a 5v 0.75A power supply (used it for months with no poblems) and change it with a new one with the same specs.

Thanks for your help !

(sorry for my english Wink )


RE: FS goes Read Only - menakite - 15th Jun, 2015 04:41 AM

I'd suggest you retry with a 5V/2 Amp power supply, like this one: http://swag.raspberrypi.org/products/raspberry-pi-universal-power-supply


RE: FS goes Read Only - Tahngarth - 15th Jun, 2015 07:06 AM

Okay I'll do it but everything was working fine before (for months) ... So I just don't think it's only a power supply problem.


RE: FS goes Read Only - CurlyMo - 15th Jun, 2015 07:17 AM

It's almost always a power supply problem when you're using only 0.75 amps. The previous months where luck.


RE: FS goes Read Only - Tahngarth - 16th Jun, 2015 08:12 AM

Hi all !
Thanks for your replies.

I've followed your advice !
I'm now using a 5V 2A power supply !
(I had a little coloured square on the screen and it's gone with the new power supply ! )


But unfortunately, the problem remain the same ...

I've used my Xbian all day long with 0 issues !
Tonight, I started to watch a new tvshow, I've launched it and download subtites.
Everything was okay !
I tried to create a file in /var ... It was okay !

When I launched the second episode, tried to download the subtitle and I got a script error !
Tried to create a file in /var and it didn't worked ... Unable to save because of read only system ...

I've made some more tests and it's always the same, first subtitle download is working fine, second sub download got a script error and system is in RO mode...

Thanks for your help !


RE: FS goes Read Only - CurlyMo - 16th Jun, 2015 08:33 AM

Can you post the content of the kodi log?

Also use code tags in all your posts instead of quote. code != quote.


RE: FS goes Read Only - Tahngarth - 16th Jun, 2015 08:57 AM

Sorry for using the quote tag.

You'll find the file as attachment.


Thanks !


RE: FS goes Read Only - CurlyMo - 16th Jun, 2015 05:42 PM

So can you update your posts?


RE: FS goes Read Only - Tahngarth - 16th Jun, 2015 06:19 PM

Sorry...
It's done now.


RE: FS goes Read Only - Tahngarth - 17th Jun, 2015 01:02 AM

You can close the issue !
I've made a fresh install, everything is fine now !

thanks !


RE: FS goes Read Only - f1vefour - 19th Jun, 2015 08:45 AM

You can edit the title and change it to Solved, glad it is working for you now.