Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Sep 2014, 12:10
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
Adding Puppy Linux to Ubuntu's Grub2 Menu
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
yorkiesnorkie


Joined: 04 Jun 2007
Posts: 505
Location: George's Island

PostPosted: 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

Code:
sudo update-grub


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
Smile

_________________
www.busygamemaster.com

Last edited by yorkiesnorkie on Mon 14 Jan 2013, 10:20; edited 1 time in total
Back to top
View user's profile Send private message 
yorkiesnorkie


Joined: 04 Jun 2007
Posts: 505
Location: George's Island

PostPosted: 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
Code:
sudo update-grub


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
View user's profile Send private message 
.israel.

Joined: 06 Jan 2014
Posts: 6

PostPosted: Sat 11 Jan 2014, 21:47    Post subject:  

sudo is not recommended when running a GUI app.
http://www.psychocats.net/ubuntu/graphicalsudo

basically some changes can cause HUGE problems if you use sudo instead of gksu (i.e. root owning things). On puppy it isn't an issue because you are root and do not need su or gksu or sudo Smile
p.s. thanks for the post, this is great info for everyone!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

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
[ Time: 0.0465s ][ Queries: 12 (0.0034s) ][ GZIP on ]