How to change grub.cfg?

MarcusF · 4352

MarcusF

  • Junior Member
  • **
    • Posts: 55
    • Karma: +11/-0
on: July 14, 2022, 09:11:31 AM
I'm running AROS in a VM and would like to permanently add an option with my monitor resolution to the grub loader.

I found grub.cfg in AROS:Arch/pc/grub/grub.cfg but the changes I make do not show up when I restart, am I editing the wrong file?



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #1 on: July 14, 2022, 09:22:27 AM
Did you also set the Virtual Machine to that video resolution?


MarcusF

  • Junior Member
  • **
    • Posts: 55
    • Karma: +11/-0
Reply #2 on: July 14, 2022, 09:33:26 AM
When booting, if I edit the launch option in Grub it works and sets the resolution I want.

But I'm trying to add my resolution to the launcher and set it as default, but my changes are not showing up



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #3 on: July 14, 2022, 09:56:29 AM
I don't know if I understood correctly, I use VMWare Player, and normally I use 1024x768 settings, now for testing I modicated the resolution in GRUB to 1280x1024 permanently and everything worked, these are the affected items I midified


Code: [Select]
# Set default boot entry as VESA Gfx @ 1280x1024-32bpp
set default=4

}
menuentry "AROS (true colour VESA graphics: 1280x1024)" {
    multiboot /Arch/pc/bootstrap.gz vesa=1280x1024 ATA=32bit nomonitors


I forgot, the VM must also be set to 1280x1024, or use the option "Use host setting for Monitors"
« Last Edit: July 14, 2022, 10:38:15 AM by AMIGASYSTEM »



MarcusF

  • Junior Member
  • **
    • Posts: 55
    • Karma: +11/-0
Reply #4 on: July 14, 2022, 10:31:07 AM
What's the path to the file you edited?
Did you have to do anything else, or just edit and save the grub.cfg?



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #5 on: July 14, 2022, 10:43:27 AM
I just edited the file "grub.cfg" as described above and that's all, and configured the VM  "Use host setting for Monitors" or set 1280x1024, done this on Wanderer also the Screenmode was available the 1240x1024
« Last Edit: July 14, 2022, 11:45:27 AM by AMIGASYSTEM »



Amiwell

  • Legendary Member
  • *****
    • Posts: 2616
    • Karma: +35/-4
  • Peace
Reply #6 on: July 14, 2022, 11:04:41 AM
What's the path to the file you edited?
Did you have to do anything else, or just edit and save the grub.cfg?

the path is sys:arch/pc/grub/



MarcusF

  • Junior Member
  • **
    • Posts: 55
    • Karma: +11/-0
Reply #7 on: July 14, 2022, 11:22:07 AM
arghhhh it worked. I had forgot to remove the ISO file so it was launching from that and not the disc grub.



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3762
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #8 on: July 14, 2022, 11:25:39 AM
It always happens like this, the resolution of the problem is before our eyes and we don't see it :)