Add Poteus to grub4dos [SOLVED]

Post here if you are a new Porteus member and you're looking for some help.
slymcat
White ninja
White ninja
Posts: 5
Joined: 27 Jan 2013, 14:04
Distribution: Mint
Location: Romania

Add Poteus to grub4dos [SOLVED]

Post#1 by slymcat » 28 Jan 2013, 07:23

Hello there.

I am having difficulties adding Porteus to a gru4dos config file un a USB flash drive,tried several methods and none really worked.
Here is what I got so far:

color white/blue blue/yellow light-red/blue 10
#timeout 20
default 2
gfxmenu /message
write (md)0x220+1 !BAT\necho -n -P:0000 $[0107] Hiren's BootCD 15.2 \0 && initscript (md)0x220+1


title Bootare de pe HDD (Windows XP/Vista/7/2008/8/2012).\n
find --set-root --ignore-floppies --ignore-cd /bootmgr || find --set-root --ignore-floppies --ignore-cd /ntldr || rootnoverify (hd0) && chainloader +1 && boot
map () (hd0) && map (hd0) () && map --rehook
find --set-root --devices=h /bootmgr || find --set-root --ignore-floppies --ignore-cd /ntldr
chainloader /bootmgr || chainloader /ntldr

title \n
root

title Mini Windows XP\n
# example password: test
# password --md5 $1$gNe0$KZPOE8wNbTNSKOzrajuoB0
find --set-root /HBCD/XP/XP.BIN
#map --mem /HBCD/XP/f6drivers.img (fd0)&&map --hook
chainloader /HBCD/XP/XP.BIN

title \n
root

title Mini Windows 7\n
find --set-root /HBCD/7/7.BIN
chainloader /HBCD/7/7.BIN

title \n
root

title Parted Magic 2012_12_25\nGestionare partitii, copii de siguranta si restaurare.
set pm=/HBCD/Boot/pmagic.lst
find --set-root %pm%
set lang=us
set opt=
configfile %pm%

title \n
root

title Kiwi 12.08\nDistribuitie Linux bazata pe Ubuntu.
find --set-root --ignore-floppies /HBCD/Kiwi/casper/initrd.lz
kernel /HBCD/Kiwi/casper/vmlinuz iso-scan/filename=/HBCD/Kiwi/Kiwi_Linux_12.08.iso file=/cdrom/preseed/ubuntu.seed boot=casper noprompt quiet splash locale=ro_RO.UTF-8 --
initrd /HBCD/Kiwi/casper/initrd.lz

title \n
root

title Mint 14.1 Cinnamon\nDistributie Linux bazata pe Ubuntu, cu mediu desktop Cinnamon.
find --set-root --ignore-floppies /HBCD/Mint/Cinnamon/casper/initrd.lz
kernel /HBCD/Mint/Cinnamon/casper/vmlinuz iso-scan/filename=/HBCD/Mint/Cinnamon/Mint_14.1_Cinnamon.iso file=/cdrom/preseed/ubuntu.seed boot=casper noprompt quiet splash locale=ro_RO.UTF-8 --
initrd /HBCD/Mint/Cinnamon/casper/initrd.lz

title \n
root

title Mint 14.1 MATE\nDistributie Linux bazata pe Ubuntu, cu mediu desktop MATE.
find --set-root --ignore-floppies /HBCD/Mint/MATE/casper/initrd.lz
kernel /HBCD/Mint/MATE/casper/vmlinuz iso-scan/filename=/HBCD/Mint/MATE/Mint_14.1_MATE.iso file=/cdrom/preseed/ubuntu.seed boot=casper noprompt quiet splash locale=ro_RO.UTF-8 --
initrd /HBCD/Mint/MATE/casper/initrd.lz

title \n
root

title Peppermint Three\nDistributie Linux bazata pe Ubuntu.
find --set-root --ignore-floppies /HBCD/Peppermint/casper/initrd.lz
kernel /HBCD/Peppermint/casper/vmlinuz iso-scan/filename=/HBCD/Peppermint/Peppermint_3.iso file=/cdrom/preseed/ubuntu.seed boot=casper noprompt quiet splash locale=ro_RO.UTF-8 --
initrd /HBCD/Peppermint/casper/initrd.lz



Hope somebody can help me. Thank you.
Last edited by slymcat on 30 Jan 2013, 07:13, edited 1 time in total.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Add Poteus to grub4dos

Post#2 by fanthom » 28 Jan 2013, 20:57

hello slymcat,

if you are using Porteus-1.2 then:
a) please extract vmlinuz and initrd.xz from Porteus ISO to /HBCD/Porteus-1.2/boot folder
b) please put Porteus ISO in /HBCD/Porteus-1.2 folder
c) please use this config:

Code: Select all

title Porteus 1.2\nBest distro ever.
find --set-root --ignore-floppies /HBCD/Porteus-1.2/boot/initrd.xz
kernel /HBCD/Porteus-1.2/boot/vmlinuz iso-scan/filename=/HBCD/Porteus-1.2/Portueus-v1.2-i486.iso from_iso=/HBCD/Porteus-1.2/Portueus-1.2-i486.iso --
initrd /HBCD/Porteus-1.2/boot/initrd.xz
if your are using Porteus-2.x then:
a) please extract vmlinuz and initrd.xz from Porteus ISO to /HBCD/Porteus-2.0/syslinux/boot folder
b) please put Porteus ISO in /HBCD/Porteus-2.0 folder
c) please use this config:

Code: Select all

title Porteus 2.0\nBest distro ever.
find --set-root --ignore-floppies /HBCD/Porteus-2.0/boot/syslinux/initrd.xz
kernel /HBCD/Porteus-2.0/syslinux/boot/vmlinuz iso-scan/filename=/HBCD/Porteus-2.0/Portueus-v2.0-i486.iso from=/HBCD/Porteus-2.0/Portueus-v2.0-i486.iso --
initrd /HBCD/Porteus-2.0/boot/syslinux/initrd.xz
please make sure that 'iso-scan/filename=/HBCD/Porteus-2.0/Portueus-vXXX' matches the ISO you use.
Please add [Solved] to your thread title if the solution was found.

slymcat
White ninja
White ninja
Posts: 5
Joined: 27 Jan 2013, 14:04
Distribution: Mint
Location: Romania

Re: Add Poteus to grub4dos

Post#3 by slymcat » 29 Jan 2013, 07:01

Will do. Thank you very much.

L.E.: As far as I can see, I can't save any changes booting from the iso, right? I also can't seem to boot v 2.0 rc2.

slymcat
White ninja
White ninja
Posts: 5
Joined: 27 Jan 2013, 14:04
Distribution: Mint
Location: Romania

Re: Add Poteus to grub4dos

Post#4 by slymcat » 29 Jan 2013, 19:18

I tried with v2.0 RC2 both standard and XFCE with the following lines:

kernel /HBCD/Porteus-2.0/syslinux/boot/vmlinuz iso-scan/filename=/HBCD/Porteus-2.0/Portueus.iso from=/HBCD/Porteus-2.0/Porteus.iso --

and

kernel /HBCD/Porteus-2.0/syslinux/boot/vmlinuz iso-scan/filename=/HBCD/Porteus-2.0/Portueus.iso from_iso=/HBCD/Porteus-2.0/Porteus.iso --

I got stucked at: Drive not ready delaying x seconds... searching for porteus-v2.0-i486.sgn.
I was wondering if I can extract the iso on the drive and add it to grub4dos, so that I can save the changes to. Thanks.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Add Poteus to grub4dos

Post#5 by fanthom » 29 Jan 2013, 20:07

I can't save any changes booting from the iso, right?
you can save changes as normal. you can even load extra modules and use external /rootcopy directory.
just add necessary cheatcodes to grub4dos config.
I got stucked at: Drive not ready delaying x seconds... searching for porteus-v2.0-i486.sgn.
are you sure that iso is named as "Porteus.iso" and nothing else?

please try this simplified config:

Code: Select all

title Porteus 2.0\nBest distro ever.
kernel /HBCD/Porteus-2.0/boot/syslinux/vmlinuz from=/HBCD/Porteus-2.0/Portueus.iso
initrd /HBCD/Porteus-2.0/boot/syslinux/initrd.xz
if still wont work then please launch any linux distro and show me the output of following command:

Code: Select all

find /path_to/HBCD/Porteus-2.0 -type f
please replace 'path_to' with path where your stick was mounted.
Please add [Solved] to your thread title if the solution was found.

slymcat
White ninja
White ninja
Posts: 5
Joined: 27 Jan 2013, 14:04
Distribution: Mint
Location: Romania

Re: Add Poteus to grub4dos [SOLVED]

Post#6 by slymcat » 30 Jan 2013, 07:14

Did it with the simplified config. Many thanks.

slymcat
White ninja
White ninja
Posts: 5
Joined: 27 Jan 2013, 14:04
Distribution: Mint
Location: Romania

Re: Add Poteus to grub4dos [SOLVED]

Post#7 by slymcat » 30 Jan 2013, 18:21

I don't want to start another topic wiith my dumb questions, so I hope you'll answer me here.
I have another slight issue with saving the changes. I added this line:

kernel /HBCD/Porteus/XFCE/boot/syslinux/vmlinuz from=/HBCD/Porteus/XFCE/Porteus_2.0_XFCE.iso changes=/HBCD/Porteus/porteussave.dat noauto copy2ram, but the system says that it can't find the path.

Can you help me with this too?

Post Reply