You are not logged in.

#1 2024-02-12 08:16:54

zaxdan69
Member
Registered: 2016-06-04
Posts: 275

Btrfs partition mount fail

I have a btrfs partition on that disk which the last days fails to mount.
I tried to check it with "btrfs check" command and I get these results:

Opening filesystem to check...
checksum verify failed on 636977152 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 636977152 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 636977152 wanted 0x00000000 found 0xb6bde3e4
bad tree block 636977152, bytenr mismatch, want=636977152, have=0
ERROR: could not setup free space tree
ERROR: cannot open file system

I also tried to repair it, which also failed:

Starting repair.
Opening filesystem to check...
checksum verify failed on 636977152 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 636977152 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 636977152 wanted 0x00000000 found 0xb6bde3e4
bad tree block 636977152, bytenr mismatch, want=636977152, have=0
WARNING: could not setup free space tree, skipping it
checksum verify failed on 636960768 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 636960768 wanted 0x00000000 found 0xb6bde3e4
checksum verify failed on 636960768 wanted 0x00000000 found 0xb6bde3e4
bad tree block 636960768, bytenr mismatch, want=636960768, have=0
ERROR: failed to read block groups: Input/output error
ERROR: cannot open file system

And here is the smartctl output for the disk:

=== START OF INFORMATION SECTION ===
Model Family:     Silicon Motion based SSDs
Device Model:     Patriot P210 256GB
Serial Number:    P210LICA22100429259
LU WWN Device Id: 0 000000 000000000
Firmware Version: HPS2227I
User Capacity:    256.060.514.304 bytes [256 GB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available
Device is:        In smartctl database 7.3/5533
ATA Version is:   ACS-2 T13/2015-D revision 3
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Mon Feb 12 09:50:54 2024 EET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Unavailable
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Unavailable

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever
					been run.
Total time to complete Offline
data collection: 		(  120) seconds.
Offline data collection
capabilities: 			 (0x5d) SMART execute Offline immediate.
					No Auto Offline data collection support.
					Abort Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0002)	Does not save SMART data before
					entering power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 (   4) minutes.

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     -O--CK   100   100   050    -    0
  5 Reallocated_Sector_Ct   -O--CK   100   100   050    -    0
  9 Power_On_Hours          -O--CK   100   100   050    -    7380
 12 Power_Cycle_Count       -O--CK   100   100   050    -    789
160 Uncorrectable_Error_Cnt -O--CK   100   100   050    -    0
161 Valid_Spare_Block_Cnt   -O--CK   100   100   050    -    100
163 Initial_Bad_Block_Count -O--CK   100   100   050    -    1962
164 Total_Erase_Count       -O--CK   100   100   050    -    536
165 Max_Erase_Count         -O--CK   100   100   050    -    927
166 Min_Erase_Count         -O--CK   100   100   050    -    266
167 Average_Erase_Count     -O--CK   100   100   050    -    538
168 Max_Erase_Count_of_Spec -O--CK   100   100   050    -    0
169 Remaining_Lifetime_Perc -O--CK   100   100   050    -    92
175 Program_Fail_Count_Chip -O--CK   100   100   050    -    419430400
176 Erase_Fail_Count_Chip   -O--CK   100   100   050    -    2823328
177 Wear_Leveling_Count     -O--CK   100   100   050    -    52211495
178 Runtime_Invalid_Blk_Cnt -O--CK   100   100   050    -    0
181 Program_Fail_Cnt_Total  -O--CK   100   100   050    -    0
182 Erase_Fail_Count_Total  -O--CK   100   100   050    -    0
192 Power-Off_Retract_Count -O--CK   100   100   050    -    94
194 Temperature_Celsius     -O--CK   100   100   050    -    40
195 Hardware_ECC_Recovered  -O--CK   100   100   050    -    0
196 Reallocated_Event_Count -O--CK   100   100   050    -    2
197 Current_Pending_Sector  -O--CK   100   100   050    -    1
198 Offline_Uncorrectable   -O--CK   100   100   050    -    0
199 UDMA_CRC_Error_Count    -O--CK   100   100   050    -    0
232 Available_Reservd_Space -O--CK   100   100   050    -    100
241 Host_Writes_32MiB       -O--CK   100   100   050    -    122803
242 Host_Reads_32MiB        -O--CK   100   100   050    -    270302
245 TLC_Writes_32MiB        -O--CK   100   100   050    -    4101323
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01       GPL,SL  R/O      1  Summary SMART error log
0x02       GPL,SL  R/O      1  Comprehensive SMART error log
0x03       GPL,SL  R/O      1  Ext. Comprehensive SMART error log
0x04       GPL,SL  R/O      8  Device Statistics log
0x06       GPL,SL  R/O      1  SMART self-test log
0x07       GPL,SL  R/O      1  Extended self-test log
0x09       GPL,SL  R/W      1  Selective self-test log
0x10       GPL,SL  R/O      1  NCQ Command Error log
0x11       GPL,SL  R/O      1  SATA Phy Event Counters log
0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xa0       GPL,SL  VS      16  Device vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
Device Error Count: 304 (device log contains only the most recent 4 errors)
	CR     = Command Register
	FEATR  = Features Register
	COUNT  = Count (was: Sector Count) Register
	LBA_48 = Upper bytes of LBA High/Mid/Low Registers ]  ATA-8
	LH     = LBA High (was: Cylinder High) Register    ]   LBA
	LM     = LBA Mid (was: Cylinder Low) Register      ] Register
	LL     = LBA Low (was: Sector Number) Register     ]
	DV     = Device (was: Device/Head) Register
	DC     = Device Control Register
	ER     = Error register
	ST     = Status register
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 304 [3] occurred at disk power-on lifetime: 7379 hours (307 days + 11 hours)
  When the command that caused the error occurred, the device was in an unknown state.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  84 -- 40 00 00 00 01 8d 00 26 38 00 00   at LBA = 0x18d002638 = 6660564536

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  60 00 08 00 00 00 01 8d 00 26 38 40 08     00:00:39.310  READ FPDMA QUEUED
  60 00 08 00 30 00 01 b1 00 55 f8 40 08     00:00:39.310  READ FPDMA QUEUED
  61 03 d0 00 28 00 02 4b 00 6d 88 40 08     00:00:39.310  WRITE FPDMA QUEUED
  60 00 08 00 20 00 01 89 00 26 30 40 08     00:00:39.310  READ FPDMA QUEUED
  ef 00 10 00 02 00 00 00 00 00 00 a0 08     00:00:39.310  SET FEATURES [Enable SATA feature]

Error 303 [2] occurred at disk power-on lifetime: 7379 hours (307 days + 11 hours)
  When the command that caused the error occurred, the device was in an unknown state.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  84 -- 40 00 f8 00 02 cc 00 ee f0 00 00   at LBA = 0x2cc00eef0 = 12012547824

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  60 01 00 00 f8 00 02 cc 00 ee f0 40 08     00:00:39.110  READ FPDMA QUEUED
  60 00 08 00 38 00 01 b1 00 55 f8 40 08     00:00:39.110  READ FPDMA QUEUED
  61 03 d0 00 30 00 02 4b 00 6d 88 40 08     00:00:39.110  WRITE FPDMA QUEUED
  60 00 08 00 28 00 02 cf 00 ee 58 40 08     00:00:39.110  READ FPDMA QUEUED
  60 00 88 00 20 00 01 96 00 4f 18 40 08     00:00:39.110  READ FPDMA QUEUED

Error 302 [1] occurred at disk power-on lifetime: 7379 hours (307 days + 11 hours)
  When the command that caused the error occurred, the device was in an unknown state.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  84 -- 40 00 90 00 01 b1 00 55 f8 00 00   at LBA = 0x1b10055f8 = 7264556536

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  60 00 08 00 90 00 01 b1 00 55 f8 40 08     00:00:38.910  READ FPDMA QUEUED
  61 03 d0 00 88 00 02 4b 00 6d 88 40 08     00:00:38.910  WRITE FPDMA QUEUED
  60 00 08 00 08 00 00 cd 00 f3 e0 40 08     00:00:38.890  READ FPDMA QUEUED
  61 00 08 00 00 00 02 88 00 69 00 40 08     00:00:38.890  WRITE FPDMA QUEUED
  ef 00 10 00 02 00 00 00 00 00 00 a0 08     00:00:38.890  SET FEATURES [Enable SATA feature]

Error 301 [0] occurred at disk power-on lifetime: 7379 hours (307 days + 11 hours)
  When the command that caused the error occurred, the device was in an unknown state.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  84 -- 40 00 80 00 00 cd 00 f3 e0 00 00   at LBA = 0xcd00f3e0 = 3439391712

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  60 00 20 00 80 00 00 cd 00 f3 e0 40 08     00:00:38.690  READ FPDMA QUEUED
  60 01 00 00 18 00 02 ce 00 ee d8 40 08     00:00:38.690  READ FPDMA QUEUED
  61 00 08 00 10 00 02 88 00 69 00 40 08     00:00:38.690  WRITE FPDMA QUEUED
  60 00 20 00 78 00 01 95 00 4f f8 40 08     00:00:38.690  READ FPDMA QUEUED
  60 00 08 00 e8 00 01 8c 00 2d 78 40 08     00:00:38.690  READ FPDMA QUEUED

SMART Extended Self-test Log Version: 0 (1 sectors)
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

SCT Commands not supported

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             789  ---  Lifetime Power-On Resets
0x01  0x010  4            7380  ---  Power-on Hours
0x01  0x018  6      8048017408  ---  Logical Sectors Written
0x01  0x020  6       166490358  ---  Number of Write Commands
0x01  0x028  6     17714511872  ---  Logical Sectors Read
0x01  0x030  6       152619244  ---  Number of Read Commands
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             789  ---  Lifetime Power-On Resets
0x01  0x010  4            7380  ---  Power-on Hours
0x01  0x018  6      8048017408  ---  Logical Sectors Written
0x01  0x020  6       166490358  ---  Number of Write Commands
0x01  0x028  6     17714511872  ---  Logical Sectors Read
0x01  0x030  6       152619244  ---  Number of Read Commands
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             789  ---  Lifetime Power-On Resets
0x01  0x010  4            7380  ---  Power-on Hours
0x01  0x018  6      8048017408  ---  Logical Sectors Written
0x01  0x020  6       166490358  ---  Number of Write Commands
0x01  0x028  6     17714511872  ---  Logical Sectors Read
0x01  0x030  6       152619244  ---  Number of Read Commands
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             789  ---  Lifetime Power-On Resets
0x01  0x010  4            7380  ---  Power-on Hours
0x01  0x018  6      8048017408  ---  Logical Sectors Written
0x01  0x020  6       166490358  ---  Number of Write Commands
0x01  0x028  6     17714511872  ---  Logical Sectors Read
0x01  0x030  6       152619244  ---  Number of Read Commands
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             789  ---  Lifetime Power-On Resets
0x01  0x010  4            7380  ---  Power-on Hours
0x01  0x018  6      8048017408  ---  Logical Sectors Written
0x01  0x020  6       166490358  ---  Number of Write Commands
0x01  0x028  6     17714511872  ---  Logical Sectors Read
0x01  0x030  6       152619244  ---  Number of Read Commands
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             789  ---  Lifetime Power-On Resets
0x01  0x010  4            7380  ---  Power-on Hours
0x01  0x018  6      8048017408  ---  Logical Sectors Written
0x01  0x020  6       166490358  ---  Number of Write Commands
0x01  0x028  6     17714511872  ---  Logical Sectors Read
0x01  0x030  6       152619244  ---  Number of Read Commands
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             789  ---  Lifetime Power-On Resets
0x01  0x010  4            7380  ---  Power-on Hours
0x01  0x018  6      8048017408  ---  Logical Sectors Written
0x01  0x020  6       166490358  ---  Number of Write Commands
0x01  0x028  6     17714511872  ---  Logical Sectors Read
0x01  0x030  6       152619244  ---  Number of Read Commands
0x01  =====  =               =  ===  == General Statistics (rev 1) ==
0x01  0x008  4             789  ---  Lifetime Power-On Resets
0x01  0x010  4            7380  ---  Power-on Hours
0x01  0x018  6      8048017408  ---  Logical Sectors Written
0x01  0x020  6       166490358  ---  Number of Write Commands
0x01  0x028  6     17714511872  ---  Logical Sectors Read
0x01  0x030  6       152619244  ---  Number of Read Commands
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  4            0  Command failed due to ICRC error
0x0009  4         2105  Transition from drive PhyRdy to drive PhyNRdy
0x000a  4         5981  Device-to-host register FISes sent due to a COMRESET
0x000b  4          323  CRC errors within host-to-device FIS
0x000d  4          168  Non-CRC errors within host-to-device FIS

Is this fixable?

Offline

#2 2024-02-12 14:05:30

d.ALT
Member
Registered: 2019-05-10
Posts: 920

Re: Btrfs partition mount fail

https://wiki.archlinux.org/title/S.M.A.R.T.#Run_a_test
Are both DATA and POWER cables well-connected on both ends (SSD and motherboard)?


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2024-02-12 14:47:18

zaxdan69
Member
Registered: 2016-06-04
Posts: 275

Re: Btrfs partition mount fail

Yes, I re-check them and are fine. Also there are other partitions except that one on the disk(included the archlinux /) which don't seem to have any problem.
I tried "smartctl -H" and ther result was "PASSED" and no errors.
I also tried the sort test command but I didn't get any results. Just a message that the test will finish after 2 minutes. I tried the "smartctl -l selftest" command after
that time and I get this output:

# 1  Offline             Self-test routine in progress 50%      7386         -
# 2  Offline             Self-test routine in progress 50%      7386         -
# 3  Offline             Self-test routine in progress 50%      7386         -
# 4  Offline             Self-test routine in progress 50%      7386         -
# 5  Offline             Self-test routine in progress 50%      7386         -
# 6  Offline             Self-test routine in progress 50%      7386         -
# 7  Offline             Self-test routine in progress 50%      7386         -
# 8  Offline             Self-test routine in progress 50%      7386         -
# 9  Offline             Self-test routine in progress 50%      7386         -
#10  Offline             Self-test routine in progress 50%      7386         -
#11  Offline             Self-test routine in progress 50%      7386         -
#12  Offline             Self-test routine in progress 50%      7386         -
#13  Offline             Self-test routine in progress 50%      7386         -
#14  Offline             Self-test routine in progress 50%      7386         -
#15  Offline             Self-test routine in progress 50%      7386         -
#16  Offline             Self-test routine in progress 50%      7386         -
#17  Offline             Self-test routine in progress 50%      7386         -
#18  Offline             Self-test routine in progress 50%      7386         -
#19  Offline             Self-test routine in progress 50%      7386         -
#20  Offline             Self-test routine in progress 50%      7386         -
#21  Offline             Self-test routine in progress 50%      7386         -

Last edited by zaxdan69 (2024-02-12 15:02:34)

Offline

#4 2024-02-13 10:34:21

zaxdan69
Member
Registered: 2016-06-04
Posts: 275

Re: Btrfs partition mount fail

I mounted as ro and I had access to the files which I copied to another disk. Then I deleted and re-create the partition which now can be mounted without errors.

Offline

Board footer

Powered by FluxBB