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.

你可能感兴趣的:(ubuntu,linux,memmap)