Synology 6.x cleaning method 2: Use task plan modification

1. Create a shared folder

1. Log in to Synology backend

2. Create a new tmp shared folder

15872775957539dca39b1a5d57ef1f6abcad6750a38261587277131
1587277595881626a27be4ff87b10dd3a0e76ec0dd3831587277154
1587277595629ff760d3b6844d1c1d5b046bca604bd4b1587277160
1587277595992cc105c327fd03bfef5f44d1ba3ff12f01587277163
1587277595765b284abdd4340fe66186317e563e893e21587277165

2. Create a new task plan

1. Switch to advanced mode

158727759567642b9dd6cd4a6e976925c8b08fda1cccd1587277168

2. Select the task plan

158727759574966b0898a3d68bb5914b1d16e98f9739a1587277171

3. Added – Scheduled tasks – User-defined scripts

1587277595494e7781cb1eac153be00bdfae4ef4f140c1587277174
15872775969640f787f310ac7496a3ab2eb50b27998f91587277188

4. Paste the following code

1587277596245da4e69ad6ae6ce47a3910fcf2df679d21587277196

script code

mkdir -p /volume1/tmp/boot
cd /dev
mount -t vfat synoboot1 /volume1/tmp/boot/
mount -t vfat sda /volume1/tmp/boot/
mount -t vfat sda1 /volume1/tmp/boot/
mount -t vfat sda2 /volume1/tmp/boot/
mount -t vfat sda3 /volume1/tmp/boot/
mount -t vfat sda4 /volume1/tmp/boot/
mount -t vfat sdb /volume1/tmp/boot/
mount -t vfat sdb1 /volume1/tmp/boot/
mount -t vfat sdb2 /volume1/tmp/boot/
mount -t vfat sdb3 /volume1/tmp/boot/
mount -t vfat sdb4 /volume1/tmp/boot/
mount -t vfat sdc /volume1/tmp/boot/
mount -t vfat sdc1 /volume1/tmp/boot/
mount -t vfat sdc2 /volume1/tmp/boot/
mount -t vfat sdc3 /volume1/tmp/boot/
mount -t vfat sdc4 /volume1/tmp/boot/
mount -t vfat sdc4 /volume1/tmp/boot/
mount -t vfat sdd /volume1/tmp/boot/
mount -t vfat sdd1 /volume1/tmp/boot/
mount -t vfat sdd2 /volume1/tmp/boot/
mount -t vfat sdd3 /volume1/tmp/boot/
mount -t vfat sdd4 /volume1/tmp/boot/
mount -t vfat sde /volume1/tmp/boot/
mount -t vfat sde1 /volume1/tmp/boot/
mount -t vfat sde2 /volume1/tmp/boot/
mount -t vfat sde3 /volume1/tmp/boot/
mount -t vfat sde4 /volume1/tmp/boot/
mount -t vfat sdf /volume1/tmp/boot/
mount -t vfat sdf1 /volume1/tmp/boot/
mount -t vfat sdf2 /volume1/tmp/boot/
mount -t vfat sdf3 /volume1/tmp/boot/
mount -t vfat sdf4 /volume1/tmp/boot/
mount -t vfat synobios /volume1/tmp/boot/
mount -t vfat synobios1 /volume1/tmp/boot/
mount -t vfat synobios2 /volume1/tmp/boot/
mount -t vfat sdag1 /volume1/tmp/boot/
mount -t vfat sdag2 /volume1/tmp/boot/
mount -t vfat md01 /volume1/tmp/boot/
mount -t vfat md11 /volume1/tmp/boot/
mount -t vfat md21 /volume1/tmp/boot/

5. Select the script you just created and click Run

1587277596164afb9a29703158906c9489f175ea686b61587277200

3. Modify the configuration file

1. Download grub.cfg

158727759646652adcc675aeeb34254bb5461f9e2c8141587277203

Get the grub.cfg file

15872775963367a0f713d4a65b231ed80e162095eb1c31587277372

It is best to make an extra copy to prevent errors that cannot be recovered, especially for customers who do not plan to modify Notepad2.

2. Download Notepad2.exe

Of course, Notepad or other text editors can also modify it, but Notepad2 is easier to use and less easy to correct errors. MAC users can just open and modify it directly as a text file. (Opening an ordinary text editor will be very confusing, and you can only find the location where the text needs to be modified by searching)

3. Open grub.cfg with Notepad2

1587277596900db6814d599db3a4d74e972b7b426c1131587277414

4. After modification, overwrite the upload to the original location.

158727759691190f1c9b11d867ee01c8ee89997ef581c1587277439

5. Look at the upper right corner and it will say the upload is successful. That’s it.

158727759669463cbcf7d9648a10bc1ef6041aba00c841587277469

4. Restart the machine

1. Click the task icon in the upper corner and click Restart

1587277596536584a2306435f3f5fc7d853823a85388c1587277507
158727759641649f296edf931decfd23aa831ee149f561587277531

If the router is set to bind IP to MAC, it will not be found. Please unbind it yourself.

After restarting, changing the MAC address may cause the IP address to change, and the original IP address may not be able to access the machine.

Use Synology Assistant/ Synology Assistant to search again and check whether sn and mac have changed.

If Synology Assistant/ Synology Assistant is not installedSoftware download address

15892946665800f1fe55e5f816b429476dbfab6ab3f241589294447

If it is not correct, please re-run the script and do it again. Remember not to forget to save the file.

2. Log in to the Synology web version again and delete the created shared folders and scheduled tasks.

1587277721956ce9a2689d721ea65aad57008229bfb101587277622
1588727828168094373eb81a896e20c0b360d15d6ba4e1588727821
1587277722274a3b8082caf57e55ba5a12ff2630c34651587277672
1587277722721098286c56dd5756c793baa17f16de3871587277677
15872777226849a97c6c81d2b7e27fbc9517a23dec43e1587277681
158727772266114a96cda51a2aa9bb9e9fb04b349f5391587277686

Note that the IP address may change due to whitewashing and replacing the mac address, which may cause the router’s defense mechanism. Please test your device yourself.

Newsletter Updates

Enter your email address below and subscribe to our newsletter