Puppy recommended Grub2 text

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
oliverjames
Posts: 18
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 2 times
Been thanked: 5 times

Puppy recommended Grub2 text

Post by oliverjames »

I'm enjoying the new Fossapup as well as the Bionicpup.

I did a frugal install of both and each time was presented with a recommended Grub (legacy) text.

Code: Select all

title Puppy Linux - fossapup64 9.5 frugal in sda5 dir fossapup649.5frugal
#root (hd0,0) <-- GRUB legacy,
find --set-root uuid () 27d9131c-fb41-4b71-9203-a345b7be26c2
kernel /fossapup649.5frugal/vmlinuz pmedia=atahd psubdir=fossapup649.5frugal
initrd /fossapup649.5frugal/initrd.gz
After some tweaking this is the final script that worked for me in Grub2

Code: Select all

menuentry 'Puppy Linux - Fossapup64 9.5 frugal' {
#root (hd0,5) <-- GRUB legacy, ex: (hd1,5), etc..
search --no-floppy --fs-uuid --set=root 27d9131c-fb41-4b71-9203-a345b7be26c2
linux /fossapup649.5/vmlinuz pmedia=atahd psubdir=/fossapup649.5
initrd /fossapup649.5/initrd.gz
}
this was pasted into the /etc/grub.d/40_custom file, via Geany, then, in the OS that owns the Grub2 installation, opened a terminal and ran sudo update-grub. Did the same for Bionicpup, with changes to the frugal install directory name. All works nicely.

Don't forget to run blkid in a terminal to find the correct uuid for the disk partition where your Puppy is located, then replace 27d9131c-fb41-4b71-9203-a345b7be26c2 with the correct one.

Many thanks to the Puppy team. Your OS versions are a pleasure to work with.
Last edited by oliverjames on Sat Oct 03, 2020 1:09 pm, edited 1 time in total.
User avatar
Jafadmin
Posts: 379
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: Puppy recommended Grub2 text

Post by Jafadmin »

You can remove that "root" comment line.

Code: Select all

menuentry 'Puppy Linux - Fossapup64 9.5 frugal' {
  search --no-floppy --fs-uuid --set=root 27d9131c-fb41-4b71-9203-a345b7be26c2
  linux /fossapup649.5/vmlinuz pmedia=atahd psubdir=/fossapup649.5
  initrd /fossapup649.5/initrd.gz
}
oliverjames
Posts: 18
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Puppy recommended Grub2 text

Post by oliverjames »

Jafadmin wrote: Sat Oct 03, 2020 10:03 am You can remove that "root" comment line.

Code: Select all

menuentry 'Puppy Linux - Fossapup64 9.5 frugal' {
  search --no-floppy --fs-uuid --set=root 27d9131c-fb41-4b71-9203-a345b7be26c2
  linux /fossapup649.5/vmlinuz pmedia=atahd psubdir=/fossapup649.5
  initrd /fossapup649.5/initrd.gz
}
Of course one can remove it rather than adding the # to mask it.
User avatar
bigpup
Moderator
Posts: 6524
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 791 times
Been thanked: 1356 times

Re: Puppy recommended Grub2 text

Post by bigpup »

I did a frugal install of both and each time was presented with a recommended Grub (legacy) text.
What was giving you this wrong information?

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Geek3579
Posts: 254
Joined: Sat Jul 18, 2020 1:07 pm
Has thanked: 73 times
Been thanked: 64 times

Re: Puppy recommended Grub2 text

Post by Geek3579 »

I agree that the GRUB2 code provided works well with the UUID included, and makes the USB or whatever drive much more portable and IMO, more easily booted. And I often use a host OS with GRUB2, such as MX-Linux.

But instead of using the custom40 file which requires a grub update from the command line to be made operational, I place the code in a custom.cfg file in the /boot/grub folder. As it is not a BASH executable but a text file, it only contains the GRUB2 code, in fact, as many as required. The new code(s) will automatically be picked up in the GRUB process and displayed i the boot menu.

In addition, this method makes for a very quick process to add a new frugal Puppy OS or modify the existing GRUB2 script.
oliverjames
Posts: 18
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Puppy recommended Grub2 text

Post by oliverjames »

bigpup wrote: Sat Oct 03, 2020 7:25 pm
I did a frugal install of both and each time was presented with a recommended Grub (legacy) text.
What was giving you this wrong information?
I cannot say that the information was wrong. This is the text that the OS displayed after the Fossapup frugal install (Bionicpup message similar):

Code: Select all

If you have GRUB/GRUB4DOS installed, find the 'menu.lst' file (usually in /boot
in the partition in which GRUB is installed) and insert this:

title Puppy Linux - fossapup64 9.5 frugal in sda5 dir fossapup649.5frugal
#root (hd0,0) <-- GRUB legacy, ex: (hd1,0), etc..
find --set-root uuid () 27d9131c-fb41-4b71-9203-a345b7be26c2
kernel /fossapup649.5frugal/vmlinuz pmedia=atahd psubdir=fossapup649.5frugal
initrd /fossapup649.5frugal/initrd.gz

-----
For GRUB you must set root (hdX,X) to the correct values and
comment/remove uuid. root (hdX,X) is also supported by grub4dos.. 
I installed two Puppy Os (Bionic and Fossa) on a partition of the disk that houses my usual OS, Mint Linux. ML's Grub2 controls boot, so I copied the above given text into 40-custom, tried various mods until it booted, and posted a version that worked for me.
Post Reply

Return to “Beginners Help”