kali@kali:~$ sudo dmesg | grep md2
[ 1290.903057] md: md2 stopped.
[ 1291.544841] md/raid:md2: device sda3 operational as raid disk 0
[ 1291.544848] md/raid:md2: device sdd3 operational as raid disk 3
[ 1291.544851] md/raid:md2: device sdc3 operational as raid disk 2
[ 1291.544853] md/raid:md2: device sdb3 operational as raid disk 1
[ 1291.545832] md/raid:md2: raid level 6 active with 4 out of 4 devices, algorithm 2
[ 1291.545886] md2: detected capacity change from 0 to 1990534234112
[ 1291.972857] BTRFS: device label 2020.02.10-09:18:07 v15284 devid 1 transid 119291 /dev/md2 scanned by systemd-udevd (28657)
[ 1322.971326] BTRFS info (device md2): disk space caching is enabled
[ 1322.971334] BTRFS info (device md2): has skinny extents
[ 1323.020810] BTRFS critical (device md2): corrupt leaf: root=1 block=741489180672 slot=0, invalid root flags, have 0x200000000 expect mask 0x1000000000001
[ 1323.020822] BTRFS error (device md2): block=741489180672 read time tree block corruption detected
[ 1323.025524] BTRFS critical (device md2): corrupt leaf: root=1 block=741489180672 slot=0, invalid root flags, have 0x200000000 expect mask 0x1000000000001
[ 1323.025537] BTRFS error (device md2): block=741489180672 read time tree block corruption detected
[ 1323.040555] BTRFS error (device md2): open_ctree failed
[ 1499.897918] BTRFS info (device md2): disk space caching is enabled
[ 1499.897926] BTRFS info (device md2): has skinny extents
[ 1499.923587] BTRFS critical (device md2): corrupt leaf: root=1 block=741489180672 slot=0, invalid root flags, have 0x200000000 expect mask 0x1000000000001
[ 1499.923598] BTRFS error (device md2): block=741489180672 read time tree block corruption detected
[ 1499.923938] BTRFS critical (device md2): corrupt leaf: root=1 block=741489180672 slot=0, invalid root flags, have 0x200000000 expect mask 0x1000000000001
[ 1499.923946] BTRFS error (device md2): block=741489180672 read time tree block corruption detected
[ 1499.944869] BTRFS error (device md2): open_ctree failed
[ 1523.434029] BTRFS info (device md2): disk space caching is enabled
[ 1523.434038] BTRFS info (device md2): has skinny extents
[ 1523.439662] BTRFS critical (device md2): corrupt leaf: root=1 block=741489180672 slot=0, invalid root flags, have 0x200000000 expect mask 0x1000000000001
[ 1523.439670] BTRFS error (device md2): block=741489180672 read time tree block corruption detected
[ 1523.440495] BTRFS critical (device md2): corrupt leaf: root=1 block=741489180672 slot=0, invalid root flags, have 0x200000000 expect mask 0x1000000000001
[ 1523.440501] BTRFS error (device md2): block=741489180672 read time tree block corruption detected
[ 1523.456638] BTRFS error (device md2): open_ctree failed
[ 2987.597454] BTRFS info (device md2): disk space caching is enabled
[ 2987.597461] BTRFS info (device md2): has skinny extents
[ 2987.612990] BTRFS critical (device md2): corrupt leaf: root=1 block=741489180672 slot=0, invalid root flags, have 0x200000000 expect mask 0x1000000000001
[ 2987.613000] BTRFS error (device md2): block=741489180672 read time tree block corruption detected
[ 2987.613182] BTRFS critical (device md2): corrupt leaf: root=1 block=741489180672 slot=0, invalid root flags, have 0x200000000 expect mask 0x1000000000001
[ 2987.613186] BTRFS error (device md2): block=741489180672 read time tree block corruption detected
[ 2987.632728] BTRFS error (device md2): open_ctree failed
kali@kali:~$ cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md2 : active (auto-read-only) raid6 sda3[0] sdd3[3] sdc3[2] sdb3[1]
1943881088 blocks super 1.2 level 6, 64k chunk, algorithm 2 [4/4] [UUUU]
unused devices: <none>
kali@kali:~$ sudo mdadm --detail /dev/md2
/dev/md2:
Version : 1.2
Creation Time : Mon Feb 10 09:16:31 2020
Raid Level : raid6
Array Size : 1943881088 (1853.83 GiB 1990.53 GB)
Used Dev Size : 971940544 (926.91 GiB 995.27 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent
Update Time : Tue Aug 18 23:15:29 2020
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 64K
Consistency Policy : resync
Name : ServeurNAS:2
UUID : d0116ba2:3a85f12d:b5e4d317:e19e1e78
Events : 187
Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 19 1 active sync /dev/sdb3
2 8 35 2 active sync /dev/sdc3
3 8 51 3 active sync /dev/sdd3
kali@kali:~$ blkid /dev/md2
/dev/md2: LABEL="2020.02.10-09:18:07 v15284" UUID="94aaf002-efbb-4943-b253-8b3f99d5a298" UUID_SUB="5d419294-3aae-4c3c-af74-09247e3e1520" BLOCK_SIZE="4096" TYPE="btrfs"
J’ai cherché un petit moment mais btrfs-check est déprécié et il a été remplacé par btrfsck
mais oui elle passe sans erreur et j’ai retesté un :
kali@kali:~$ sudo mount -t btrfs /dev/md2 ~/Desktop/NAS
mount: /home/kali/Desktop/NAS: wrong fs type, bad option, bad superblock on /dev/md2, missing codepage or helper program, or other error.