欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

群晖网页直通车粉墨登场

最编程 2024-03-24 07:25:12
...

网页洗白不是100%成功的,如果无法出现grub文件,请使用对应安装方法的备用洗白方案。

目前测试下来,PVE安装和二合一重隐藏文件的两种引导无法显示出grub文件。

登录群晖打开File Station然后如图操作

脚本代码

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/

下载grub.cfg

得到 grub.cfg 文件,最好复制多一个复本出来防止改错无法恢复

记事本或者其它文本编辑器也能修改只是Notepad2比较好用不容易改错,MAC用户直接当文本文件打开修改就行了。(普通文本编辑器打开会非常混乱只能通过搜索才能找到需要修改文本的位置)

Notepad2下载地址:

资源文件下载

来源:百度网盘 | 提取码:lbb9

立即下载

用它打开 grub.cfg

无论您是多少个网口,仅需要修改mac1,如有mac2、mac3等等,可以直接删除。

改完之后 把上传到原来的位置覆盖

看右上角 提示上传成功,就可以了

重启机器

路由器有设置ip绑定MAC会造成无法搜索到请自行解除绑定。

重启好之后

由于改了MAC地址可能会造成IP地址改变,原来的ip地址可能会访问不到机器。

用Synology Assistant/群晖助手 重新搜索 ,核对一下sn和mac是不是已经变了