Jan Leow's Blog Page

Porteus GRUB2 menu entry

Porteus is a super lightweight Linux operating system taking up about 300MB of storage space. It uses a squashed format for storing its core files, and will decompress when you boot. It also uses a modular approach whereby you install pre-compiled packages as opposed to the standard Linux using package manager.

Because it is also portable, it is easy to install into any existing Linux installation. In my case I copied the ISO files and placed it in the same partition as my FossaPup, KolibriOS, SLAX, SliTaz, TinyCore and SystemRescue.

Some preparation is needed. First create a folder and call it say, “porteus” and copy the entire ISO content into it.

Next create another folder and name it “changes”. This is where modification to the settings and installations will be stored when you run Porteus.

The GRUB2 menuentry example based on my system as follows. Type it into the 40_custom file located in /etc/grub.d/40_custom

menuentry 'Porteus XFCE V5.0' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos5'
	linux /porteus/boot/syslinux/vmlinuz from=/dev/sda5/porteus login=root changes=/dev/sda5/porteus/changes
	initrd /porteus/boot/syslinux/initrd.xz
}

Modify where necessary for hd0 and sda5 (which refers to the 1st hard disk on the 5th partition).

Check that the paths are correct and update the GRUB2 menuentry by typing “update-grub” in the terminal console. When the update is done, reboot and select the Porteus entry and see if it boots.

Cheers!

Back to GRUB2 Menu Entry Manually Set Up For Non-Detected Linux and Other OS

No comments: