How I installed grub-1.96 on Puppy 4.1.1 root partition

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
Linux_oid
Posts: 40
Joined: Tue 27 Mar 2007, 04:23

How I installed grub-1.96 on Puppy 4.1.1 root partition

#1 Post by Linux_oid »

I used Mandriva 2009 (/dev/sda5) to compile grub2. (There is a thread
http://forum.mandriva.com/viewtopic.php ... 0c34e5e5db 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
:)

Post Reply