hy im trying to install arch as the third os on my windows / ubuntu machine and i cant figure it out how to set the grub bootloader i have already read the friendly manual but probably also due to my non native English origins i coudnt find an answer to my question witch is during the arch install should i reinstall grub with grub-install ? i would prefer to keep the old (ubuntu) one also because its already customized but unfortunately i cant…if i dont install it i dont have the directory /boot/grub in witch i should place the grub.conf file so should i just create this directory ? i have tried with os-prober correctly activated to generate a new grub.conf but it doesnt pick up the arch install …, what are the files i must have to make grub recognize those partitions as a new os to witch assign a new boot entry …

  • DNOS@reddthat.comOP
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Thanks a lot man I would love to tell you I understand everything but unfortunately the only part that I got was the first and I don’t have a separate boot partition :( so what do you mean by stick in the ubuntu boot block into grub config I have to reinstall grub from arch then I update it making a new .Cfg and then remaining in the arch install I should find and add the other two boot entries ? Should I delete grub before installing it again ? Im asking because I think I have already tried to install it and i believe I was still using the ubuntu one … What about updating grub on the Ubuntu side how am I going to boot into it ? Thanks a lot man I don’t want to waste your time u gave me some nice homeworks I will be back in a few days …

    • silent_water [she/her]@hexbear.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      no worries! you want a separate boot partition on your hard disk to make this all easier. if you don’t have one already, I would make one, then go back through the arch install. at the end, there should be instructions on how to update the grub.cfg for arch. you’ll need to do the exact same thing for Ubuntu. the only hard part is that Ubuntu is set up right now to not mount a /boot partition so when you install updates, the updated boot images won’t get installed in the right place. so you need to boot into Ubuntu first and change /etc/fstab so it mounts the boot partition to /boot. then you need to run:

      sudo update-bootloader --refresh
      

      then you can go back and do the arch install with the same /boot partition and run grub-install. there’s detailed instructions on how to change the boot partition here and the ArchWiki should have the rest.

      • DNOS@reddthat.comOP
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Thank you so much it’s like a couple of weeks I’m going back and forth on this topic and this is the biggest step I have done … I will surely let you know if I successfully end up bricking my PC :)

        Btw I’m sorry for any previous gender errors I have just noticed the correct pronouns 😅