Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dldinternet/a78527890243c52a3c2ed78917a11698 to your computer and use it in GitHub Desktop.
Save dldinternet/a78527890243c52a3c2ed78917a11698 to your computer and use it in GitHub Desktop.
Synology BTRFS repair
btrfs fi show -d
Label: '2019.02.19-20:17:48 v23824' uuid: 7c19084c-9c53-4cea-b287-0e1a43e6860b
Total devices 1 FS bytes used 13.95TiB
devid 1 size 29.07TiB used 23.18TiB path /dev/md2
syno_poweroff_task -d
(Interrupt this after a while to prevent losing SSH completely)
(or: umount /volume1)
(or: umount /volume1 -f -k)
Check to see if all us unmounted:
df -h
mdadm --stop /dev/md2 (Don't do this for /dev/md* devices)
btrfsck /dev/md2
btrfs check --repair /dev/md2
btrfs rescue super-recover -v /dev/md2
fsck.hfsplus -dfl /dev/md2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment