[SOLVED] Dual boot XP and Porteus

Here you can post about non-standard installation methods
(for example when using grub4dos).
miguipda
Samurai
Samurai
Posts: 157
Joined: 12 Jun 2012, 18:21
Location: france

[SOLVED] Dual boot XP and Porteus

Post#1 by miguipda » 13 Jun 2012, 20:06

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
Last edited by miguipda on 14 Jun 2012, 21:04, edited 2 times in total.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Dual boot XP and Porteus

Post#2 by brokenman » 13 Jun 2012, 22:15

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

miguipda
Samurai
Samurai
Posts: 157
Joined: 12 Jun 2012, 18:21
Location: france

Re: Dual boot XP and Porteus

Post#3 by miguipda » 14 Jun 2012, 15:21

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 ;-)

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Dual boot XP and Porteus

Post#4 by Hamza » 14 Jun 2012, 19:24

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
NjVFQzY2Rg==

Post Reply