Porteus Linux is a fast and lightweight operating system distributed as a live CD iso file. While many users prefer to run it directly from a CD or installed to a USB stick, you may want to put it on your hard drive as an option in a dual boot or multiboot setup. This is called a "frugal install" using an iso image or files copied from an image. It makes a perfect companion to larger Linux distributions such as Ubuntu, Mint,or Arch Linux. Use the instructions below to easly configure an existing Linux system to optionally boot and run Porteus.
It is suggested to create a disk partition separate from the computer's main system to hold Porteus and other special frugal installs. This will ensure that updates or clean-ups for one system do not damage or clutter the other one. The webmaster has accidentally erased frugal installs kept on his main system during overzealous maintenance. Take the lesson and keep Porteus on a different partition...
In the example used here, the computer has one hard drive, and it is divided into two partitions. The main system runs on the first partition and the second partition serves as storage for documents, backups, and frugal installation of Porteus Linux. Be aware that the drive and partitioning scheme is peculiar: the first drive is "hd0" while the first partition is numbered "1" and so forth.
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry 'Porteus Linux - Normal User' { insmod ext2 set isofile="/porteus/porteus-5.0.2.iso" loopback loop (hd0,2) linux (loop)/boot/syslinux/vmlinuz nomagic base_only norootcopy zram=60% noauto timezone=GMT-0 login=guest initrd (loop)/boot/syslinux/initrd.xz } menuentry 'Porteus Linux - Root User' { insmod ext2 set isofile="/porteus/porteus-5.0.2.iso" loopback loop (hd0,2) linux (loop)/boot/syslinux/vmlinuz nomagic base_only norootcopy zram=60% noauto timezone=GMT-0 login=root initrd (loop)/boot/syslinux/initrd.xz }
To run Porteus, simply boot the computer and await the appearance of Grub2's menu. It should list both the main system and also Porteus Linux. Select Porteus, and observe a normal startup sequence. After a few seconds of scrolling messages, the desktop should appear. At this point, the system is ready to run.
Other systems may be added in the same manner as Porteus. Kali Linux, Slitaz, SLAX, Siduction, Knoppix, or any other live CD or DVD may be installed alongside Porteus. Each should be extracted and placed in its own folder and each will need its own entry (plus startup cheatcodes) written to "/etc/grub.d/40_custom."
Multiple versions of Porteus, or Porteus derivatives such as MOFO Linux require slight changes. Each version needs a unique name for the *.sgn file contained within its "porteus" folder AND a cheatcode sgnfile=something.sgn in the grub entry. Otherwise, Porteus will boot using files associated with the first sgn file it finds.
Good luck, and enjoy the convenience and robustness of having two (or more) separate operating systems installed to the same hardware. For more information, be sure to visit the Porteus forums. There are many, many computer users with Porteus on their hard drives.