Page 1 of 1

[SOLVED] Dual boot XP and Porteus

Posted: 13 Jun 2012, 20:06
by miguipda
Hi,

I installed Porteus and it works great but I was surprise to not see a boot menu including my existing other functional Windows XP partition.

Then I tried the classic explained modification of the /boot/proteus.cfg file.
As it was no chain.c32 fanthom helped me to have this chain.c32 file and I put it in the /boot/syslinux. He tested it and it said it works on its PC but not on mine. You also need to know my Windows is installed on the /mnt/sda1 and my Porteus on the /mnt/sda3 (which start perfectly but not Windows).

How could I also be able to boot on my Windows partition ?

Sincerely thanks ;-)

For this I just added those lines (all the other lines given here below are the standard one given at the porteus installation) :
LABEL orkas
MENU LABEL Orkas
COM32 /boot/syslinux/main.c32
APPEND hd0
TEXT HELP
Orkas pour les nuls
ENDTEXT


Then I finally have this proteus.cfg file but it does not boot on Windows (named here orkas) :

EDITED: by Brokenman to put porteus.cfg in code tags

Code: Select all

PROMPT 0
TIMEOUT 9
DEFAULT /boot/syslinux/vesamenu.c32
MENU BACKGROUND /boot/porteus.jpg
MENU TITLE Porteus-v1.1 32bit

MENU WIDTH 30
MENU MARGIN 2
MENU ROWS 10
MENU HELPMSGROW 17
MENU TIMEOUTROW 28
MENU TABMSGROW 15
MENU CMDLINEROW 22
MENU HSHIFT 4
MENU VSHIFT 5

    menu color screen    37;40      #00000000 #00000000 none
    menu color border    30;44      #00000000 #00000000 none
    menu color title    1;36;44    #ffA32F2F #30003f07 none
    menu color unsel    37;44      #ffBDC2D9 #00000000 none
    menu color hotkey    1;37;44    #ff8037b7 #00000000 none
    menu color sel        7;37;40    #ff111B78 #003f7fbf none
    menu color hotsel    1;7;37;40  #ffaf67f7 #003f7fbf none
    menu color scrollbar    30;44      #00000000 #00000000 none

    menu color tabmsg    31;40      #ffA32222 #00000000 none
    menu color cmdmark    1;36;40    #ffff0000 #00000000 none
    menu color cmdline    37;40      #ffffffff #ff000000 none
    menu color pwdborder    30;47      #ffff0000 #00000000 std
    menu color pwdheader    31;47      #ffff0000 #00000000 std
    menu color pwdentry    30;47      #ffff0000 #00000000 std
    menu color timeout_msg    37;40      #ff809aef #00000000 none
    menu color timeout    1;37;40    #ffb72f9f #00000000 none
    menu color help        37;40      #ff666C85 #00000000 none
    menu color msg07    37;40      #90ffffff #00000000 std


LABEL orkas
MENU LABEL Orkas
COM32 /boot/syslinux/main.c32
APPEND hd0
TEXT HELP
    Orkas pour les nuls
ENDTEXT

MENU SEPARATOR

LABEL xconf
MENU LABEL Graphics mode ()
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz  vga=791 autoexec=xconf changes=/porteus/    
TEXT HELP
    Run Porteus the best way we can.
    Try to autoconfigure graphics
    card and use the maximum
    allowed resolution
ENDTEXT


LABEL fresh
MENU LABEL Always Fresh
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz nomagic autoexec=xconf
TEXT HELP
    Normally Porteus saves all changes
    to the /porteus/changes/ directory
    on the boot media (if writable)
    and restores them next boot.
    Use this option to start a fresh
    system, changes are not read from
    or written to any device
ENDTEXT

LABEL cp2ram
MENU LABEL Copy To RAM
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz vga=791 copy2ram autoexec=xconf
TEXT HELP
    Run Porteus the same as above,
    but first copy all data to RAM
    to get a huge speed increase
    (needs >768MB)
ENDTEXT

LABEL startx
MENU LABEL Graphics VESA mode
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz changes=/porteus/
TEXT HELP
    Run Porteus with KDE, but skip
    the graphics card autoconfig.
    This forces 1024x768 resolution
    using a standard VESA driver
ENDTEXT

LABEL text
MENU LABEL Text mode

KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz
TEXT HELP
    Run Porteus in text mode and
    start the command prompt only
ENDTEXT

LABEL pxe
MENU LABEL Porteus as PXE server
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.xz autoexec=pxe-boot;xconf
TEXT HELP
    Run Porteus as usual, but also
    initialize a PXE server.
    This will allow you to boot Porteus
    on other computers over a network
ENDTEXT

MENU SEPARATOR

LABEL plop
MENU LABEL PLoP BootManager
KERNEL /boot/syslinux/plpbt
TEXT HELP
    Run the plop boot manager.
    This utility provides handy
    boot-USB options for machines
    with vintage/defective BIOS
ENDTEXT

LABEL memtest86
MENU LABEL Run Memtest utility
KERNEL /boot/tools/mt86p
TEXT HELP
    Don't start Porteus at all, but
    rather run the MemTest utility
    to diagnose your computer's RAM
    for possible errors
ENDTEXT

Re: Dual boot XP and Porteus

Posted: 13 Jun 2012, 22:15
by brokenman
Is your XP on an NTFS partition?

Please try adding this to porteus.cfg

LABEL xp
MENU LABEL Windows XP
KERNEL /boot/syslinux/chain.c32
APPEND hd0 0

Also you could try: APPEND hd0 1

Re: Dual boot XP and Porteus

Posted: 14 Jun 2012, 15:21
by miguipda
Hi,

the difference between you and fanthom was the word place before the chain.c32 path.
Where fanthom told me to use COM32 you said using KERNEL.
KERNEL /boot/syslinux/main.c32
APPEND hd0 0

For information I tried both : with COM32 and with KERNEL
And for the APPEND values I tried three cases :
hd0
hd0 0
hd0 1
with COM32 and with KERNEL

No one work.

I even tried (without KERNEL and APPEND) with the line : localboot 0x80. It does not work.

I just checked now my : ls /dev
There is no hd* but well sd*

Is it possible I must have a look there ?

Thx to help me please. ;-)

PubliƩ after 6 hours 35 minutes 27 seconds:
Hi,

it seems I was really stupid yesterday. I missed the correct code. I used main.c32 in place of chain.c32.

I will try it this evening and say if it works (maybe) perfectly.

Sorry for my distraction.

Miguipda ;-)

PubliƩ after 5 hours 12 minutes 30 seconds:
[SOLVED] Re: Dual boot XP and Porteus
Hi,

here is what I used that solved my dual boot :
KERNEL /boot/syslinux/chain.c32
APPEND hd0 1

Sincerely thanks for all for your help and really quick assistance.

Please do not forget to allow us using those needed programs that are :
skype (I will need it in two days becaus I go to Canada)
zendstudio for web development

Have a nice day,

Miguipda ;-)

Re: Dual boot XP and Porteus

Posted: 14 Jun 2012, 19:24
by Hamza
Be Careful, [s|h]d0 0 is used for Master Boot Record. If you execute a command that affect/brokes the [s|h]d0 0 partition.. You can begin to search a backup of your MBR :P