参考:https://superuser.com/questions/152921/how-to-boot-with-mem-1024m-argument-using-grub-ubuntu-10-04

 

With Ubuntu and Debian-based installations that use Grub2, you shouldn't edit /boot/grub/grub.cfgdirectly. That file is configured by running the update-grub command, which happens automatically at various times (like when installing new kernel images).

Instead, you need to add kernel commandline options to the GRUB_CMDLINE_LINUX or GRUB_CMDLINE_LINUX_DEFAULT variables in /etc/default/grub:

# these options don't get added to recovery boot entry
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

# these options get added to both standard and recovery boot entries
GRUB_CMDLINE_LINUX="var1 var2 mem=1024m"

Once you've finished editing, don't forget to generate a fresh Grub menu with the changes:

sudo update-grub

相关文章:

  • 2021-12-14
  • 2021-09-17
  • 2021-08-23
  • 2021-03-28
  • 2021-11-29
  • 2022-01-19
  • 2021-10-17
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2021-10-12
相关资源
相似解决方案