Adding Puppy Linux to Ubuntu's Grub2 Menu
Posted: Fri 11 Jan 2013, 11:09
Hi,
On the shoulders of giants, I added puppy linux 5.2.8 to my Ubuntu grub2 menu. After I installed Ubuntu 12.04 LTS I discovered that the usual grub menu installed with puppy linux was no longer working. Instead, I now had Grub2, and no entry for puppy linux.
Just to be clear, I have a frugal installation of Puppy528 on sda1, the windows ntfs partition.
After a bit of research I learned that the entry for puppy linux can be entered into the file etc/grub.d/40_custom, it looks like this:
I edited 40_custom from within Ubuntu, which required a bit of command line work.
At the terminal I entered:
This causes Ubutu to ask for the password. Enter it and press enter.
I have geany installed, so the gedit part could be substituted with another program.
I pasted in the boot stanza, and saved the file. Then you have to enter another command
This updates the grub2 menu. When you reboot Puppy Linux is now the last entry in the menu.
I hope this is clear enough!
Yorkiesnorkie
On the shoulders of giants, I added puppy linux 5.2.8 to my Ubuntu grub2 menu. After I installed Ubuntu 12.04 LTS I discovered that the usual grub menu installed with puppy linux was no longer working. Instead, I now had Grub2, and no entry for puppy linux.
Just to be clear, I have a frugal installation of Puppy528 on sda1, the windows ntfs partition.
After a bit of research I learned that the entry for puppy linux can be entered into the file etc/grub.d/40_custom, it looks 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 "Puppy Linux Lupu 528 on sda1" {
set root=(hd0,1)
linux /puppy528/vmlinuz root=/dev/sda1 psubdir=puppy528
initrd /puppy528/initrd.gz
}
At the terminal I entered:
Code: Select all
sudo gedit etc/grub.d/40_custom
I have geany installed, so the gedit part could be substituted with another program.
I pasted in the boot stanza, and saved the file. Then you have to enter another command
Code: Select all
sudo update-grub
I hope this is clear enough!
Yorkiesnorkie