Page 1 of 1

boot with grub4dos porteus in second partition flashdisk SOLVED

Posted: 19 Jul 2019, 05:09
by lksnip
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

boot with grub4dos porteus in second partition flashdisk

Posted: 19 Jul 2019, 07:06
by babam
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

boot with grub4dos porteus in second partition flashdisk

Posted: 19 Jul 2019, 09:03
by jssouza
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.

boot with grub4dos porteus in second partition flashdisk

Posted: 20 Jul 2019, 06:22
by lksnip
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

boot with grub4dos porteus in second partition flashdisk

Posted: 26 Jul 2019, 17:35
by babam
What are the error messages?

boot with grub4dos porteus in second partition flashdisk

Posted: 29 Jul 2019, 09:53
by lksnip
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

boot with grub4dos porteus in second partition flashdisk

Posted: 29 Jul 2019, 18:35
by Ed_P
RMPrepUSB has a tutorial that may help you. https://www.rmprepusb.com/tutorials/chainload-syslinux

boot with grub4dos porteus in second partition flashdisk

Posted: 30 Jul 2019, 05:46
by lksnip
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

boot with grub4dos porteus in second partition flashdisk SOLVED

Posted: 30 Jul 2019, 08:34
by lksnip
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:

boot with grub4dos porteus in second partition flashdisk SOLVED

Posted: 30 Jul 2019, 12:35
by Ed_P
:o :good: :celebrate14: