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 :
Here are some informations :
sudo fsck /
(Nothing more)
tune2fs -l /dev/mmcblk0p2 | grep "[0-9]\{1,2\}:[0-9]\{1,2\}:[0-9]\{1,2\}"
Can you help me fix this ?
Thanks !!
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
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 !!