Page 1 of 1

grub2 with other linux

Posted: 12 Feb 2017, 16:27
by normalGuy
Hello,

So I followed the instructions but I'm having a problem with the changes:

1- Create a new hd partition for porteus sda5: ext4;
2- Copy the porteus and boot folders to sda5;
3- Edit the /etc/grub.d/40_custom:

Code: Select all

menuentry 'Porteus Linux - 3.2.1 XFCE' {
	insmod ext2 
	set root='(hd0,5)'
	linux /porteus/boot/syslinux/vmlinuz from=/dev/sda5/porteus login=
	initrd /porteus/boot/syslinux/initrd.xz
}
4- update the grub
5-Reboot and using porteus but with no changes.

Q: How to keep the changes? Because if I use the porteus linux installer there is no problem but I can't boot the other system. And I'm not using iso's.

Re: grub2 with other linux

Posted: 12 Feb 2017, 19:31
by tome
Use changes=/your/path or changes=EXIT: e.g:

Code: Select all

linux /porteus/boot/syslinux/vmlinuz from=/dev/sda5/porteus login= changes=/mnt/sda2

Re: grub2 with other linux

Posted: 12 Feb 2017, 19:58
by normalGuy
Hi tome

It's like this:

Code: Select all

linux /porteus/boot/syslinux/vmlinuz from=/dev/sda5/porteus login= changes=/mnt/sda5
But it's not working, should I do a dat file like in a usb? But I'm in hd partition ext4...I'm lost :%)

Re: grub2 with other linux

Posted: 13 Feb 2017, 00:21
by francois
Try:

Code: Select all

linux /porteus/boot/syslinux/vmlinuz from=/dev/sda5/porteus login= changes=/porteus
Your changes folder will appear as changes folder in /dev/sda5/porteus. :)

Re: grub2 with other linux

Posted: 13 Feb 2017, 19:15
by normalGuy
Hi
Et voilá it works:

Code: Select all

menuentry 'Porteus Linux - 3.2.1 XFCE' {
   insmod ext2 
   set root='(hd0,5)'
   linux /porteus/boot/syslinux/vmlinuz from=/dev/sda5/porteus login= changes=/porteus  
   initrd /porteus/boot/syslinux/initrd.xz
}
Thanks françois

----------------------------------------------------

Other way I tested and also works (no grub):

External hd:
1-fat32 the main partition to install porteus iso with multiboot tool
2-ext4 other partition for save changes
3-create a changesFolder in the partition ext4 from the 2 step
4-edit cheatcodes porteus.cfg "... changes=/dev/sdxY/changesFolder..."

Or the same with a penUsb but with porteus settings center create a dat file and edit cheatcodes porteus.cfg.

More:
http://forum.porteus.org/viewtopic.php? ... 4121b1c872
and more:
http://forum.porteus.org/viewtopic.php? ... 1145806f78

and also:
Porteus settings center: Porteus Installer.

UF!! :beer:

Re: grub2 with other linux

Posted: 14 Feb 2017, 19:49
by francois
And

Code: Select all

login=guest
if you want to boot directly into the desktop environment without being stopped by login manager. :)