Dual Boot Puppy Linux With Ubuntu
Lately I tried to install Puppy Linux alongside with my Ubuntu. It is not difficult at all, however it was not immediately obvious how to do it. I am noting down the steps, in case they may be useful for somebody else.
- First of all, download lupu-528.003.iso from: http://distro.ibiblio.org/pub/linux/distributions/puppylinux/puppy-5.2.8/
- Then mount it and copy its files to the directory /puppy/ on the root (/):
mkdir puppy_iso sudo mount -o loop lupu_528.003.iso puppy_iso/ ls puppy_iso/ sudo mkdir /puppy sudo cp puppy_iso/vmlinuz /puppy/ sudo cp puppy_iso/initrd.gz /puppy/ sudo cp puppy_iso/lupu_528.sfs /puppy/ sudo umount puppy_iso/ rmdir puppy_iso/
The installation of puppy is already finished, but we need a way to boot it. We can do this by adding a new menu entry on grub. It can be done like this:
- Create a new file on /etc/grub.d/:
cd /etc/grub.d/ sudo cp 40_custom 07_puppy sudo vim 07_puppy
- Append these lines to 07_puppy:
menuentry 'Puppy Linux' --class puppy --class gnu-linux --class os { set root=(hd0,msdos8) linux /puppy/vmlinuz initrd /puppy/initrd.gz } - Update the grub config: sudo update-grub
- Verify that the grub menuentry is correct: vim /boot/grub/grub.cfg
Make sure that the root of Puppy Linux is the same as that of Ubuntu, for example: set root=(hd0,msdos8) If not, then correct /etc/grub.d/07_puppy and run again update-grub .
Note: Ubuntu uses GRUB2, but some other systems may still have the old GRUB. In this case, you have to edit manually /boot/grub/grub.cfg and add some lines like this:
title Puppy Linux rootnoverify (hd0,7) kernel /puppy/vmlinuz root=/dev/ram0 initrd /puppy/initrd.gz
Now reboot the PC and enjoy Puppy.
References:
