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
I've been trying different solutions such as adding EXIT
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?
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?
-
- 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
@gotPortee
Long time ago , I have made a "changes data" as follow.
Thanks.
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.
- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
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.

-
- Black ninja
- Posts: 43
- Joined: 14 Oct 2014, 01:49
- Distribution: Porteus-MATE
- Location: U.S.
trying to setup grub2 for Porteus Mate
I removed the text "ro recovery nomodeset"
And it didn't make a difference
And I don't understand what neko is doing - is that code to create the dat file?
And it didn't make a difference
And I don't understand what neko is doing - is that code to create the dat file?
-
- 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
@gotPortee
"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.
"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.
- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
Try removing the root= part too. Just leave your changes= code. Be sure you have a /porteus folder on the Porteus drive.
And once we get this working for you try this menu.
And yes the code neko showed is for creating a save.dat file but you've already created one and on a EXT4 drive you don't need one.
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
}
-
- Black ninja
- Posts: 43
- Joined: 14 Oct 2014, 01:49
- Distribution: Porteus-MATE
- Location: U.S.
trying to setup grub2 for Porteus Mate
Thank you Ed - for sticking with me!
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!!
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!!
- 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
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.

Cheers!
Yours Rava
Yours Rava
- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
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.


- 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
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.
Cheers!
Yours Rava
Yours Rava
-
- Black ninja
- Posts: 43
- Joined: 14 Oct 2014, 01:49
- Distribution: Porteus-MATE
- Location: U.S.
trying to setup grub2 for Porteus Mate
Ed
So gotPortee you said you got your system to boot.
Have you tried the test menu I showed you?
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.
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.
- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
gotPortee post the grub2 menu that is working for you so others may see it and use it for their systems. 

- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
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

-
- Black ninja
- Posts: 43
- Joined: 14 Oct 2014, 01:49
- Distribution: Porteus-MATE
- Location: U.S.
trying to setup grub2 for Porteus Mate
Here is the final product written to etc/grub.d/40_custom
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!!
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!!
- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
trying to setup grub2 for Porteus Mate
Hi gotPortee. I don't think you need these lines.
but I suspect you don't have the HP any more so we will never know for sure.
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