### Script command-line options Source: https://github.com/007revad/synology_m2_volume/blob/main/README.md Available flags for the script to list drives, show steps, display help, or check the version. ```YAML -a, --all List all M.2 drives even if detected as active -s, --steps Show the steps to do after running this script -h, --help Show this help message -v, --version Show the script version ``` -------------------------------- ### Run the M.2 volume script via SSH Source: https://github.com/007revad/synology_m2_volume/blob/main/README.md Execute the script with root privileges. Replace the path with the actual location of the script on your system. ```YAML sudo -s /volume1/scripts/syno_create_m2_volume.sh ``` -------------------------------- ### Set script as executable Source: https://github.com/007revad/synology_m2_volume/blob/main/README.md Ensure the script file has the necessary permissions to be executed. ```YAML sudo chmod +x "/volume1/scripts/syno_create_m2_volume.sh" ``` -------------------------------- ### Repair RAID commands Source: https://github.com/007revad/synology_m2_volume/wiki/Repair-RAID-via-SSH Commands to stop spaces, power off tasks, and reassemble the RAID array. Replace placeholders with the correct device identifiers. ```bash sudo synospace --stop-all-spaces sudo syno_poweroff_task -d sudo mdadm -Sf /dev/md4 sudo mdadm -AfR /dev/md4 /dev/nvme2 ``` -------------------------------- ### Run the script with a path containing spaces Source: https://github.com/007revad/synology_m2_volume/blob/main/README.md Enclose the full path in double quotes if the directory or filename contains spaces. ```YAML sudo -s "/volume1/my scripts/syno_create_m2_volume.sh" ``` -------------------------------- ### Check RAID device status Source: https://github.com/007revad/synology_m2_volume/wiki/Repair-RAID-via-SSH Displays the current status of RAID devices and identifies device names. ```bash cat /proc/mdstat ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.