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