To run the fsck
utility to check and repair a Linux file system on a Synology NAS, follow these steps:
SSH into your Synology NAS using a terminal program like PuTTY.
Run the mount
command to view the currently mounted file systems:
mount
Identify the file system that you want to check and repair. This will typically be a file system with the ext3
or ext4
type.
Unmount the file system using the umount
command. For example:
umount /volume1/myfiles
fsck
utility on the file system. For example:fsck -y /dev/md0p1
Replace /dev/md0p1
with the device name of the file system that you want to check and repair. The -y
option tells fsck
to automatically repair any errors that it finds.
fsck
has finished running, you can remount the file system using the mount
command. For example:mount /dev/md0p1 /volume1/myfiles
This will remount the file system at the specified mount point.
Note: These steps assume that you have root access to your Synology NAS and that you are familiar with using the terminal. If you are not comfortable using the command line, it is recommended that you use the Synology DiskStation Manager (DSM) web interface to check and repair file systems.