Ubuntu Memmap

https://askubuntu.com/questions/1435576/how-to-block-ubuntu-from-using-certain-memory-area

  GRUB_DEFAULT=0
  GRUB_TIMEOUT_STYLE=hidden
  GRUB_TIMEOUT=0
  GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash memmap=8K\\\$0x00000005A00C000,4K\\\$0x00000005A00E000,8K\\\$0x00000005C00C000,4K\\\$0x00000005C00E000"
  GRUB_CMDLINE_LINUX=""

THEN: SUDO UPDATE-GRUB

The computer accepted it and i was able to boot into ubuntu., so i went to /proc/iomem and opened, it, and i saw reserved records for 00000005A00C000 and 00000005A00E000 and 00000005C00C000 and 00000005C00E000

Update 2

I see what you're struggling it is with the syntax. What you're struggling with is with escape codes.

The backlash character \ is used to escape reserved keywords.

If you want to type $, then you need to type \$ because otherwise $ has a special meaning.

If you want to type \, then you need to type \\.

And if you want to type \& then you need to type \\\$

Sometimes it gets weird because when you are editing /etc/default/grub some shell script tries to interpret the text; which means you have to escape it twice (once for the bash script, another for grub). That means that what you want to type is either (try it until the correct syntax appears fine in cat /proc/cmdline, or when hitting 'e' while selecting choices inside GRUB):

  • 4K\$0x00000005A00E000
    • Try this just in case, but I don't think it will work
  • 4K\\\$0x00000005A00E000
    • This escaping will make the script to see 4K\$0x00000005A00E000 and pass it to grub
    • Grub will see 4K\$0x00000005A00E000 and pass 4K$0x00000005A00E000 to the Kernel.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值