Fixing file system corruption on Synology NAS
I recently recycled my hard-drives on my Synology DS1010+ as one of the drives started to fail. Migration of the drives was easy, but I did notice that I had file-system corruption when looking at dmesg:
htree_dirblock_to_tree: bad entry in directory Multiply-claimed block(s) in inode
The Synology does not have a facility to check the file-system during boot up, and the following instructions will allow you to run a file-system repair (if possible, make a backup of critical files before):
- Make sure that you have SSH enabled and log into the Synology via SSH
- Shutdown all services except SSH (this will unmount the volume):
syno_poweroff_task -d
- Enable the volume:
vgchange -ay
- Check for errors, but do not fix:
e2fsck -nvf -C 0 /dev/vg1/lv
- Try to fix the file-system errors
e2fsck -pvf -C 0 /dev/vg1/lv
- If -pvf can’t work, use -yvf instead.
e2fsck -yvf -C 0 /dev/vg1/lv
- Reboot the Synology
🍺 Pay it forward: If any of my content helped you in any way, send me some coins:
(CRO) 0xBAdB43af444055c4031B79a76F74895469BA0CD7 (Cronos)
(USDC) 0x5986f713A538D6bCaC0865564dCD45E2600A3469
(ETH) 0x5986f713A538D6bCaC0865564dCD45E2600A3469
(BTC) bc1qdgdkk7l98pje8ny9u4xavsvrea8dw6yu8jpnyf
(BNB) 0x5986f713A538D6bCaC0865564dCD45E2600A3469
(LTC) ltc1qexst2exxksfyg7erfzlfrm23twkjgf7e5fn64t
(DOGE) DMQsxc9XGF6526drBJDZeX7AjFDJsEz4mN
(SOL) t4bYQCUuoCUrp7kJ4Mz314npcTuKoUSXj28UgdMrfTb
Crypto.com PayString: magicdude$paystring.crypto.com
🚀 Use my referral link https://crypto.com/app/ref6ayzqvp to sign up for Crypto.com and we both get $25 USD 😸
🧨 During signup use my referral code ref6ayzqvp to claim your reward 🧨
Go to Curve.com to add your Crypto.com card to ApplePay (get 1% cashback)






Recent Comments