Unable to boot Porteus 5.0 rc3 in Legacy mode

Post here if you are a new Porteus member and you're looking for some help.
User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#31 by Ed_P » 02 Aug 2021, 05:13

Ed_P wrote:
01 Aug 2021, 23:22
I'll restart the process.
p-i-f-w.zip: Porteus-installer-for-Windows.exe is a self extracting file for several files in the /boot folder.
p-i-f-w-2.zip: Porteus-installer-for-Windows.exe is also a self extracting file for several files in the /boot folder.
Neither in themselves make the USB drive bootable. I'm missing something. I will try booting the drive after each extract and report back.

Added in 29 minutes 35 seconds:
p-i-f-w.zip: Boots fine on UEFI Windows 10 system. On the BIOS system I get "Boot error" then an "Preparing Automatic Repair" and then a "Diagnosing your PC" followed by an Automatic Repair screen.

Added in 18 minutes 55 seconds:
p-i-f-w-2.zip: Boots fine on UEFI Windows 10 system. On the BIOS system I get another "Boot error" however pressing Enter brings up my normal boot options screen rather than an a "Preparing Automatic Repair" process.
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#32 by ncmprhnsbl » 02 Aug 2021, 07:58

Ed_P wrote:
02 Aug 2021, 06:01
p-i-f-w.zip: Porteus-installer-for-Windows.exe is a self extracting file for several files in the /boot folder.
p-i-f-w-2.zip: Porteus-installer-for-Windows.exe is also a self extracting file for several files in the /boot folder.
this is what i wanted to know, ie, as raja suspected: they don't self execute..
that is presuming that you followed the instructions: "right-click on it and choose to run as administrator" ?
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#33 by raja » 02 Aug 2021, 09:55

This weekend, I borrowed a windows machine, and double clicked on ncmp's sfx module. Windows asked for location to extraxt..

I probed further and found out that we must use module "7zS2con" from 7z , in a windows machine to build an self extracting file and initiate install, automatically.

Official module , extracts in a temp folder in windows and executes.

But our installer.bat is written to execute from ,say, F:/boot.

Porteus developers(2013), must have recompiled that module to suit their needs.

Now I have to redo few lines in .bat file.

So, from windows temp directory, we have to come to usb disk /boot folder, before running regular porteus lines.

I made a new .exe file for windows installation.

I tested with an USB disk in use, by putting a "pause" command, before running the syslinux.exe command.

so far so good.

I double clicked on "install-bootloader-windows.exe" placed in usb disk's /boot folder.

say 'yes' to windows warning,

I saw the green eagle logo and message,in the terminal, do you want to install porteus in say F: and paused.

Remember, now you will be asked to give "volume name " of usb disk, so create volume name.(safety and necessity)

REMEMBER DOUBLE CLICK on .exe

new bat file. names of files changed to avoid confusion.

Please test real time usb install of bootloader,

link deleted. look for sfx.zip file , a few posts down
Last edited by raja on 04 Aug 2021, 17:17, edited 1 time in total.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

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

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#34 by Ed_P » 02 Aug 2021, 16:07

ncmprhnsbl wrote:
02 Aug 2021, 07:58
that is presuming that you followed the instructions: "right-click on it and choose to run as administrator" ?
Instructions? :%) The Porteus-install-Windows.exe file runs as a ordinary command normally.

Added in 1 day 6 hours 47 minutes 4 seconds:
raja wrote:
02 Aug 2021, 09:55
we must use module "7zS2con" from 7z
raja could you explain this a little more? I have 7-zip on my Windows system and have never created an .exe file. Also what is in your exe file, just the .bat or other files too.
Ed

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#35 by raja » 04 Aug 2021, 07:36

Ed_P, The *.exe file ,I uploaded has .exe file install.bat and syslinux.exe and syslinux64.exe.

I am eager, you may please test that , If it works perfectly, that file can be added to porteus.iso's, in future, replacing the old one.

If you have spare usb disk, please format to FAT32 and give a label name for the volume.

Copy boot and syslinux folders from porteus-5.0rc3.

If there is a file by name ldlinux.sys in syslinux folder, rename, old-ldlinux.sys.

Copy downloaded 'install-bootloader-windows.exe to boot folder, in usb disk.

Double click that .exe file.

Windows 'terminal' will open asking for inputting "usb disk volume name.

enter your volume name..enter

If the bat file is proper,

you will see " Porteus installed successfully" message.

Check syslinux folder, if the file "ldlinux.sys" is recreated.

If, yes...everything fine. the new bat file ok.

Please check and report.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

User avatar
Bicephale
Full of knowledge
Full of knowledge
Posts: 111
Joined: 28 Dec 2010, 19:10
Distribution: Live CDs
Location: Quebec/Qc, Canada

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#36 by Bicephale » 04 Aug 2021, 11:23

Hummm... It would be a waste not to give that a fair try myself, though i'm thinking of using a LIVE Win7/8/10 (soon 11...) bootable Read-ONLY CD-ROM/DVD, which could as well have been some external USB unit. Lets presume the newcomers in need of Porteus are really desperate, like when Windows has died. Or when Windows won't fit in anymore, because at level 11 my tablet simply won't qualify for an install. That's part of why i return to hunt the place once in a while, more frequently recently. Never trash legacy mode!! Just give it a push...

;)

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

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#37 by Ed_P » 04 Aug 2021, 13:54

raja wrote:
04 Aug 2021, 07:36
If there is a file by name ldlinux.sys in syslinux folder, rename, old-ldlinux.sys.

Copy downloaded 'install-bootloader-windows.exe to boot folder, in usb disk.
There is no ldlinux.sys in the Cinnamon ISO's /boot/syslinux folder. There is a ldlinux.c32 file.

Downloading your file is difficult with the multiple Windows security prompts and strange save name and copying it to the USB drive isn't much better.
Image

Maybe copying the install from Porteus 4.0 would be a better option. My Porteus 4.0 USB drive boots in my UEFI machine and my BIOS machine, both 64 bit systems.
Ed

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#38 by raja » 04 Aug 2021, 16:10

Ed_p, may be due to the file name I have given. Changed the name to porteus-win.exe and made it as sfx.7z zip file.

Please download from this link, unpack, move porteus-win.exe to boot folder and double click

link deleted as file was found to be empty.
Last edited by raja on 04 Aug 2021, 17:16, edited 1 time in total.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

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

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#39 by Ed_P » 04 Aug 2021, 16:41

raja wrote:
04 Aug 2021, 16:10
Ed_p, may be due to the file name I have given. Changed the name to porteus-win.exe and made it as sfx.7z zip file.
Thanks raja. I'm sure the concerns Windows has are the .exe part of the name. :D I'll download the new 7z file and see what happens.

Added in 2 minutes 42 seconds:
Well the 7z file's download was a whole lot easier than the .exe one. :happy62:

Added in 6 minutes 33 seconds:
Well the download was easy because the sfx.7z file is 32B!! The file is empty! :o
Ed

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#40 by raja » 04 Aug 2021, 17:10

oh my God... Try now

a sfx.zip file 189kb

https://www.mediafire.com/file/lqtmfyi9 ... x.zip/file

Thanks again
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

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

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#41 by Ed_P » 04 Aug 2021, 17:29

Code: Select all

Microsoft Windows [Version 10.0.19043.1110]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Ed>g:

G:\>cd \boot

G:\boot>dir
 Volume in drive G is PORTEUS
 Volume Serial Number is FE1A-6D02

 Directory of G:\boot

08/02/2021  04:07 PM    <DIR>          .
08/02/2021  04:07 PM    <DIR>          ..
06/14/2021  04:27 AM    <DIR>          docs
07/03/2021  06:18 PM    <DIR>          syslinux
06/19/2020  01:19 AM           383,400 Porteus-installer-for-Linux.com
05/04/2020  03:13 PM           119,021 Porteus-installer-for-Windows.exe
08/04/2021  09:27 PM           199,533 porteus-win.exe
               3 File(s)        701,954 bytes
               4 Dir(s)  30,364,762,112 bytes free

G:\boot>porteus-win.exe

G:\boot>

Code: Select all

Enter volume to search for:PORTEUS
Volume  is drive G:

                        _.====.._
                      ,:._       ~-_
                          '\        ~-_
                            \        \\.
                          ,/           ~-_
                 -..__..-''   PORTEUS   ~~--..__

==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==


Installing Porteus to G:\
Make sure G: is the right partition before proceeding.

Press any key to continue, or kill this window [x] to abort...
Installation finished successfully.
You may reboot your PC now and start using Porteus.
Please check the \boot\docs folder for additional information about
the installation process, Porteus requirements and booting parameters.

Press any key to exit...
Ed

raja
Shogun
Shogun
Posts: 434
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32 and Porteus-Artix-64
Location: Chennai,India

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#42 by raja » 04 Aug 2021, 18:02

Thanks Ed_P.

It is confirmed that "porteus-win.exe " is perfect*. You missed one to report ..creation of file 'ldlinux.sys' in syslinux folder. Syslinux64.exe copies this file after installing bootloader to G: Pl check.

Now how to create this self extracting and automatic install "sfx" module.?

You shall download LZMA SDK, 7z development kit. Link below..

https://www.7-zip.org/a/lzma1900.7z

Extract the "bin" folder.

You will find sfx module " 7zS2con.sfx"

create a folder , say loader and copy install.bat,syslinux.exe and syslinux64.exe

Right click on that folder...add to "loader.7z.

create another folder ,say xxx and copy 7zS2con.sfx and loader.7z

Open windows terminal and change directory to xxx. check dir...these two files are there.

Give the following command in the terminal.

Code: Select all

copy /b 7zS2con.sfx + loader.7z port-win.exe
That is it. your self extracting installer is ready in xxx folder.

You can also check, if the new disk boots your favourite OS.

* This exe file makes sure , you are installing the bootloader only to your chosen usb disk. your case G:
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit

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

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#43 by Ed_P » 04 Aug 2021, 18:48

raja the updated USB drive booted my UEFI notebook, my BIOS netbook, and my old Windows 7 desktop. The latter with no mouse or task bar but it did boot the GUI. :)

No ldlinux.sys that I see.

Code: Select all

Microsoft Windows [Version 10.0.19043.1110]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Ed>dir g:\boot\syslinux
 Volume in drive G is PORTEUS
 Volume Serial Number is FE1A-6D02

 Directory of g:\boot\syslinux

08/02/2021  04:07 PM    <DIR>          .
08/02/2021  04:07 PM    <DIR>          ..
05/09/2020  11:24 PM             2,048 boot.cat
05/09/2020  11:24 PM            24,652 chain.c32
05/09/2020  11:24 PM                20 extlinux.conf
11/02/2020  05:53 AM         1,152,600 initrd.xz
07/03/2021  06:25 PM            40,960 isolinux.bin
07/03/2021  06:27 PM             2,048 isolinux.boot
05/09/2020  11:24 PM                20 isolinux.cfg
05/09/2020  11:24 PM           181,944 libcom32.c32
05/09/2020  11:24 PM            23,628 libutil.c32
05/09/2020  11:24 PM             1,248 lilo.conf
05/09/2020  11:24 PM            43,575 plpbt
06/28/2021  07:50 PM             3,212 porteus.cfg
05/09/2020  11:24 PM            92,713 porteus.png
05/09/2020  11:24 PM            46,909 pxelinux.0
05/09/2020  11:24 PM             1,352 reboot.c32
05/09/2020  11:24 PM                20 syslinux.cfg
05/09/2020  11:24 PM            26,684 vesamenu.c32
07/03/2021  06:18 PM         5,507,456 vmlinuz
              18 File(s)      7,151,089 bytes
               2 Dir(s)  30,364,729,344 bytes free

C:\Users\Ed>dir g:\boot\
 Volume in drive G is PORTEUS
 Volume Serial Number is FE1A-6D02

 Directory of g:\boot

08/02/2021  04:07 PM    <DIR>          .
08/02/2021  04:07 PM    <DIR>          ..
06/14/2021  04:27 AM    <DIR>          docs
07/03/2021  06:18 PM    <DIR>          syslinux
06/19/2020  01:19 AM           383,400 Porteus-installer-for-Linux.com
05/04/2020  03:13 PM           119,021 Porteus-installer-for-Windows.exe
08/04/2021  09:27 PM           199,533 porteus-win.exe
               3 File(s)        701,954 bytes
               4 Dir(s)  30,364,729,344 bytes free

C:\Users\Ed>
Since the drive booted on multiple systems maybe not needed??


Added in 2 hours 55 minutes 33 seconds:
raja wrote:
04 Aug 2021, 18:02
Now how to create this self extracting and automatic install "sfx" module.?
Ok. :) Thank you raja.
raja wrote:
04 Aug 2021, 18:02
You shall download LZMA SDK, 7z development kit. Link below..

https://www.7-zip.org/a/lzma1900.7z

Extract the "bin" folder.

You will find sfx module " 7zS2con.sfx"

create a folder , say loader and copy install.bat,syslinux.exe and syslinux64.exe

Right click on that folder...add to "loader.7z.
I was good right down to the last step. I don't see a "loader.7z" anywhere.

Code: Select all

Microsoft Windows [Version 10.0.19043.1110]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Ed>dir g:\boot\loader
 Volume in drive G is PORTEUS
 Volume Serial Number is FE1A-6D02

 Directory of g:\boot\loader

08/04/2021  05:36 PM    <DIR>          .
08/04/2021  05:36 PM    <DIR>          ..
07/31/2021  05:24 AM             1,999 install.bat
10/06/2014  07:00 AM           243,712 syslinux.exe
10/06/2014  07:00 AM           248,832 syslinux64.exe
08/04/2021  05:38 PM    <DIR>          bin
               3 File(s)        494,543 bytes
               3 Dir(s)  30,362,370,048 bytes free

C:\Users\Ed>dir g:\boot\loader\bin
 Volume in drive G is PORTEUS
 Volume Serial Number is FE1A-6D02

 Directory of g:\boot\loader\bin

08/04/2021  05:38 PM    <DIR>          .
08/04/2021  05:38 PM    <DIR>          ..
08/04/2021  05:38 PM    <DIR>          installer
02/21/2019  01:00 PM            42,496 7zdec.exe
02/21/2019  12:00 PM           523,776 7zr.exe
02/21/2019  01:00 PM            34,816 7zS2.sfx
02/21/2019  01:00 PM            34,816 7zS2con.sfx
02/21/2019  12:00 PM           124,928 7zSD.sfx
02/21/2019  12:00 PM           108,544 lzma.exe
08/04/2021  05:38 PM    <DIR>          x64
               6 File(s)        869,376 bytes
               4 Dir(s)  30,362,370,048 bytes free

C:\Users\Ed>
Added in 1 day 20 hours 9 minutes 56 seconds:
Good grief. :o
raja wrote:
04 Aug 2021, 18:02
Right click on that folder...add to "loader.7z.
Right click on that folder, select 7-zip...Add to "loader.7z"

I can now make the .exe file. :smiling9:

I've going to try a .cmd file in place of your .bat file in which I have tweaked some of your code. Will help see what's happening with missing ldlinux.sys file.

Added in 3 hours 17 minutes 35 seconds:
Ok. Built the .exe using your files including your .bat file. The rebuilt USB drive boots on my UEFI and BIOS 64bit machines but not the old 32bit desktop this time. :hmmm:
Ed

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#44 by ncmprhnsbl » 06 Aug 2021, 22:44

Ed_P wrote:
06 Aug 2021, 21:11
Ok. Built the .exe using your files including your .bat file. The rebuilt USB drive boots on my UEFI and BIOS 64bit machines but not the old 32bit desktop this time.
did you run the installer on your old 32bit desktop(windows)? because if you ran it on the 64bit one you'll have 64bit syslinux used, which won't work for the old 32bit desktop..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

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

Unable to boot Porteus 5.0 rc3 in Legacy mode

Post#45 by Ed_P » 07 Aug 2021, 02:10

ncmprhnsbl wrote:
06 Aug 2021, 22:44
did you run the installer on your old 32bit desktop(windows)? because if you ran it on the 64bit one you'll have 64bit syslinux used, which won't work for the old 32bit desktop..
Nope, just on the 64bit machine and I suspected that was the cause of the problem. So do we make the machine an option the user selects when building the USB drive or add both options that then get selected automatically for the machine when the drive is booted?

I think a previous build ran on both the 64 bit and 32 bit machines because I ran raja's exe on the USB drive when it still had the original build on it.

I believe my old Porteus 4.0 USB drive runs on both 64bit and 32bit machines. I will verify that later.

The topic is kinda vague with the word Legacy. Is it referring to BIOS verses UEFI or 64 bit verses 32 bit?
Ed

Post Reply