ssh到飞牛nas ,然后输入sudo -i,然后输入密码后,输入nano /etc/default/grub回车,清除所有内容,然后复制以下整段内容后修改以下两个字段
1、GRUB_DEFAULT="gnulinux-6.12.18-trim-advanced-29f0b3be-eff8-4a3a-87b8-edccb6485f00",后面的数字应该是唯一识别码,随便改动一两个数字即可
2、GRUB_CMDLINE_LINUX_DEFAULT="quiet i915.force_probe=7d55 intel_iommu=on iommu=pt" 正常只要quiet i915.force_probe=7d55,如果是用命令
行开了虚拟机直通的需要保留后端是intel就这个,amd改成amd即可 intel_iommu=on iommu=pt 或者 amd_iommu=on iommu=pt
修改完成后按 ctrl+o回车, 然后按ctrl+x,输入 update-grub回车,会提升更新成功,输入reboot重启后web页面进去更新就可以了
文本文件在链接记事本里[修改nas grub解决反复升级的问题](飞牛私有云分享【飞牛nas grub更新.txt】,点击链接下载文件,App打开可转存到NAS:https://s.fnnas.net/s/393f0fb32256477fb1)
If you change this file, run 'update-grub' afterwards to update
/boot/grub/grub.cfg.
For full documentation of the options in this file, see:
info -f grub -n 'Simple configuration'
GRUB_DEFAULT="gnulinux-6.12.18-trim-advanced-29f0b3be-eff8-4a3a-87b8-edccb6485f00"
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian
GRUB_CMDLINE_LINUX_DEFAULT="quiet i915.force_probe=7d55 *~~intel_iommu=on iommu=pt"~~*
GRUB_CMDLINE_LINUX="modprobe.blacklist=pcspkr"
If your com**r has multiple operating systems installed, then you
probably want to run os-prober. However, if your com**r is a host
for guest OSes installed via LVM or raw disk devices, running
os-prober can cause damage to those guest OSes as it mounts
filesystems to look for things.
#GRUB_DISABLE_OS_PROBER=false
Uncomment to enable BadRAM filtering, modify to suit your needs
This works with Linux (no patch required) and with any kernel that obtains
the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
Uncomment to disable graphical terminal
GRUB_TERMINAL=console
GRUB_GFXPAYLOAD_LINUX=text
The resolution used on graphical terminal
note that you can use only modes which your graphic card supports via VBE
you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"