Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added e2fsck procedure

...

I have lost 10's of hours of nice scripting, because I had put them in /root. Found the explanation here


Perform filesystem check using e2fsck

Find the volumes (like /dev/vg1/volume_1)

df -h

Set syno in debug mode to close usage of the volume

sudo syno_poweroff_task -d

Enable the volume 

sudo vgchange -ay

Perform the file system check

sudo fsck.ext4 -pvf -C 0 /dev/vg1/volume_1

OR
e2fsck -p -y -f -v /dev/vg1/volume_1

If you get the message "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY", try: fsck.ext4 -yvf -C 0 /dev/vg1/volume_1


Reboot the server:

reboot