[syslinux] Trying to multiboot bartpe & puppy linux on a usb flash with syslinux

Mr. X tlviewer at yahoo.com
Mon Nov 16 17:58:24 PST 2009


Jernej,

Firstly, its working now and thanks to all the respondents. The trouble
did have to do with chain sector booting. 
(inline)

--- On Sun, 11/15/09, Jernej Simončič <jernej.listsonly at ena.si> wrote:

> From: Jernej Simončič <jernej.listsonly at ena.si>
> Subject: Re: [syslinux] Trying to multiboot bartpe & puppy linux on a usb flash with syslinux
> To: syslinux at zytor.com
> Date: Sunday, November 15, 2009, 2:02 AM
> On Sunday, November 15, 2009,
> 3:46:18, Mr. X wrote:
> 
> > Next I mount the puppy iso and copy over the isolinux
> setup. Then I change
> > isolinux.cfg to syslinux.cfg, edit, and add these
> lines for bartpe
> 
> I successfully boot BartPE using this:
> 
> label bartpe
>         kernel chain.c32
>         append hd0
> ntldr=/minint/setupldr.bin
> 
> label bartmem
>         kernel chain.c32
>         append hd0 ntldr=/sdildr
> 
>I used to use boot sector chainloading in the past, but it wasn't reliable >- it worked on some machines and failed on others, completely randomly.
> 

To fix it, I kept the filesystem and formatting, but I extracted the bootsector when BARTPE worked before using syslinux and used that to chain boot.

So use the v. 2.0.6 HPw tool, add the files shown below from usb root, then in Centos5 did
#dd if=/dev/sda1 of=bmbr.bss bs=512 count=1

Next I added folders to tidy up things and separate the ldlinux.sys from any bartpe system files. (see the folder tree below)


-------------- directory of USB flash -------
[root at hercules tlviewer]# ls -al /media/disk/*
 209590272 Nov  9 19:28 /media/disk/bartpe.iso
       512 Nov 16 16:54 /media/disk/bmbr.bss
     47564 Apr 13  2008 /media/disk/ntdetect.com
    298096 Mar 24  2005 /media/disk/ntldr
       512 Feb 10  2005 /media/disk/pe2usb.bin
       154 Nov  7 18:38 /media/disk/winnt.sif

/media/disk/pup:
total 107032
    1427019 Oct 15 17:20 initrd.gz
 106110976 Oct 15 17:27 pup-431.sfs
   2024512 Oct 15 17:19 vmlinuz

/media/disk/syslinux:
total 3192
  1474560 Apr 26  2008 bing
    2048 Nov 16 16:52 boot.cat
     105 Nov 16 16:52 boot.msg
   15652 Nov 16 16:52 chain.c32
     950 Nov 16 16:52 help.msg
   14982 Nov 16 16:56 ldlinux.sys
   95545 Nov 16 16:52 logo.16
   20056 Nov 16 17:35 memdisk
   99256 Nov 16 17:35 memtest
     334 Nov 16 17:36 syslinux.cfg
 1474560 Mar 18  2003 wxpboot.ima
------------- end usb folders ---------

------------------- syslinux.cfg -------------
default bartpe
display boot.msg
prompt 1
timeout 50

F1 boot.msg
F2 help.msg

label puppy
kernel /pup/vmlinuz
append initrd=/pup/initrd.gz pmedia=USBFLASH

label bartpe
bss /bmbr.bss
append -    

label bing
kernel memdisk
append initrd=bing

label memtest
kernel memtest
append -

label winxp
kernel memdisk
append initrd=WXPBOOT.IMA
------------------ end cfg --------------

cheers,
Mark


      




More information about the Syslinux mailing list