Any Tutorial about GRUB2 and PUPPY?
Any Tutorial about GRUB2 and PUPPY?
Hi everybody.
I'd like to install (frugal would be enough) on my system with LINUX and
GRUB2 already there. Almost all the info I've found is about WIN-XP, or
GRUB. What about GRUB2?
I have a 12 Gb EXT4 partition ready to install puppy, but GRUB2 doesn't
see PUPPY if I check the installation with "update-grub". Where can I find info about this installation procedure?
The Universal Installer seems to do fine, but at the end it doesn't work.
Thanks
frktons
I'd like to install (frugal would be enough) on my system with LINUX and
GRUB2 already there. Almost all the info I've found is about WIN-XP, or
GRUB. What about GRUB2?
I have a 12 Gb EXT4 partition ready to install puppy, but GRUB2 doesn't
see PUPPY if I check the installation with "update-grub". Where can I find info about this installation procedure?
The Universal Installer seems to do fine, but at the end it doesn't work.
Thanks
frktons
Might help
I don't know if this will help you but figured the link won't hurt
http://murga-linux.com/puppy/viewtopic. ... b0cff6ce27
http://murga-linux.com/puppy/viewtopic. ... b0cff6ce27
another link i used a long time ago to help me it has all the info just broken up http://murga-linux.com/puppy/viewtopic.php?t=54210
There are many different versions of GRUB2 and it looks like any LINUX distro has its own small differences. I'm actually on a Sabayon Gentoo based
distro and some configuration files of GRUB2 are different than the ones
discussed.
The operation in itself is quite simple. The difficult thing is just finding the
right info. I think I've to read the posts you have suggested, and to use Google if not enough. Let's find some time to invest.
distro and some configuration files of GRUB2 are different than the ones
discussed.
The operation in itself is quite simple. The difficult thing is just finding the
right info. I think I've to read the posts you have suggested, and to use Google if not enough. Let's find some time to invest.
That's a curious thing to say. There is only one Grub2 although of course it may get updates like anything else. Maybe you meant there are many different grub2 configurations.frktons wrote:There are many different versions of GRUB2 and it looks like any LINUX distro has its own small differences.
While it is not Puppy specific I find the best tutorial for Grub2 is here:
http://www.dedoimedo.com/computers/grub-2.html
I've just looked at it again and it was updated at the end of last year to say that grub2 is now at 1.99, amongst other useful info.
It tells you all about booting legacy from grub2 and how you should update grub2 configuration file properly (which is something the contributors to the link posted by rokytnji did not do!).
Yes, it works well with Puppy Linux. I have one of my computers triple booting WinXP, Puppy Linux 5.28, and Ubuntu 12.04.frktons wrote:Do you mean I have to change the grub2 bootloader with Grub4Dos?dk60902 wrote:Have you considered Grub4Dos? It's easier to configure. It works well with Puppy.
The name seems to indicate it works with DOS/WIN filesystem, does it work on Linux?
Re: Might help
frktons that thread does have important explanation of what one need to know.rokytnji wrote:I don't know if this will help you but figured the link won't hurt
http://murga-linux.com/puppy/viewtopic. ... b0cff6ce27
Here is another but old one that maybe has additional info.
http://www.murga-linux.com/puppy/viewtopic.php?t=45961
I think that this one show that we does need a good tutorial on grub2.
http://murga-linux.com/puppy/viewtopic.php?t=77067
As far as I know I have still not got any good answer why some entries
fails to be seen. Maybe the developer of grub2 wants to protect me from
cheating on what code to enter. I hate when they build such "protection"
into their code.
frktons May I kindly ask you to describe here in this thread
what you finally did to make it work for you. Grub2 is easy
when one get it to work but one need to know rather much
before due to the many variables involved.
I edit out some text out due to failure to boot on my netbook Acer D255
Grub2 is more difficult than what I want it to be. And very few cares about it it seems. That is sad.
I use Google Search on Puppy Forum
not an ideal solution though
not an ideal solution though
Considering that many of the actual distros use GRUB2 I'd prefer to stick with
it and slowly find my way through it.
I have to say that things have got more complicated from GRUB to GRUB2,
nevertheless I prefer to stay on the mainstream.
Some weeks ago I tried to install (a full install) Lucid Puppy on an external
USB hard disk, and it worked with GRUB2, maybe because after Puppy I also
installed Linux Mint on another partition of the same external HD.
Probably GRUB2 replaced GRUB and inherited the previous configuration.
Now I've tried a full install with FATSLACKO 5.3.3, without installing GRUB, but GRUB2 didn't see Puppy. When I have some spare time I'll try new ways
and post the results.
it and slowly find my way through it.
I have to say that things have got more complicated from GRUB to GRUB2,
nevertheless I prefer to stay on the mainstream.
Some weeks ago I tried to install (a full install) Lucid Puppy on an external
USB hard disk, and it worked with GRUB2, maybe because after Puppy I also
installed Linux Mint on another partition of the same external HD.
Probably GRUB2 replaced GRUB and inherited the previous configuration.
Now I've tried a full install with FATSLACKO 5.3.3, without installing GRUB, but GRUB2 didn't see Puppy. When I have some spare time I'll try new ways
and post the results.
Grub2 is the easiest imo. Problem is there's too much info out there.
Do you have, /etc/grub.d/XX_custom file?(XX = two digits number)
Do you have /boot/grub/grub.cfg?
It's not too much to study actually...
In short words, you have to:
On your Sabayon, edit your /etc/grub.d/XX_custom file
supposing you installed it on sda5 /frktons
to something like this:
Maybe you have to change the permissions of XX_custom to make it executable. I didn't have to.
go to terminal, type sudo update-grub and it's done.
And of course you have to make all this as administrator.
I think it's worth it, it'll speed up the booting. On my 667MHz laptop it boots in 15secs. When you add the line psubdir=frktons(or whatever directory is puppy savefile on) it'll search for the savefile there. I'd also suggest to have your savefile and puppy on the same folder.
Do you have, /etc/grub.d/XX_custom file?(XX = two digits number)
Do you have /boot/grub/grub.cfg?
It's not too much to study actually...
In short words, you have to:
On your Sabayon, edit your /etc/grub.d/XX_custom file
supposing you installed it on sda5 /frktons
to something like this:
Code: Select all
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Lucid Puppy Linux Frugal" {
set root='(hd0,5)'
linux /frktons/vmlinuz psubdir=frktons
initrd /frktons/initrd.gz
}
EOF
go to terminal, type sudo update-grub and it's done.
And of course you have to make all this as administrator.
I think it's worth it, it'll speed up the booting. On my 667MHz laptop it boots in 15secs. When you add the line psubdir=frktons(or whatever directory is puppy savefile on) it'll search for the savefile there. I'd also suggest to have your savefile and puppy on the same folder.
So far I managed to have a full install on a internal HD partition:
1 - I made a full install on a reserved partition.
2 - I booted to another distro that uses GRUB2.
3 - From the console I executed the "sudo update-grub" command.
4 - I edited as root the /boot/grub/grub.cfg file.
5 - I changed the entry for Puppy from "unknown linux distribution" to
"Puppy Full FatSLACKO 5.3.3"
6 - I rebooted the pc and this time it worked.
GRUB2 sees the partition of Puppy and correctly starts it.
Next step will be the "frugal Puppy". I've still to find a way through my messy
hard disk with a dozen partitions.
I think the problems I'm confronting with are partially generated by the
kind of partitioning I've done.
1 - I made a full install on a reserved partition.
2 - I booted to another distro that uses GRUB2.
3 - From the console I executed the "sudo update-grub" command.
4 - I edited as root the /boot/grub/grub.cfg file.
5 - I changed the entry for Puppy from "unknown linux distribution" to
"Puppy Full FatSLACKO 5.3.3"
6 - I rebooted the pc and this time it worked.
GRUB2 sees the partition of Puppy and correctly starts it.
Next step will be the "frugal Puppy". I've still to find a way through my messy
hard disk with a dozen partitions.
I think the problems I'm confronting with are partially generated by the
kind of partitioning I've done.
The method i said is for afrugal. If you follow it, it'll work.frktons wrote:So far I managed to have a full install on a internal HD partition:
1 - I made a full install on a reserved partition.
2 - I booted to another distro that uses GRUB2.
3 - From the console I executed the "sudo update-grub" command.
4 - I edited as root the /boot/grub/grub.cfg file.
5 - I changed the entry for Puppy from "unknown linux distribution" to
"Puppy Full FatSLACKO 5.3.3"
6 - I rebooted the pc and this time it worked.
GRUB2 sees the partition of Puppy and correctly starts it.
Next step will be the "frugal Puppy". I've still to find a way through my messy
hard disk with a dozen partitions.
I think the problems I'm confronting with are partially generated by the
kind of partitioning I've done.
Nothing as worked so far regarding the "frugal installation".
Grub2 created the following entry in grub.cfg for the "full installation"
and it works fine:
So I tried to use it for the "frugal" as well, but it says "invalid name 'vmlinuz'":
Still trying to find a solution.
Grub2 created the following entry in grub.cfg for the "full installation"
and it works fine:
Code: Select all
menuentry "PUPPY FULL (on /dev/sdd9)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdd,msdos9)'
search --no-floppy --fs-uuid --set=root 4f313f4a-2182-4dfc-a8cf-7007556a6c34
linux /boot/vmlinuz root=/dev/sdd9
}
Code: Select all
menuentry "PUPPY FRUGAL (on /dev/sdb5)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos5)'
search --no-floppy --fs-uuid --set=root 7adfb900-d535-cd01-30ce-b800d535cd01
linux vmlinuz root=/dev/sdb5
}
I guess you know by now.
Manually it is a two layered thing.
First one write here /etc/grub.d/40_custom
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
add your puppy entry(mine looks like this):
Code:
echo "Adding Puppy Linux to GRUB 2"
menuentry "Lucid Puppy Linux 5.28 (frugal on sda6)"{
set root='(hd0,6)'
linux /puppycapi/vmlinuz
initrd /puppycapi/initrd.gz
}
Try to edit your version so it is more in line with the one above.
Change the (hd0,6) to what you have. The counting is different from
Grub legacy so you have to find that out by comparing how they do it above.
Then the second thing is to do the grub update command in the terminal on the linux that owns the grub2
or you should add the above code manually into both /etc/grub.d/40_custom and the grub.conf file where ever that one is placed.
And then to not make the grub update. And repair it if grub does get
updated due to your primary linux update itself. Which they tend to do
after a security upgrade.
I am a total noob so take my advice a bit like a hint and not a true step for step thing.
Manually it is a two layered thing.
First one write here /etc/grub.d/40_custom
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
add your puppy entry(mine looks like this):
Code:
echo "Adding Puppy Linux to GRUB 2"
menuentry "Lucid Puppy Linux 5.28 (frugal on sda6)"{
set root='(hd0,6)'
linux /puppycapi/vmlinuz
initrd /puppycapi/initrd.gz
}
Try to edit your version so it is more in line with the one above.
Change the (hd0,6) to what you have. The counting is different from
Grub legacy so you have to find that out by comparing how they do it above.
Then the second thing is to do the grub update command in the terminal on the linux that owns the grub2
or you should add the above code manually into both /etc/grub.d/40_custom and the grub.conf file where ever that one is placed.
And then to not make the grub update. And repair it if grub does get
updated due to your primary linux update itself. Which they tend to do
after a security upgrade.
I am a total noob so take my advice a bit like a hint and not a true step for step thing.
I use Google Search on Puppy Forum
not an ideal solution though
not an ideal solution though
My frugal is on sdb5, so I translated:nooby wrote: ...
First one write here /etc/grub.d/40_custom
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
add your puppy entry(mine looks like this):
Code:
echo "Adding Puppy Linux to GRUB 2"
menuentry "Lucid Puppy Linux 5.28 (frugal on sda6)"{
set root='(hd0,6)'
linux /puppycapi/vmlinuz
initrd /puppycapi/initrd.gz
}
Try to edit your version so it is more in line with the one above.
Change the (hd0,6) to what you have. The counting is different from
Grub legacy so you have to find that out by comparing how they do it above.
Then the second thing is to do the grub update command in the terminal on the linux that owns the grub2...
.
Code: Select all
set root='(hd0,6)'
Code: Select all
set root='(hd1,5)'
Puppy I have an "unknown partition" answer.
The theory is simple, the practice sometime is not.
A solution that I've found by trial and errors is:
1 - created a /boot folder in the partition with frugal puppy
2 - moved inside the 3 usual files
3 - edited the grub.cfg file
4 - inserted the code for "frugal puppy" in this way:
5 - rebooted and tried. OK it works, at the end I got it.
1 - created a /boot folder in the partition with frugal puppy
2 - moved inside the 3 usual files
3 - edited the grub.cfg file
4 - inserted the code for "frugal puppy" in this way:
Code: Select all
menuentry "PUPPY FRUGAL (on /dev/sdb5)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sdb,msdos5)'
search --no-floppy --fs-uuid --set=root 7adfb900-d535-cd01-30ce-b800d535cd01
linux /boot/vmlinuz root=/dev/sdb5
initrd /boot/initrd.gz root=/dev/sdb5
}