The time now is Thu 23 May 2013, 11:58
All times are UTC - 4 |
| Author |
Message |
yorkiesnorkie

Joined: 04 Jun 2007 Posts: 505 Location: George's Island
|
Posted: Fri 11 Jan 2013, 07:09 Post subject:
Adding Puppy Linux to Ubuntu's Grub2 Menu Subject description: Adding Puppy Linux 5.2.8 to 40_Custom |
|
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:
| Code: | #!/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
}
|
I edited 40_custom from within Ubuntu, which required a bit of command line work.
At the terminal I entered:
| Code: | | sudo gedit etc/grub.d/40_custom |
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
_________________ www.busygamemaster.com
Last edited by yorkiesnorkie on Mon 14 Jan 2013, 10:20; edited 1 time in total
|
|
Back to top
|
|
 |
yorkiesnorkie

Joined: 04 Jun 2007 Posts: 505 Location: George's Island
|
Posted: Mon 14 Jan 2013, 10:18 Post subject:
|
|
The gksudo in ubuntu doesn't seem to be necessary. I just used sudo, and that works. e.g.
| Code: | | sudo geany etc/grub.d/40_custom |
and
I noticed that in the boot stanza hda0,1 is sda1, apparently the numbers now match your drive, sda2 would be hda0,2.
_________________ www.busygamemaster.com
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|