i find a new method to boot porteus/x without change mbr record

Non release banter
nayame
White ninja
White ninja
Posts: 24
Joined: 11 Dec 2024, 08:05
Distribution: porteux1.6

i find a new method to boot porteus/x without change mbr record

Post#1 by nayame » 17 Dec 2024, 22:25

I am also a PuppyLinux user, and I often need to access various PuppyLinux distributions, so I use the combination of Grub+Lick, which allows me to select the system I want to enter without having to modify the MBR every time. I started using Porteus/X in the past few days and found that this system can only be used by installing the installation files included in the image, which will modify the MBR information, which may prevent me from accessing my previous system, which is not good. So I thought about whether it is possible to start from the hard drive directly like PuppyLinux by only modifying the boot code, without modifying the MBR information. After testing, I found that it works, so I'm sharing this method with everyone. It's possible that someone has already tried this, but I haven't seen it, and it's possible that someone doesn't know about it, so I'm providing a method for those who need it.

The steps are as follows:
1. To install Lick on a Windows-based computer, you'll need to have Windows installed. If you don't have Windows, you can use a portable operating system like PE. I chose to use Windows because some software only works on Windows and cannot be run on Wine. I installed Windows only as a backup option, and I prefer to work and entertain primarily on Linux.

2. Download porteus/x, extract the files in the iso image to any root partition of the disk, three new folders will be generated, such as /boot, /porteus, /EFI, and then modify the boot file lickmenu.lst of the lick, add the following code to it

Code: Select all

## start section porteux16
title porteux16
find /boot2/syslinux/vmlinuz
kernel /boot2/syslinux/vmlinuz pfix=fsck psubdir=porteux16
initrd /boot2/syslinux/initrd.zst
boot

title porteux16 (no save file)
find  /boot2/syslinux/vmlinuz
kernel /boot2/syslinux/vmlinuz pfix=ram savefile=none psubdir=porteux16
initrd /boot2/syslinux/initrd.zst
boot
## end section porteux16
Because I decompressed porteus and porteux under the same root partition, the /boot and /EFI folders were renamed, so I changed the name of porteux's /boot to /boot2, because my computer is an old computer that can't be booted with UEFI, so /EFI can be unzipped or changed whatever the name is, anyway, they are useless

3,Save lickmenu.lst,Then restart the computer,You can see porteux16 in the lickmenu boot menu,Then enter this system,The same can add porteus boot code,So that you can freely choose which system to enter when you boot up,If you don't want it,Directly delete the files on the hard disk and the code in lickmenu.lst,No need to modify the mbr information
Last edited by nayame on 24 Dec 2024, 07:53, edited 2 times in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 8954
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

i find a new method to boot porteus/x without change boot mbr

Post#2 by Ed_P » 18 Dec 2024, 07:51

Thank you nayame. :good:

In your Lick menu I don't think you need the --ignore-floppies option. Unless your old machine actually uses floppies. :( :D

nayame
White ninja
White ninja
Posts: 24
Joined: 11 Dec 2024, 08:05
Distribution: porteux1.6

i find a new method to boot porteus/x without change boot mbr

Post#3 by nayame » 18 Dec 2024, 15:29

Ed_P,
Yes, the floppy disk has indeed disappeared now.
:D

User avatar
Ed_P
Contributor
Contributor
Posts: 8954
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

i find a new method to boot porteus/x without change boot mbr

Post#4 by Ed_P » 18 Dec 2024, 18:07

A porteus/x boot cheatcode that I use when updating is changes=EXIT thus changes aren't written to disk until I shutdown the system. The advantages are; the system runs faster, and if the changes I implemented isn't as good or as clean as I wanted I can choose to not save them until the next time. :)

In the Porteus/x /boot/docs/cheatcodes.txt file I don't see the vmlinuz codes you're using, as such they don't work with the Porteus/x system you're booting. They are probably PuppyLinux codes. Is the kernel's /boot2/syslinux/vmlinuz file the Porteus/x kernel file? :hmmm:

Added in 5 hours 51 minutes 27 seconds:
I thought you might like some of my old Grub4DOS menus:

Code: Select all

--map --unhook

title 07. Porteus 4.0+\n\a Disregard the missing cfg warning.
find --set-root                     /Porteus/Porteus-CINNAMON-v4.0-i586.iso
map --heads=0 --sectors-per-track=0 /Porteus/Porteus-CINNAMON-v4.0-i586.iso (0xff)
map --hook
root (0xff)
kernel /boot/syslinux/vmlinuz  from=/Porteus/Porteus-CINNAMON-v4.0-i586.iso extramod=/Porteus/Modules volume=40   
initrd /boot/syslinux/initrd.xz

title 08. Porteus 4.0 AF\n\a Disregard the missing cfg warning.
find --set-root                     /Porteus/Porteus-CINNAMON-v4.0-i586.iso
map --heads=0 --sectors-per-track=0 /Porteus/Porteus-CINNAMON-v4.0-i586.iso (0xff)
map --hook
root (0xff)
kernel /boot/syslinux/vmlinuz  from=/Porteus/Porteus-CINNAMON-v4.0-i586.iso volume=40   
initrd /boot/syslinux/initrd.xz

title 09. Reboot
reboot
Looks similar to your Lick menus. :happy62: :)

nayame
White ninja
White ninja
Posts: 24
Joined: 11 Dec 2024, 08:05
Distribution: porteux1.6

i find a new method to boot porteus/x without change boot mbr

Post#5 by nayame » 20 Dec 2024, 02:48

Ed_P, Thanks for sharing, I think using grub or grub4dos should also be able to boot porteus/x, I am very busy lately, and I'll try to boot porteus/x by modifying grub's menu file when I have time.

is the kernel's /boot2/syslinux/vmlinuz file the Porteus/x kernel file?
yes.changing the kernel may cause a lot of problems, so I just extracted the kernel that came from the iso image which has been tested
run well on my laptop.

The initial requirement is very simple, as long as it can be booted, I just want to verify whether it can be booted from the hard disk, so in order to avoid failure, the simpler the cheatcode, the better, and if there is a demand later, i can refer to Porteus/x /boot/docs/cheatcodes.txt to add other parameters.

User avatar
Ed_P
Contributor
Contributor
Posts: 8954
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

i find a new method to boot porteus/x without change boot mbr

Post#6 by Ed_P » 20 Dec 2024, 04:01

nayame wrote:
20 Dec 2024, 02:48
I'll try to boot porteus/x by modifying grub's menu file when I have time.
Don't change the menu's you have, create a new one, or two, named "tests" and try things in it.
nayame wrote:
20 Dec 2024, 02:48
yes.changing the kernel may cause a lot of problems,
I didn't mean to suggest change the kernel just wasn't sure whether the /boot2 file was puppylinux's or porteus/x's or windows. :D

It would be interesting to see if the grub system you have supports booting an iso system. Easier to test a new system with no install needed. :)

nayame
White ninja
White ninja
Posts: 24
Joined: 11 Dec 2024, 08:05
Distribution: porteux1.6

i find a new method to boot porteus/x without change boot mbr

Post#7 by nayame » 20 Dec 2024, 04:47

Ed_P,

Usually I add a piece of boot code to the menu or lickmenu, and if the boot is successful, keep the code, and if it fails, comment it out with a # sign. In this way, I have the freedom to choose from dozens of Puppy series operating systems every time I turn on my computer。

No virtual machine required, no performance penalty,booting in livecd mode is really nice

nayame
White ninja
White ninja
Posts: 24
Joined: 11 Dec 2024, 08:05
Distribution: porteux1.6

i find a new method to boot porteus/x without change boot mbr

Post#8 by nayame » 24 Dec 2024, 07:51

After testing, I found that I can also boot Porteus 5.01 from the hard disk by modifying the menu.lst file of grub4dos and adding the following boot code

Code: Select all

title porteus
root (hd0,3)
kernel /boot/syslinux/vmlinuz
initrd /boot/syslinux/initrd.xz
hd0,3
It's the partition where I put the disc image file after I extract it

Post Reply