grub2 with other linux

Technical issues/questions of an intermediate or advanced nature.
User avatar
normalGuy
Black ninja
Black ninja
Posts: 52
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

grub2 with other linux

Post#1 by normalGuy » 12 Feb 2017, 16:27

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.

tome
Contributor
Contributor
Posts: 675
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Russia is causing the immense damage to humanity
Contact:

Re: grub2 with other linux

Post#2 by tome » 12 Feb 2017, 19:31

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
You have mind and feelings. Be wise and clever.

User avatar
normalGuy
Black ninja
Black ninja
Posts: 52
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: grub2 with other linux

Post#3 by normalGuy » 12 Feb 2017, 19:58

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 :%)

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: grub2 with other linux

Post#4 by francois » 13 Feb 2017, 00:21

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. :)
Prendre son temps, profiter de celui qui passe.

User avatar
normalGuy
Black ninja
Black ninja
Posts: 52
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: grub2 with other linux

Post#5 by normalGuy » 13 Feb 2017, 19:15

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:

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: grub2 with other linux

Post#6 by francois » 14 Feb 2017, 19:49

And

Code: Select all

login=guest
if you want to boot directly into the desktop environment without being stopped by login manager. :)
Prendre son temps, profiter de celui qui passe.

Post Reply