Page 1 of 1

Puppy recommended Grub2 text

Posted: Sat Oct 03, 2020 9:52 am
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.

Re: Puppy recommended Grub2 text

Posted: Sat Oct 03, 2020 10:03 am
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
}

Re: Puppy recommended Grub2 text

Posted: Sat Oct 03, 2020 11:18 am
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.

Re: Puppy recommended Grub2 text

Posted: Sat Oct 03, 2020 7:25 pm
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?

Re: Puppy recommended Grub2 text

Posted: Sun Oct 04, 2020 6:08 am
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.

Re: Puppy recommended Grub2 text

Posted: Sun Oct 04, 2020 6:40 pm
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.