Synology Whitewashing Method 2a: Use SSH tool to mount modifications (7.X version)

Method 2a: UseSSH toolsMount modification (7.X version)

1. Open the SSH port

Open Control Panel—-Terminal and SNMP—-Enable SSH function1.png

2. Log in through SSH tool

1.Openputtysoftware, enter the Synology intranet management IP and SSH port number, and click “OPEN” to establish a connection with Synology.

SSH连接到群晖系统

3. Log in to the management account and escalate privileges

1. Enter the Synology management account and password. The first account created when installing the Synology system is the management account.

2. Elevate the privilege management account to obtain root privileges.

sudo -i

After pressing Enter, you will be prompted to enter the password. Enter the password of the current login account again and press Enter. After the privilege escalation is successful, it will become“root@XX:~#”.

群晖管理账户SSH登录并提权获得root权限

Fourth, create a temporary directory in the /tmp directory with a random name, such as: boot

mkdir -p /tmp/boot

1.png

5. Switch the dev directory

cd /dev

1.pngThen enter sfdisk -l to view each hard disk and partition information, as shown below:1.pngThe Synology virtual machine under esxi I tested here, if you boot it with a USB flash drive, the display will be like this.

6. Mount the first boot partition into the boot directory created above.

mount -t vfat synoboot1 /tmp/boot/

1.pngThen switch to the mounting directory

cd /tmp/boot

1.pngThen use the ls command to check the mounted content.1.pngThe boot directory inside is the directory where we need to change the serial number and mac address.

via command

cd boot/grub

After entering grub, edit the grub.cfg file through the vi command to modify the SN and MAC.1.png

vi grub.cfg

Open to enter

Press the “i” key on your keyboard to enter modification editing

Move to the end, as shown below (change sn and mac to your own whitewashing code)1.pngAfter all modifications are made, click the “ESC” key in the upper left corner of the keyboard

Then enter the colon “:”

After the colon appears, enter wq to save and exit. If you want to force exit without saving, enter q!1.pngThe above has been modified. Restart the machine for the changes to take effect

Newsletter Updates

Enter your email address below and subscribe to our newsletter