trying to setup grub2 for Porteus Mate
-
- Black ninja
- Posts: 43
- Joined: 14 Oct 2014, 01:49
- Distribution: Porteus-MATE
- Location: U.S.
trying to setup grub2 for Porteus Mate
Post#16 by gotPortee » 27 Mar 2019, 17:02
changes=EXIT:UUID:5b0b2620-6c98-43a9-b0aa-ad18b60c1df0/porteus/porteussaved.dat
But this isn't working either
Where is the RO cheatcode located?
I assume this means "R"ead "O"only?
gotPortee
-
- DEV Team
- Posts: 2113
- Joined: 09 Feb 2013, 09:55
- Distribution: APorteus-FVWM-ja-x86_64.iso
- Location: japan
trying to setup grub2 for Porteus Mate
Post#17 by neko » 27 Mar 2019, 17:26
Long time ago , I have made a "changes data" as follow.
Code: Select all
% su
# dd of=porteussaved.dat count=0 seek=2691616
# mkfs.ext2 porteussaved.dat
Thanks.
neko
- Ed_P
- Contributor
- Posts: 8960
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
Post#18 by Ed_P » 27 Mar 2019, 17:42
After the "cidfo" and before the "recovery".
You might want to review the Porteus /boot/docs/cheatcodes.txt file at some point. Find out what root, recovery, nomodeset, changes and ro mean.

Ed_P
-
- Black ninja
- Posts: 43
- Joined: 14 Oct 2014, 01:49
- Distribution: Porteus-MATE
- Location: U.S.
trying to setup grub2 for Porteus Mate
Post#19 by gotPortee » 27 Mar 2019, 18:01
And it didn't make a difference
And I don't understand what neko is doing - is that code to create the dat file?
gotPortee
-
- DEV Team
- Posts: 2113
- Joined: 09 Feb 2013, 09:55
- Distribution: APorteus-FVWM-ja-x86_64.iso
- Location: japan
trying to setup grub2 for Porteus Mate
Post#20 by neko » 27 Mar 2019, 18:27
"is that code to create the dat file?"
--->
Yes, it is the example of making "Changes Data".
"changes" has 2 types.
One is a directory.
Another is a file.
The file is the image that contains a valid filesystem, Porteus will mount it on a loop.
Thanks.
neko
- Ed_P
- Contributor
- Posts: 8960
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
Post#21 by Ed_P » 27 Mar 2019, 18:34
And once we get this working for you try this menu.
Code: Select all
menuentry 'Porteus TEST' {
# recordfail
# savedefault
# load_video
# gfxmode $linux_gfx_mode
# insmod gzio
# if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
# insmod part_msdos
# insmod ext2
set root=(hd0,msdos6)
linux /boot/syslinux/vmlinuz root=UUID:5b0b2620-6c98-43a9-b0aa-ad18b60c1df0 changes=UUID:5b0b2620-6c98-43a9-b0aa-ad18b60c1df0/porteus
initrd /boot/syslinux/initrd.xz
}
Ed_P
-
- Black ninja
- Posts: 43
- Joined: 14 Oct 2014, 01:49
- Distribution: Porteus-MATE
- Location: U.S.
trying to setup grub2 for Porteus Mate
Post#22 by gotPortee » 27 Mar 2019, 21:11
It is now saving changes.
I realized also that I had the /Porteus - with uppercase P and this was wrong.
The system couldn't find this folder at boot up.
I did use your latest menu code and it is working now!
Big huge thanks!!
gotPortee
- Rava
- Contributor
- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
trying to setup grub2 for Porteus Mate
Post#23 by Rava » 27 Mar 2019, 21:50
But... that would mean the boot process would look in all partitions for /32bit_v30/boot/syslinux/vmlinuz, and not only on hd0,5? Slowing down the boot process?
Just for comparison, this is what one entry for the menu.lst for GRUB2DOS looks like, I had to use this one since I did pay for the sad excuse for an OS, SM-WItless7, so I wanted to keep it, and install all my Linux stuff parallel.
Code: Select all
title Porteus 4.0 x86-64 XFCe
rootnoverify (hd0,0)
kernel (hd0,0)/Boot/vmlinuz_Porteus_4.0_x86_64 from=/mnt/sda1/Porteus_4.0/ ramsize=40% zram=25% timezone=Europe/Berlin volume=75% kmap=de 3
initrd (hd0,0)/Boot/initrd.xz_Porteus_4.0_x86_64
boot
Also, I put all the kernel and initrd into the /Boot/ folder of the hidden Witless boot and recovery partition (hd0,0), and I do rename the kernel and initrd accordingly, since otherwise I could not have several different Linux and especially several different Porteus variants in the same folder.
Like I said, just meant as one example for a grub installation that does work.

Yours Rava
Rava
- Ed_P
- Contributor
- Posts: 8960
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
Post#24 by Ed_P » 27 Mar 2019, 22:14
True but computers are pretty fast so only a second or 2. The savings are when the hard drive is replaced or the existing one's partitions moved around, Mate will still boot with no changes necessary.
GRUB2DOS!! hmmmJust for comparison, this is what one entry for the menu.lst for GRUB2DOS

Interesting code vmlinuz_Porteus and initrd.xz_Porteus. I don't recall connecting the names. Oh, wait, you renamed the files didn't you.Code: Select all
title Porteus 4.0 x86-64 XFCe rootnoverify (hd0,0) kernel (hd0,0)/Boot/vmlinuz_Porteus_4.0_x86_64 from=/mnt/sda1/Porteus_4.0/ ramsize=40% zram=25% timezone=Europe/Berlin volume=75% kmap=de 3 initrd (hd0,0)/Boot/initrd.xz_Porteus_4.0_x86_64 boot

Yup, I knew it.I do rename the kernel and initrd accordingly,
You do realize that gotPortee is using Grub2 right, which has differ commands than Grub4DOS?
So gotPortee you said you got your system to boot.


Ed_P
- Rava
- Contributor
- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
trying to setup grub2 for Porteus Mate
Post#25 by Rava » 27 Mar 2019, 22:33
Indeed, my bad. It is Grub4DOS not GRUB2DOS.
I do, and my quote is not about copying the commands verbatim, but as info for file, partition and folder structure.
Yours Rava
Rava
-
- Black ninja
- Posts: 43
- Joined: 14 Oct 2014, 01:49
- Distribution: Porteus-MATE
- Location: U.S.
trying to setup grub2 for Porteus Mate
Post#26 by gotPortee » 28 Mar 2019, 04:32
So gotPortee you said you got your system to boot.


Yes I'm using it as we speak - sorry I thought I mentioned that before.
I'll eventually transpose it into Grub2's 40_custom file.
I was editing the grub.cfg file as that was easier for testing purposes.
gotPortee
- Ed_P
- Contributor
- Posts: 8960
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
Post#27 by Ed_P » 28 Mar 2019, 05:36

Ed_P
- Ed_P
- Contributor
- Posts: 8960
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
Post#28 by Ed_P » 30 Mar 2019, 15:34
For more info here is one of my Grub4DOS menus.
Code: Select all
set ISO30=Porteus-RazorQT-v3.0.1-x86_64-nu.iso
# menu entries
title Porteus 3.0.1 changes=EXIT \n213MB\n %ISO30%
find --set-root /ISOs/%ISO30%
map --heads=0 --sectors-per-track=0 /ISOs/%ISO30% (0xff)
map --hook
root (0xff)
kernel /boot/syslinux/vmlinuz from=/ISOs/%ISO30% changes=EXIT:/porteus3.0/changes/porteussave.dat extramod=/porteus3.0/Modules volume=40 reboot=cold ramsize=80%
#initrd (hd0,4)/porteus3.0/testing/initrdx.xz
initrd /boot/syslinux/initrd.xz

Ed_P
-
- Black ninja
- Posts: 43
- Joined: 14 Oct 2014, 01:49
- Distribution: Porteus-MATE
- Location: U.S.
trying to setup grub2 for Porteus Mate
Post#29 by gotPortee » 30 Mar 2019, 22:23
Notes follow below
menuentry 'Porteus Linux' {
recordfail
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
linux /boot/syslinux/vmlinuz root=UUID=5b0b2620-6c98-43a9-b0aa-ad18b60c1df0 changes=UUID:5b0b2620-6c98-43a9-b0aa-ad18b60c1df0/porteus
initrd /boot/syslinux/initrd.x
}
Porteus kernel is: 3.14.15
The laptop being setup is for a friend
HP Pavilion DV6700 - 32-bit unit.
HD is split into 3 partitions, Ubuntu Mate, Porteus Mate, Linux Lite
I booted the unit up with a PartedMagic bootuable USB to gain quick access and edit /boot/grub/grub.cfg
Yes I know one is not supposed to edit this file - but it made for a more efficient validation process.
The partition UUIDs were acquired from PartedMagic also.
Once the bootup is successful - I moved the script over to /etc/grub.d/40_custom
And then performed the grub-update
And confirmed that the Porteus script was correctly loaded into the updated grub.cfg file.
Thanks to Ed - big time - for helping me work through this!
Porteus is totally awesome!!
gotPortee
- Ed_P
- Contributor
- Posts: 8960
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
Post#30 by Ed_P » 31 Mar 2019, 01:01
Code: Select all
recordfail
savedefault
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
Ed_P