Synology

Edit

修改root密码

synouser --setpw root xxx

How to “unmount /volume1”

  1. 查看占用volume1的进程:lsof /volumes
  2. 关闭对应的进程
find /usr/syno/etc.defaults/rc.sysv/ | grep -i <service name>
synoservicecfg --status | grep enable | grep -i <service name>

参考how-to-fsck-on-synology-dsm6

扫描File System

fsck.ext4 -v -n -f /dev/vg1000/lv #Check the filesystem, with NO changes being written
fsck.ext4 -v -f -y /dev/vg1000/lv #Check & fix your filesystem

查看所有挂载点

cat /etc/mtab
%23%20Synology%0A@%28myblog%29%5Bnas%2C%20synology%5D%0A%0A%23%23%20%u4FEE%u6539root%u5BC6%u7801%0A%60%60%60%0Asynouser%20--setpw%20root%20xxx%0A%60%60%60%0A%0A%23%23%20How%20to%20%22unmount%20/volume1%22%0A%0A1.%20%u67E5%u770B%u5360%u7528volume1%u7684%u8FDB%u7A0B%uFF1A%60lsof%20/volumes%60%0A2.%20%u5173%u95ED%u5BF9%u5E94%u7684%u8FDB%u7A0B%0A%60%60%60%0Afind%20/usr/syno/etc.defaults/rc.sysv/%20%7C%20grep%20-i%20%3Cservice%20name%3E%0Asynoservicecfg%20--status%20%7C%20grep%20enable%20%7C%20grep%20-i%20%3Cservice%20name%3E%0A%60%60%60%0A%u53C2%u8003%5Bhow-to-fsck-on-synology-dsm6%5D%28https%3A//github.com/OliPelz/how-to-fsck-on-synology-dsm6%29%0A%0A%23%23%20%u626B%u63CFFile%20System%0A%60%60%60bash%0Afsck.ext4%20-v%20-n%20-f%20/dev/vg1000/lv%20%23Check%20the%20filesystem%2C%20with%20NO%20changes%20being%20written%0Afsck.ext4%20-v%20-f%20-y%20/dev/vg1000/lv%20%23Check%20%26%20fix%20your%20filesystem%0A%60%60%60%0A%0A%23%23%20%u67E5%u770B%u6240%u6709%u6302%u8F7D%u70B9%0A%60%60%60bash%0Acat%20/etc/mtab%0A%60%60%60