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   <b>READ-ONLY-MODE: PLEASE DO NOT LOGIN</b>READ-ONLY-MODE: PLEASE DO NOT LOGIN 

The time now is Sat 08 Aug 2020, 15:00
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How I installed grub-1.96 on Puppy 4.1.1 root partition
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
Linux_oid

Joined: 27 Mar 2007
Posts: 40

PostPosted: Mon 01 Dec 2008, 17:04    Post subject:  How I installed grub-1.96 on Puppy 4.1.1 root partition
Subject description: Grub 2 was compiled for i386 on Mandriva 2009
 

I used Mandriva 2009 (/dev/sda5) to compile grub2. (There is a thread
http://forum.mandriva.com/viewtopic.php?p=596401&sid=3541a2fe73e6c624ae20710c34e5e5db in Mandriva's forum). To install grub 2 on Puppy I've done some changes


I. Compiling grub2 on Mandriva's partition

1 $ ./configure --prefix=/boot/grub2
2 $ make
3 # make install


Mount Puppy partition
4 # mount /dev/sda8 /mnt

Liblzo2.so.2 is a link to liblzo2.so.2.0.0. I copied both.
5 # cp /usr/lib/liblzo2.so.2 /mnt/usr/lib/liblzo2.so.2
6 # cp /usr/lib/liblzo2.so.2.0.0 /mnt/usr/lib/liblzo2.so.2.0.0

Copy whole folder grub2
7 # cp -r /boot/grub2 /mnt/boot/grub2

II Reboot and login to Puppy

Modifications

Modify /boot/grub2/sbin/update-grub script

change (line 73) from
GRUB_DEVICE="`grub-probe --target=device /`"
to
GRUB_DEVICE="`/home/grub2/sbin/grub-probe --target=device /`"

Open rox-filer, go to /boot directory and rename vmlinuz to vmlinuz-puppy411 (/boot/grub2/sbin/10_linux script us looking for format "/boot/vmlinu[xz]-* /vmlinu[xz]-*" so I used -puppy411. I copied initrd.gz to /boot and rename it initrd-puppy411.gz but this was just in case)

III Installing GRUB 2 from Puppy 4.1.1

8 # /boot/grub2/sbin/update-grub
9 # /boot/grub2/sbin/grub-install /dev/sda /dev/sda8
10 # /boot/grub2/sbin/grub-setup /dev/sda8
(I've seen on debian wiki that update-grub should be the last script to execute.)

IV After installation

I have grub-0.97 on MBR and menu.lst file on /dev/sda7.

To boot Puppy, I used to use section like this

title Puppy 4.1.1 (on /dev/sda8)
root (hd0,7)
kernel /boot/vmlinuz root=/dev/sda8 ro vga=normal


Now I change it to

title Puppy Linux 4.1.1 (on /dev/sda8)
root (hd0,7)
chainloader +1



Booting is one step longer now: GRUB Legacy>GRUB 2>Puppy 4.1.1.

_________________
I'll try
Smile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
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.0351s ][ Queries: 11 (0.0082s) ][ GZIP on ]