Updater selhal: Failed to provide the approval report: Read-only file system [3.7.1]

Any idea how to repair it? As I understand I cannot work with FS until its mounted.
So far I have tried this command btrfs check /deb/mmcblk0p1with no success, mounted aborting…

I’d try these https://btrfs.wiki.kernel.org/index.php/Btrfsck but I’m not sure how to work on Turris without the mounted FS :-/

@vcunat (cau Vlado). The problem is, that the FS is mounted, so the btrfs check will not run. Maybe the last-resort restart option “5 LEDs or more: Boot to rescue shell”? If the main FS can be accessed via the rescue shell, it could be done…

@Weafyr: For me, the reflash from USB worked well (https://www.turris.cz/doc/en/howto/omnia_factory_reset). I lost my LXC containers, but the rest seems to be working fine (backup the /etc from the broken FS and then put back after reflash).

The question is, as I ask in my thread (Error opening journal: Read-only file system), is this a memory problem? Is is worn out? Is it good idea to run LXC with simple web accessed mainly by bots and just a few humans there? Should be the LXC webserver moved out to SSD (how)? These are questions that bothers me now. I have a router with possibility to run LXC container with simple webserver (yay!), but I’m afraid to do it, to not wear the built-in memory…

Ahoj! I am aware you’d have to unmount the FS, and I don’t know how to do that on Omnia. Rescue shell sounds like it’s kept off the main FS and could do it; I hope it at least contains btrfsck, etc.

Memory wear: I guess the safest options for experiments is to do them on a USB stick. They’re easy to replace and very cheap, and people tend to have some extra ones anyway.

Zdravím!
Thats exactly reason why I mentioned my thread in your, I am also interested/worried, if this can be fail of memory itself.
Good point I will try “5 Leds” this evening.
So far I have tried btrfs scrub start/status, but even that seems to fail, as its ended immediately after start with no message given.

So, create LXC container, mount USB stick with the content in it? What about the webserver engine? Is is just about the data or would it be possible to move whole container on USB, to run the whole webserver there? What would you suggest to achieve the least wearing impact to the built-in memory?

Just keep in mind, that the 5-leds (edit: I thougth Weafyr talks about 4-leds) means complete loss of everything… it’s a fresh start. Try to backup everything possible. I’m not a linux guru, so I have no idea what can be restored and what cannot. But the config of firewall, wifi, leds configuration and so on works after restoring /etc folder. Maybe it’s even possible to restore LXC containers, but I didn;t tried that.

5-leds is only start into rescue shell, it will not delete anything until I broke something by myself.

sorry, my fault. I ment 4-leds, now I get what you want to do. Let me know the results

So far (I am limited by remote access) I have been able to install mmc-utils into tmp and get info about MMC, I don’t see anything wrong here

root@Turris:/tmp/sbin# ./mmc extcsd read /dev/mmcblk0
=============================================
  Extended CSD rev 1.8 (MMC 5.1)
=============================================
Card Supported Command sets [S_CMD_SET: 0x01]
HPI Features [HPI_FEATURE: 0x01]: implementation based on CMD13
Background operations support [BKOPS_SUPPORT: 0x01]
Max Packet Read Cmd [MAX_PACKED_READS: 0x3f]
Max Packet Write Cmd [MAX_PACKED_WRITES: 0x3f]
Data TAG support [DATA_TAG_SUPPORT: 0x01]
Data TAG Unit Size [TAG_UNIT_SIZE: 0x00]
Tag Resources Size [TAG_RES_SIZE: 0x00]
Context Management Capabilities [CONTEXT_CAPABILITIES: 0x78]
Large Unit Size [LARGE_UNIT_SIZE_M1: 0x01]
Extended partition attribute support [EXT_SUPPORT: 0x03]
Generic CMD6 Timer [GENERIC_CMD6_TIME: 0x05]
Power off notification [POWER_OFF_LONG_TIME: 0x64]
Cache Size [CACHE_SIZE] is 1024 KiB
Background operations status [BKOPS_STATUS: 0x00]
1st Initialisation Time after programmed sector [INI_TIMEOUT_AP: 0x0a]
Power class for 52MHz, DDR at 3.6V [PWR_CL_DDR_52_360: 0x00]
Power class for 52MHz, DDR at 1.95V [PWR_CL_DDR_52_195: 0x00]
Power class for 200MHz at 3.6V [PWR_CL_200_360: 0x00]
Power class for 200MHz, at 1.95V [PWR_CL_200_195: 0x00]
Minimum Performance for 8bit at 52MHz in DDR mode:
 [MIN_PERF_DDR_W_8_52: 0x00]
 [MIN_PERF_DDR_R_8_52: 0x00]
TRIM Multiplier [TRIM_MULT: 0x01]
Secure Feature support [SEC_FEATURE_SUPPORT: 0x55]
Boot Information [BOOT_INFO: 0x07]
 Device supports alternative boot method
 Device supports dual data rate during boot
 Device supports high speed timing during boot
Boot partition size [BOOT_SIZE_MULTI: 0x20]
Access size [ACC_SIZE: 0x06]
High-capacity erase unit size [HC_ERASE_GRP_SIZE: 0x01]
 i.e. 512 KiB
High-capacity erase timeout [ERASE_TIMEOUT_MULT: 0x02]
Reliable write sector count [REL_WR_SEC_C: 0x01]
High-capacity W protect group size [HC_WP_GRP_SIZE: 0x08]
 i.e. 4096 KiB
Sleep current (VCC) [S_C_VCC: 0x07]
Sleep current (VCCQ) [S_C_VCCQ: 0x07]
Sleep/awake timeout [S_A_TIMEOUT: 0x11]
Sector Count [SEC_COUNT: 0x00e90000]
 Device is block-addressed
Minimum Write Performance for 8bit:
 [MIN_PERF_W_8_52: 0x00]
 [MIN_PERF_R_8_52: 0x00]
 [MIN_PERF_W_8_26_4_52: 0x00]
 [MIN_PERF_R_8_26_4_52: 0x00]
Minimum Write Performance for 4bit:
 [MIN_PERF_W_4_26: 0x00]
 [MIN_PERF_R_4_26: 0x00]
Power classes registers:
 [PWR_CL_26_360: 0x00]
 [PWR_CL_52_360: 0x00]
 [PWR_CL_26_195: 0x00]
 [PWR_CL_52_195: 0x00]
Partition switching timing [PARTITION_SWITCH_TIME: 0x01]
Out-of-interrupt busy timing [OUT_OF_INTERRUPT_TIME: 0x05]
I/O Driver Strength [DRIVER_STRENGTH: 0x1f]
Card Type [CARD_TYPE: 0x57]
 HS200 Single Data Rate eMMC @200MHz 1.8VI/O
 HS Dual Data Rate eMMC @52MHz 1.8V or 3VI/O
 HS eMMC @52MHz - at rated device voltage(s)
 HS eMMC @26MHz - at rated device voltage(s)
CSD structure version [CSD_STRUCTURE: 0x02]
Command set [CMD_SET: 0x00]
Command set revision [CMD_SET_REV: 0x00]
Power class [POWER_CLASS: 0x00]
High-speed interface timing [HS_TIMING: 0x01]
Erased memory content [ERASED_MEM_CONT: 0x00]
Boot configuration bytes [PARTITION_CONFIG: 0x00]
 Not boot enable
 No access to boot partition
Boot config protection [BOOT_CONFIG_PROT: 0x00]
Boot bus Conditions [BOOT_BUS_CONDITIONS: 0x00]
High-density erase group definition [ERASE_GROUP_DEF: 0x00]
Boot write protection status registers [BOOT_WP_STATUS]: 0x00
Boot Area Write protection [BOOT_WP]: 0x00
 Power ro locking: possible
 Permanent ro locking: possible
 ro lock status: not locked
User area write protection register [USER_WP]: 0x00
FW configuration [FW_CONFIG]: 0x00
RPMB Size [RPMB_SIZE_MULT]: 0x20
Write reliability setting register [WR_REL_SET]: 0x1f
 user area: the device protects existing data if a power failure occurs during a write operation
 partition 1: the device protects existing data if a power failure occurs during a write operation
 partition 2: the device protects existing data if a power failure occurs during a write operation
 partition 3: the device protects existing data if a power failure occurs during a write operation
 partition 4: the device protects existing data if a power failure occurs during a write operation
Write reliability parameter register [WR_REL_PARAM]: 0x15
 Device supports writing EXT_CSD_WR_REL_SET
 Device supports the enhanced def. of reliable write
Enable background operations handshake [BKOPS_EN]: 0x00
H/W reset function [RST_N_FUNCTION]: 0x00
HPI management [HPI_MGMT]: 0x01
Partitioning Support [PARTITIONING_SUPPORT]: 0x07
 Device support partitioning feature
 Device can have enhanced tech.
Max Enhanced Area Size [MAX_ENH_SIZE_MULT]: 0x0003a4
 i.e. 3817472 KiB
Partitions attribute [PARTITIONS_ATTRIBUTE]: 0x00
Partitioning Setting [PARTITION_SETTING_COMPLETED]: 0x00
 Device partition setting NOT complete
General Purpose Partition Size
 [GP_SIZE_MULT_4]: 0x000000
 [GP_SIZE_MULT_3]: 0x000000
 [GP_SIZE_MULT_2]: 0x000000
 [GP_SIZE_MULT_1]: 0x000000
Enhanced User Data Area Size [ENH_SIZE_MULT]: 0x000000
 i.e. 0 KiB
Enhanced User Data Start Address [ENH_START_ADDR]: 0x000000
 i.e. 0 bytes offset
Bad Block Management mode [SEC_BAD_BLK_MGMNT]: 0x00
Periodic Wake-up [PERIODIC_WAKEUP]: 0x00
Program CID/CSD in DDR mode support [PROGRAM_CID_CSD_DDR_SUPPORT]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[127]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[126]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[125]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[124]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[123]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[122]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[121]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[120]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[119]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[118]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[117]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[116]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[115]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[114]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[113]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[112]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[111]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[110]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[109]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[108]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[107]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[106]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[105]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[104]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[103]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[102]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[101]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[100]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[99]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[98]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[97]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[96]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[95]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[94]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[93]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[92]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[91]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[90]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[89]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[88]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[87]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[86]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[85]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[84]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[83]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[82]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[81]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[80]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[79]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[78]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[77]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[76]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[75]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[74]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[73]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[72]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[71]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[70]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[69]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[68]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[67]]: 0x00
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[66]]: 0x37
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[65]]: 0xff
Vendor Specific Fields [VENDOR_SPECIFIC_FIELD[64]]: 0xff
Native sector size [NATIVE_SECTOR_SIZE]: 0x01
Sector size emulation [USE_NATIVE_SECTOR]: 0x00
Sector size [DATA_SECTOR_SIZE]: 0x00
1st initialization after disabling sector size emulation [INI_TIMEOUT_EMU]: 0x0a
Class 6 commands control [CLASS_6_CTRL]: 0x00
Number of addressed group to be Released[DYNCAP_NEEDED]: 0x00
Exception events control [EXCEPTION_EVENTS_CTRL]: 0x0000
Exception events status[EXCEPTION_EVENTS_STATUS]: 0x0000
Extended Partitions Attribute [EXT_PARTITIONS_ATTRIBUTE]: 0x0000
Context configuration [CONTEXT_CONF[51]]: 0x00
Context configuration [CONTEXT_CONF[50]]: 0x00
Context configuration [CONTEXT_CONF[49]]: 0x00
Context configuration [CONTEXT_CONF[48]]: 0x00
Context configuration [CONTEXT_CONF[47]]: 0x00
Context configuration [CONTEXT_CONF[46]]: 0x00
Context configuration [CONTEXT_CONF[45]]: 0x00
Context configuration [CONTEXT_CONF[44]]: 0x00
Context configuration [CONTEXT_CONF[43]]: 0x00
Context configuration [CONTEXT_CONF[42]]: 0x00
Context configuration [CONTEXT_CONF[41]]: 0x00
Context configuration [CONTEXT_CONF[40]]: 0x00
Context configuration [CONTEXT_CONF[39]]: 0x00
Context configuration [CONTEXT_CONF[38]]: 0x00
Context configuration [CONTEXT_CONF[37]]: 0x00
Packed command status [PACKED_COMMAND_STATUS]: 0x00
Packed command failure index [PACKED_FAILURE_INDEX]: 0x00
Power Off Notification [POWER_OFF_NOTIFICATION]: 0x01
Control to turn the Cache ON/OFF [CACHE_CTRL]: 0x01
eMMC Firmware Version:
Command Queue Support [CMDQ_SUPPORT]: 0x00
Command Queue Depth [CMDQ_DEPTH]: 1
Command Enabled [CMDQ_MODE_EN]: 0x00
root@Turris:/tmp/sbin#

Please next time use Pastebin or other alternative to it.

1 Like

I have fixed the preview of log (by accident I finally found the right tag for this forum), but I refuse to use any third party service as it create more mess according to my view and you have to agree another term services…

1 Like

The result:
I have boot into Rescue mode, save my files (/home, /www, /root, /etc…)
and then I run btrfs check --repair /dev/mmcblk0p1 (took a lot of time)
Well the result after restart was kernel panic, so I gave up and flashed medkit.
Now everything seems to be working again.
Also I have noted, when I did backup to my flash disk, and coping the /srv folder, where the lxc data are stored I got multiple errors from kernel, this means for me that it’s not save to run anything in LXC on internal flash, even webserver with almost no access, so I am going to move this folder to harddrive or usb ssd.

/ # cp -a /mnt/emmc/@103/srv/ /mnt/sda1/backup_btrfs_fail/srv/
[ 3606.958927] BTRFS warning (device mmcblk0p1): csum failed ino 209720 off 36864 csum 112910157 expected csum 2012169877
[ 3606.973465] BTRFS warning (device mmcblk0p1): csum failed ino 209720 off 36864 csum 1110403626 expected csum 2012169877
cp: read error: I/O error
[ 3608.034268] BTRFS warning (device mmcblk0p1): csum failed ino 211024 off 81920 csum 821993447 expected csum 3804496770
[ 3608.048946] BTRFS warning (device mmcblk0p1): csum failed ino 211024 off 81920 csum 3453668140 expected csum 3804496770
cp: read error: I/O error
[ 3609.602942] BTRFS warning (device mmcblk0p1): csum failed ino 211883 off 0 csum 426237087 expected csum 3305508711
[ 3609.616924] BTRFS warning (device mmcblk0p1): csum failed ino 211883 off 0 csum 741162324 expected csum 3305508711
cp: read error: I/O error
[ 3609.902233] BTRFS error (device mmcblk0p1): bad tree block start 2305983748769755136 2067705856
[ 3609.911071] BTRFS error (device mmcblk0p1): bad tree block start 2067709956 2067709952
[ 3609.911138] BTRFS warning (device mmcblk0p1): mmcblk0p1 checksum verify failed on 2067714048 wanted E5CD3985 found B9D09E20 level 0
[ 3609.911146] BTRFS error (device mmcblk0p1): bad tree block start 2034167808 2067722240
[ 3609.942827] BTRFS error (device mmcblk0p1): bad tree block start 2305983748769755136 2067705856
[ 3609.955117] BTRFS error (device mmcblk0p1): bad tree block start 2305983748769755136 2067705856
[ 3609.967646] BTRFS warning (device mmcblk0p1): mmcblk0p1 checksum verify failed on 2067927040 wanted CDCFC72 found 9DD0D2BB level 0
[ 3609.983145] BTRFS warning (device mmcblk0p1): mmcblk0p1 checksum verify failed on 2067927040 wanted CDCFC72 found 54DA8E3B level 0
[ 3609.998630] BTRFS warning (device mmcblk0p1): mmcblk0p1 checksum verify failed on 2067927040 wanted CDCFC72 found F71AA6D0 level 0
cp: can't stat '/mnt/emmc/@103/srv/lxc/nas_ubnt/rootfs/usr/lib/arm-linux-gnueabihf/perl-base/unicore/lib/Jt': Stale file handle
[ 3610.732311] BTRFS warning (device mmcblk0p1): csum failed ino 212722 off 180224 csum 533034650 expected csum 1310877615
[ 3616.400099] BTRFS warning (device mmcblk0p1): csum failed ino 215796 off 12288 csum 1671418470 expected csum 272106007
[ 3616.414469] BTRFS warning (device mmcblk0p1): csum failed ino 215796 off 12288 csum 2470116741 expected csum 272106007
cp: read error: I/O error
[ 3629.560864] BTRFS warning (device mmcblk0p1): csum failed ino 223761 off 7827456 csum 1890479245 expected csum 1787299603
[ 3629.664189] BTRFS warning (device mmcblk0p1): csum failed ino 223761 off 7827456 csum 2875472752 expected csum 1787299603
cp: read error: I/O error
[ 3637.556875] BTRFS warning (device mmcblk0p1): csum failed ino 223803 off 17567744 csum 2579380329 expected csum 1552425808
[ 3638.484921] BTRFS warning (device mmcblk0p1): csum failed ino 223803 off 17567744 csum 1919856406 expected csum 1552425808
cp: read error: I/O error
[ 3701.425923] BTRFS warning (device mmcblk0p1): csum failed ino 567618 off 335872 csum 815275655 expected csum 1979767328
[ 3701.439691] BTRFS warning (device mmcblk0p1): csum failed ino 567618 off 348160 csum 876391609 expected csum 1381720323
[ 3701.454563] BTRFS warning (device mmcblk0p1): csum failed ino 567618 off 335872 csum 3620392790 expected csum 1979767328
cp: read error: I/O error
[ 3703.410810] BTRFS warning (device mmcblk0p1): csum failed ino 391988 off 4096 csum 1382513155 expected csum 675414271
[ 3703.425416] BTRFS warning (device mmcblk0p1): csum failed ino 391988 off 4096 csum 253061363 expected csum 675414271
cp: read error: I/O error
[ 3703.446869] BTRFS warning (device mmcblk0p1): csum failed ino 391992 off 0 csum 1087443133 expected csum 1760372998
[ 3703.460897] BTRFS warning (device mmcblk0p1): csum failed ino 391992 off 0 csum 2584252469 expected csum 1760372998
cp: read error: I/O error
[ 3710.111591] BTRFS warning (device mmcblk0p1): csum failed ino 324169 off 557056 csum 3448962822 expected csum 2366258710
[ 3710.184615] BTRFS warning (device mmcblk0p1): csum failed ino 324169 off 557056 csum 1566961098 expected csum 2366258710
cp: read error: I/O error
[ 3746.706197] BTRFS warning (device mmcblk0p1): csum failed ino 392295 off 9523200 csum 287639586 expected csum 3417811040
[ 3751.444998] BTRFS warning (device mmcblk0p1): csum failed ino 392295 off 9523200 csum 182309163 expected csum 3417811040
cp: read error: I/O error
[ 3758.933685] BTRFS warning (device mmcblk0p1): csum failed ino 349286 off 20480 csum 907509045 expected csum 3356318440
[ 3758.948102] BTRFS warning (device mmcblk0p1): csum failed ino 349286 off 20480 csum 2330629742 expected csum 3356318440
cp: read error: I/O error
[ 3761.676512] BTRFS warning (device mmcblk0p1): csum failed ino 346666 off 4096 csum 3856259109 expected csum 160910320
[ 3761.691015] BTRFS warning (device mmcblk0p1): csum failed ino 346666 off 4096 csum 1059329020 expected csum 160910320
cp: read error: I/O error
[ 3774.601489] BTRFS warning (device mmcblk0p1): csum failed ino 348839 off 4096 csum 2421665895 expected csum 1867074540
[ 3774.615944] BTRFS warning (device mmcblk0p1): csum failed ino 348839 off 4096 csum 648307110 expected csum 1867074540
cp: read error: I/O error
[ 3782.936566] BTRFS warning (device mmcblk0p1): csum failed ino 392944 off 13766656 csum 1122779057 expected csum 2914407905
[ 3795.054714] BTRFS warning (device mmcblk0p1): csum failed ino 392944 off 13766656 csum 1906392627 expected csum 2914407905
cp: read error: I/O error
[ 3796.810363] BTRFS warning (device mmcblk0p1): csum failed ino 231243 off 28672 csum 3924009302 expected csum 1839859405
[ 3796.825259] BTRFS warning (device mmcblk0p1): csum failed ino 231243 off 28672 csum 159339492 expected csum 1839859405
cp: read error: I/O error
[ 3813.638341] BTRFS warning (device mmcblk0p1): csum failed ino 444074 off 634880 csum 2682512236 expected csum 4075872860
[ 3813.724771] BTRFS warning (device mmcblk0p1): csum failed ino 444074 off 634880 csum 3079943081 expected csum 4075872860
cp: read error: I/O error
[ 3817.029060] BTRFS warning (device mmcblk0p1): csum failed ino 442194 off 0 csum 1367366881 expected csum 941475320
[ 3817.043004] BTRFS warning (device mmcblk0p1): csum failed ino 442194 off 0 csum 2891994322 expected csum 941475320
cp: read error: I/O error
[ 3817.057512] BTRFS warning (device mmcblk0p1): csum failed ino 442195 off 0 csum 1760001927 expected csum 3018916627
[ 3817.071757] BTRFS warning (device mmcblk0p1): csum failed ino 442195 off 0 csum 4259653087 expected csum 3018916627
cp: read error: I/O error
[ 3817.091263] BTRFS warning (device mmcblk0p1): csum failed ino 442197 off 0 csum 2443508852 expected csum 415195305
[ 3817.105436] BTRFS warning (device mmcblk0p1): csum failed ino 442197 off 0 csum 3723661514 expected csum 415195305
cp: read error: I/O error
[ 3817.119643] BTRFS warning (device mmcblk0p1): csum failed ino 442198 off 0 csum 1340335214 expected csum 3886784643
[ 3817.133710] BTRFS warning (device mmcblk0p1): csum failed ino 442198 off 0 csum 998279042 expected csum 3886784643
cp: read error: I/O error
cp: read error: I/O error
cp: read error: I/O error
cp: read error: I/O error
cp: read error: I/O error
cp: read error: I/O error
cp: read error: I/O error
[ 3825.783849] __readpage_endio_check: 12 callbacks suppressed
[ 3825.789443] BTRFS warning (device mmcblk0p1): csum failed ino 483371 off 1314816 csum 963369019 expected csum 2229368336
[ 3825.875193] BTRFS warning (device mmcblk0p1): csum failed ino 483371 off 1314816 csum 3500440409 expected csum 2229368336
cp: read error: I/O error
[ 3862.951041] BTRFS warning (device mmcblk0p1): csum failed ino 239957 off 12288 csum 507089481 expected csum 1614469528
[ 3862.966262] BTRFS warning (device mmcblk0p1): csum failed ino 239957 off 16384 csum 1526594234 expected csum 3202208203
[ 3862.977141] BTRFS warning (device mmcblk0p1): csum failed ino 239957 off 12288 csum 3561821388 expected csum 1614469528
cp: read error: I/O error
[ 3865.135985] BTRFS warning (device mmcblk0p1): csum failed ino 249147 off 0 csum 2488959123 expected csum 98114879
[ 3865.150198] BTRFS warning (device mmcblk0p1): csum failed ino 249147 off 0 csum 2361227309 expected csum 98114879
cp: read error: I/O error
[ 3869.284264] BTRFS warning (device mmcblk0p1): csum failed ino 323349 off 0 csum 1485571615 expected csum 3772850762
[ 3869.298597] BTRFS warning (device mmcblk0p1): csum failed ino 323349 off 0 csum 3341433662 expected csum 3772850762
cp: read error: I/O error
[ 3869.567799] BTRFS warning (device mmcblk0p1): csum failed ino 323588 off 0 csum 4243397950 expected csum 2880923137
[ 3869.582115] BTRFS warning (device mmcblk0p1): csum failed ino 323588 off 0 csum 2847050136 expected csum 2880923137
cp: read error: I/O error
[ 3869.596909] BTRFS warning (device mmcblk0p1): csum failed ino 323589 off 0 csum 4222404553 expected csum 2862900604
[ 3869.611321] BTRFS warning (device mmcblk0p1): csum failed ino 323589 off 0 csum 3116090156 expected csum 2862900604
cp: read error: I/O error
[ 3886.391203] BTRFS warning (device mmcblk0p1): csum failed ino 323920 off 1560576 csum 2066441104 expected csum 3706808044
[ 3886.406110] BTRFS warning (device mmcblk0p1): csum failed ino 323920 off 1560576 csum 959765478 expected csum 3706808044
cp: read error: I/O error
[ 3887.285312] BTRFS warning (device mmcblk0p1): csum failed ino 363917 off 221184 csum 1931920393 expected csum 3780468362
[ 3887.300138] BTRFS warning (device mmcblk0p1): csum failed ino 363917 off 221184 csum 1013013276 expected csum 3780468362
cp: read error: I/O error
[ 3887.464022] BTRFS warning (device mmcblk0p1): csum failed ino 395392 off 4096 csum 3975626296 expected csum 1806192017
[ 3887.479559] BTRFS warning (device mmcblk0p1): csum failed ino 395392 off 4096 csum 700285790 expected csum 1806192017
cp: read error: I/O error
[ 3899.233482] BTRFS warning (device mmcblk0p1): csum failed ino 249033 off 1503232 csum 925741667 expected csum 2275414379
[ 3899.286518] BTRFS warning (device mmcblk0p1): csum failed ino 249033 off 1503232 csum 1487212181 expected csum 2275414379
cp: read error: I/O error
[ 3900.165529] BTRFS warning (device mmcblk0p1): csum failed ino 336930 off 704512 csum 4254920376 expected csum 874828538
[ 3900.189274] BTRFS warning (device mmcblk0p1): csum failed ino 336930 off 712704 csum 3137478681 expected csum 4033273690
cp: read error: I/O error
[ 3915.725028] BTRFS warning (device mmcblk0p1): csum failed ino 481607 off 126976 csum 1462852723 expected csum 1997667385
[ 3915.739925] BTRFS warning (device mmcblk0p1): csum failed ino 481607 off 126976 csum 2344879825 expected csum 1997667385
cp: read error: I/O error
[ 3917.053128] BTRFS warning (device mmcblk0p1): csum failed ino 564134 off 667648 csum 169748162 expected csum 804521558
[ 3917.114894] BTRFS warning (device mmcblk0p1): csum failed ino 564134 off 667648 csum 3622290834 expected csum 804521558
cp: read error: I/O error
[ 3917.685595] BTRFS warning (device mmcblk0p1): csum failed ino 564144 off 4812800 csum 2131964205 expected csum 1859964771
[ 3918.204744] BTRFS warning (device mmcblk0p1): csum failed ino 564144 off 4812800 csum 1728518463 expected csum 1859964771
cp: read error: I/O error
[ 3964.021569] BTRFS warning (device mmcblk0p1): csum failed ino 241950 off 26378240 csum 312849888 expected csum 674177322
[ 3964.385554] BTRFS warning (device mmcblk0p1): csum failed ino 241950 off 29220864 csum 1798990495 expected csum 426956225
[ 3964.495606] BTRFS warning (device mmcblk0p1): csum failed ino 241950 off 26378240 csum 2634701816 expected csum 674177322
cp: read error: I/O error
[ 3964.563878] BTRFS warning (device mmcblk0p1): csum failed ino 241951 off 1318912 csum 1439882656 expected csum 3492617446
[ 3964.668794] BTRFS warning (device mmcblk0p1): csum failed ino 241951 off 1318912 csum 528139084 expected csum 3492617446
cp: read error: I/O error
[ 4018.435914] BTRFS warning (device mmcblk0p1): csum failed ino 344759 off 4096 csum 4236180166 expected csum 3924819362
[ 4019.123555] BTRFS warning (device mmcblk0p1): csum failed ino 345947 off 32768 csum 212375780 expected csum 93165916
[ 4019.137855] BTRFS warning (device mmcblk0p1): csum failed ino 345947 off 32768 csum 2011143750 expected csum 93165916
cp: read error: I/O error
[ 4023.139505] BTRFS warning (device mmcblk0p1): csum failed ino 371028 off 73728 csum 2124730816 expected csum 1807944217
[ 4023.150476] BTRFS warning (device mmcblk0p1): csum failed ino 371028 off 86016 csum 3133864245 expected csum 1334443974
[ 4023.164898] BTRFS warning (device mmcblk0p1): csum failed ino 371028 off 73728 csum 3567929649 expected csum 1807944217
cp: read error: I/O error
[ 4028.934947] BTRFS warning (device mmcblk0p1): csum failed ino 371417 off 4456448 csum 3625276283 expected csum 13301696
[ 4029.115219] BTRFS warning (device mmcblk0p1): csum failed ino 371417 off 4456448 csum 1708494626 expected csum 13301696
cp: read error: I/O error
[ 4087.047496] BTRFS warning (device mmcblk0p1): csum failed ino 534974 off 0 csum 3918643046 expected csum 785428908
[ 4087.061798] BTRFS warning (device mmcblk0p1): csum failed ino 534974 off 0 csum 130606735 expected csum 785428908
cp: read error: I/O error
[ 4087.083125] BTRFS warning (device mmcblk0p1): csum failed ino 534980 off 0 csum 918883964 expected csum 4159049038
[ 4087.097421] BTRFS warning (device mmcblk0p1): csum failed ino 534980 off 0 csum 341897192 expected csum 4159049038
cp: read error: I/O error
[ 4104.637915] BTRFS warning (device mmcblk0p1): csum failed ino 539037 off 24576 csum 3044430470 expected csum 2707909559
[ 4104.652302] BTRFS warning (device mmcblk0p1): csum failed ino 539037 off 24576 csum 3329720440 expected csum 2707909559
cp: read error: I/O error
[ 4104.745173] BTRFS warning (device mmcblk0p1): csum failed ino 539208 off 0 csum 1025392249 expected csum 766306806
[ 4104.759234] BTRFS warning (device mmcblk0p1): csum failed ino 539208 off 0 csum 3961826944 expected csum 766306806
cp: read error: I/O error
[ 4104.773575] BTRFS warning (device mmcblk0p1): csum failed ino 539209 off 0 csum 1096815611 expected csum 2459397948
[ 4104.787660] BTRFS warning (device mmcblk0p1): csum failed ino 539209 off 0 csum 2259419192 expected csum 2459397948
cp: read error: I/O error
[ 4104.812476] BTRFS warning (device mmcblk0p1): csum failed ino 539219 off 0 csum 1197889765 expected csum 2683953864
[ 4104.826536] BTRFS warning (device mmcblk0p1): csum failed ino 539219 off 0 csum 398596686 expected csum 2683953864
cp: read error: I/O error
[ 4105.047636] BTRFS warning (device mmcblk0p1): csum failed ino 539456 off 2269184 csum 4096204708 expected csum 2114505108
[ 4105.093343] BTRFS warning (device mmcblk0p1): csum failed ino 539456 off 2285568 csum 860288258 expected csum 1508217459
cp: read error: I/O error
[ 4114.128579] BTRFS warning (device mmcblk0p1): csum failed ino 544251 off 28672 csum 1203582189 expected csum 3368048254
[ 4114.143362] BTRFS warning (device mmcblk0p1): csum failed ino 544251 off 28672 csum 2397947497 expected csum 3368048254
cp: read error: I/O error
/ #

After you move it out, could you write here short step-by-step guide how to? That would be great.

There is already exist guide here:
https://www.turris.cz/doc/en/public/lxconmsata

1 Like

Zdravim,
brtrfs scrub is running in background in default - no message is given, you can check status using
btrfs scrub status /mountpoint
or add -B parameter - which force scrub to run in foreground and print results.

Zdravím,
I am not sure that scrub is running on my router now. After the btrfs scrub status /dev/mmcblk0p1 or btrfs scrub status / I am getting no stats available.

it takes approximately 20 sec. on / partition
and it do not show any stats after restart

Try run
btrfs scrub start /
followed by
btrfs scrub status /

or directly
btrfs scrub start -B /

Ok now I see something, looks good now :slight_smile: , but it wasn’t work before I flashed the medkit.

root@turris:~# btrfs scrub start -B /
scrub done for c504320d-85c8-4fab-9bd0-8a00bfea9cd2
        scrub started at Tue Sep 19 15:15:40 2017 and finished after 00:00:07
        total bytes scrubbed: 302.82MiB with 0 errors