--FRUGAL install--
** backup important data from the USB stick to another place **
PLUG THE USB STICK IN
Search for the stick "device" name, for example /dev/sdc (check with gparted or dmesg).
INSTALL THE MBR TO THE USB STICK
For 32 bits linux :
Code: Select all
# dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/mbr.bin of=/dev/sdc
Code: Select all
# dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/mbr.bin of=/dev/sdc
For example partition /dev/sdc3 (can be FAT12/16/32, NTFS, ext2/3/4, Btrfs)
- Set the partition to "BOOTABLE" (with gparted or another tool)
- Mount the partition :
Code: Select all
# mkdir -p /mnt/sdc3
# mount /dev/sdc3 /mnt/sdc3
Code: Select all
# mkdir -p /mnt/sdc3/boot
# mkdir -p /mnt/sdc3/boot/extlinux
Code: Select all
# extlinux -i /mnt/sdc3/boot/extlinux
- Download the puppy linux iso, for example Precise-5.7.1
- Mount the puppy linux iso (click it in ROX for example, or use mount)
- Create a new directory "Prec-5.7.1" in mounted partition /mnt/sdc3/
- Copy all files from iso to folder in partition /mnt/sdc3/Prec-5.7.1/
You can do this with as many puppies as you like to. For example puppy-2 .
CREATE THE CONFIGURATION FILE
- Create a new blank file called extlinux.conf in /mnt/sdc3/boot/extlinux/ :
Code: Select all
TIMEOUT 100
PROMPT 1
DEFAULT distro1
SAY Type distro1 for Precise 5.7.1
SAY Type distro2 for Puppy 2
LABEL distro1
KERNEL /Prec-5.7.1/vmlinuz
APPEND initrd=/Prec-5.7.1/initrd.gz
LABEL distro2
KERNEL /puppy-2/vmlinuz
APPEND initrd=/puppy-2/initrd.gz
Code: Select all
# umount /dev/sdc3
-