[SOLVED] How to move Grub2 to a different partition AND update within Puppy.

For discussions about programming, and for programming questions and advice


Moderator: Forum moderators

Post Reply
sinc
Posts: 16
Joined: Thu Aug 11, 2022 3:44 pm
Has thanked: 7 times

[SOLVED] How to move Grub2 to a different partition AND update within Puppy.

Post by sinc »

I've installed Grub2 through Debian, as I'm not aware of any other way than installing a full distro. However, when I experiment with different Puppy Linux versions, I need to modify the grub.d folder and then boot into Debian to run update-grub. This process is quite inconvenient.

I'm wondering if there's a way to move the grub.d folder to a separate partition (ideally my windows EFI partition) while still being able to update grub without booting into Debian every time.

Any help or suggestions would be greatly appreciated!

Last edited by sinc on Tue May 21, 2024 8:09 pm, edited 1 time in total.
williwaw
Posts: 1909
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 168 times
Been thanked: 354 times

Re: How to move Grub2 to a different partition AND update within Puppy.

Post by williwaw »

are you using debian, and want to keep debian grub2 maintained and continue to use grub-update for use with your debian install?

there are a few different ways besides installing debian to get grub2 installed, and many here at puppy simply write their own grub.cfg entries and do not use grub-update

the problem using grub-update is that it will overwrite manual grub.cgf entries when it runs
if you wish to use grub-update you can keep a file with your puppy grub entries and use grub-update and 40_custom.

40_custom is an open script where users can insert custom entries to create additional menu listings on the boot menu.

sinc
Posts: 16
Joined: Thu Aug 11, 2022 3:44 pm
Has thanked: 7 times

Re: How to move Grub2 to a different partition AND update within Puppy.

Post by sinc »

Thanks so much for your resposne.

I'm not 100% sure I follow your suggestions.

Regarding question number 1, i occasionally use Debian but primarily focus on using various Puppies. I am not worried about deleting my current version of Debian, I could do that (just want to option to add it back later).

The grub.cfg files that puppy produces doesn't configure grub2. Those are for different versions of grub but I would still like to use grub-update as I want to use Grub2.

I do use custom scripts in 40_custom (though I've renamed it to 09_custom bc I want my Puppy Linux version to appear first in my Grub menu). The main inconvenience is that I update the custom menu script for puppy but then have to reboot into debian to update-grub.

User avatar
rcrsn51
Posts: 1380
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 355 times

Re: How to move Grub2 to a different partition AND update within Puppy.

Post by rcrsn51 »

See here #9. The idea is to put a single permanent entry in your main Debian GRUB menu that uses the "configfile" command to run another GRUB menu with multiple Puppy entries.

So you can modify the Puppy menu without having to change the main menu.

If your Puppies are still using the old menu.lst format, use "legacy_configfile" instead.

sinc
Posts: 16
Joined: Thu Aug 11, 2022 3:44 pm
Has thanked: 7 times

Re: How to move Grub2 to a different partition AND update within Puppy.

Post by sinc »

Ahhhh... thank you so much @rcrsn51 ... now i can finally adjust my Puppy logins without having to reboot to Debian every single time! I would call this thread SOLVED but I can't figure out how to change the title of the thread. SMH, pathetic. Thank you again!

User avatar
fredx181
Posts: 2997
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 364 times
Been thanked: 1272 times
Contact:

Re: How to move Grub2 to a different partition AND update within Puppy.

Post by fredx181 »

sinc wrote: Thu May 16, 2024 5:38 pm

Ahhhh... thank you so much @rcrsn51 ... now i can finally adjust my Puppy logins without having to reboot to Debian every single time! I would call this thread SOLVED but I can't figure out how to change the title of the thread. SMH, pathetic. Thank you again!

Just edit your first post (by clicking the "Edit Post" button) and modify the subject title by adding e.g. [SOLVED] .

Post Reply

Return to “Programming”