boot with grub4dos porteus in second partition flashdisk SOLVED

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
lksnip
White ninja
White ninja
Posts: 13
Joined: 23 Aug 2018, 01:05
Distribution: 4.0

boot with grub4dos porteus in second partition flashdisk SOLVED

Post#1 by lksnip » 19 Jul 2019, 05:09

hi all,

currently i create my porteus with YUMI at first partition(FAT32), but limitation of FAT32 that must save as .dat for any changes make me want to install it on my second partition(etx4) together with other linux
if i not wrong, create new folder at my second partition and copy all content from the iso to it, after that edit my grub4dos to boot porteus.
this my menu.lst

Code: Select all

    title Boot to Partition 1yumi \n Run syslinux YUMI from partition 1
    root (hd0,0)
    chainloader (hd0,0)+1
    boot
    
    title Boot to windows\n Run Windows
    root (hd1,0)
    chainloader (hd1,0)/bootmgr
 

    title Boot to xenialpup64_7.5 at Partition 2\n Run  xenialpup64_7.5 from partition 2
    root (hd0,1)
    kernel /xenialpup64_7.5/vmlinuz psubdir=/xenialpup64_7.5 pmedia=usb pfix=copy
    initrd /xenialpup64_7.5/initrd.gz
    boot

    
    title Boot to coreplus at Partition 2\n Run  coreplus from partition 2
    root (hd0,1)
    kernel /coreplus9.0x86/tce/boot/vmlinuz loglevel=3 waitusb=5 tce=UUID=45a795e6-371d-48b5-9afb-835cd1e572c9/coreplus9.0x86/tce blacklist=bcma,ssb,b43 
    showapps
    initrd /coreplus9.0x86/tce/boot/core.gz
    boot

so what changes should i add to boot porteus
Last edited by lksnip on 30 Jul 2019, 08:06, edited 1 time in total.

babam
Black ninja
Black ninja
Posts: 64
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 3.2.2
Location: Rainy city

boot with grub4dos porteus in second partition flashdisk

Post#2 by babam » 19 Jul 2019, 07:06

If you're using Porteus 4.0 XFCE:
1. Create 'PorteusXFCE' directory on the second partition (Ext4).
2. Create 'modules' directory in the 'PorteusXFCE' (for extramod directory).
3. Move Porteus iso to 'PorteusXFCE' directory.
4. Extract vmlinuz and initrd.xz to 'PorteusXFCE'

Code: Select all

title Porteus 4.0 XFCE- Persistence
root (hd0,1)
kernel /PorteusXFCE/vmlinuz fsck changes=/PorteusXFCE from=/PorteusXFCE/Porteus-XFCE-v4.0-x86_64.iso extramod=/PorteusXFCE/modules
initrd /PorteusXFCE/initrd.xz
boot
Last edited by babam on 20 Jul 2019, 09:51, edited 1 time in total.
Sorry, my English is bad.

jssouza
DEV Team
DEV Team
Posts: 1033
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm
Location: Liechtenstein

boot with grub4dos porteus in second partition flashdisk

Post#3 by jssouza » 19 Jul 2019, 09:03

If you are keeping both the partitions, then all you have to do is move the 'porteus' directory to the ext4 partition from the iso. Keep the booting kernel and initrd in fat32 itself.

lksnip
White ninja
White ninja
Posts: 13
Joined: 23 Aug 2018, 01:05
Distribution: 4.0

boot with grub4dos porteus in second partition flashdisk

Post#4 by lksnip » 20 Jul 2019, 06:22

After read suggestion from @babam and @jssouza, i copy /boot and /efi to porteus_boot folder at first partition(fat32) and copy /porteus to second partition(ext4) and add changes to menu.lst

Code: Select all

 title Boot to Porteus KDE partition 2
    root (hd0,0)
    kernel /Porteus_boot/boot/syslinux/vmlinuz changes=/mnt/sdb2/porteus/changes
    initrd /Porteus_boot/boot/syslinux/initrd.xz     
    boot
    
    title Boot to Porteus KDE copy to ram partition 2
    root (hd0,0)
    kernel /Porteus_boot/boot/syslinux/vmlinuz changes=/mnt/sdb2/porteus/changes
    initrd /Porteus_boot/boot/syslinux/initrd.xz copy2ram    
    boot
    
    title Boot to Porteus XFCE partition 2
    root (hd0,0)
    kernel /Porteus_boot/boot/syslinux/vmlinuz unload=kde load=xfce changes=/mnt/sdb2/porteus/changes
    initrd /Porteus_boot/boot/syslinux/initrd.xz     
    boot
it is success to boot porteus from partition 2. so thanks for both of you.
but is there a way to chainload the syslinux at /boot from grub4dos so i only type load unload desktop environment at the beginning menu
i try this entry

Code: Select all

 title Boot to Porteus menu
    root (hd0,0)
    chainloader /Porteus_boot/boot/syslinux/isolinux.bin  
but failed

babam
Black ninja
Black ninja
Posts: 64
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 3.2.2
Location: Rainy city

boot with grub4dos porteus in second partition flashdisk

Post#5 by babam » 26 Jul 2019, 17:35

What are the error messages?
Sorry, my English is bad.

lksnip
White ninja
White ninja
Posts: 13
Joined: 23 Aug 2018, 01:05
Distribution: 4.0

boot with grub4dos porteus in second partition flashdisk

Post#6 by lksnip » 29 Jul 2019, 09:53

babam wrote:
26 Jul 2019, 17:35
What are the error messages?
the error is

Code: Select all

cannot chainload ISOLINUX from a non-CDROM device
error 13

User avatar
Ed_P
Contributor
Contributor
Posts: 5113
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

boot with grub4dos porteus in second partition flashdisk

Post#7 by Ed_P » 29 Jul 2019, 18:35

RMPrepUSB has a tutorial that may help you. https://www.rmprepusb.com/tutorials/chainload-syslinux
Ed

lksnip
White ninja
White ninja
Posts: 13
Joined: 23 Aug 2018, 01:05
Distribution: 4.0

boot with grub4dos porteus in second partition flashdisk

Post#8 by lksnip » 30 Jul 2019, 05:46

Ed_P wrote:
29 Jul 2019, 18:35
RMPrepUSB has a tutorial that may help you. https://www.rmprepusb.com/tutorials/chainload-syslinux
i create new folder mysyslinux at /Porteus_boot/boot and copy all file from syslinux after that follow https://www.rmprepusb.com/tutorials/chainload-syslinux, it is create syslinux.bin inside mysyslinux folder(i using syslinux 5.01)
i see that inside syslinux.cfg

Code: Select all

INCLUDE porteus.cfg
so i think just modified porteus.cfg

Code: Select all

KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
into

Code: Select all

KERNEL /porteus_boot/boot/mysyslinux/vmlinuz
INITRD /porteus_boot/boot/mysyslinux/initrd.xz
but still can not boot

Code: Select all

SYSLINUX 5.01
warning : No configuration file found
strange, it seem can not found syslinux.cfg

lksnip
White ninja
White ninja
Posts: 13
Joined: 23 Aug 2018, 01:05
Distribution: 4.0

boot with grub4dos porteus in second partition flashdisk SOLVED

Post#9 by lksnip » 30 Jul 2019, 08:34

Never mind, i found the solution, currently my grub4dos is primary bootloader(at mbr) but before i have install YUMI multiboot(at pbr) and YUMI is using syslinux 6.03. so to fix i add entry at grub4dos to chainload syslinux YUMI and add entry at syslinux YUMI to boot from mysyslinux folder and edit porteus.cfg. also the file c32 YUMI syslinux is different from /boot porteus so i delete c32 porteus and use c32 YUMI syslinux and that fix the problem. i can boot to porteus menu :heh:

User avatar
Ed_P
Contributor
Contributor
Posts: 5113
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

boot with grub4dos porteus in second partition flashdisk SOLVED

Post#10 by Ed_P » 30 Jul 2019, 12:35

:o :good: :celebrate14:
Ed

Post Reply