Skip to content

Porteus boot

fredx181 edited this page Oct 9, 2016 · 2 revisions

XenialDog porteus-boot – porteus initrd1.xz made for Ubuntu kernel (thanks also to sfs). Chose this one if you are familiar with Porteus, DebianDog or Puppy linux. Option to use encrypted save file.

Never use the same casper folder name for more XenialDog frugal install on different partitions. Use different folder name for more XenialDog frugal install.

It is not the exact Porteus boot method since it uses .squashfs modules extension instead .xzm and /casper instead /porteus folder, but the save file options are the same as in Porteus. copy2ram parameter will copy all available modules inside /casper and its subfolders in RAM.

Boot code examples (grub legacy or grub4dos) after copy /casper folder from the iso at top of sda1:

Copy to RAM without saving changes:

title XenialDog porteus-boot in RAM (no save) (sda1)
root (hd0,0)
kernel /casper/vmlinuz noauto from=/ copy2ram
initrd /casper/initrd1.xz

This will create automatically /casper/changes folder for changes:

title XenialDog porteus-boot save in /casper/changes folder (sda1)
root (hd0,0)
kernel /casper/vmlinuz noauto from=/ changes=/casper/
initrd /casper/initrd1.xz

This need to be created “changes.dat” (or whatever custom name) save file first for saving changes:

title XenialDog porteus-boot changes in /casper/changes.dat file (sda1)
root (hd0,0)
kernel /casper/vmlinuz noauto from=/ changes=/casper/changes.dat
initrd /casper/initrd1.xz

This way of saving changes is equivalent of “pupmode=13” in puppy , saving changes only at shutdown:

title XenialDog porteus-boot save on EXIT in /casper/changes.dat file (sda1)
root (hd0,0)
kernel /casper/vmlinuz noauto from=/ changes=EXIT:/casper/changes.dat
initrd /casper/initrd1.xz

Note for last example: there will be prompt for save or not to save. Also for prompt to create save file first time boot.


Like the previous one saving changes only at shutdown but in folder changes:

title XenialDog porteus-boot save on EXIT in /casper/changes folder
root (hd0,0)
kernel /casper/vmlinuz noauto from=/ changes=EXIT:/casper/
initrd /casper/initrd1.xz

For the last two boot codes only “changes=EXIT:/path-to-save-file/folder” you can type from terminal:

save2flash

This will save in the middle of a session.


Porteus initrd1.xz file depends now on /casper folder. It will search for folder with name casper and if it is not found an error message will appear. But you can move /casper in any folder with different name and to use this code (inside folder /xenialdog for example):

title XenialDog inside /xenialdog/casper (sda1)
root (hd0,0)
kernel /xenialdog/casper/vmlinuz noauto from=/xenialdog/
initrd /xenialdog/casper/initrd1.xz
Clone this wiki locally