PLoP Bootmanager 

Source 

http://www.plop.at/en/bootmanager.html

Description 

The PLoP bootmanager is a small tool to boot different operating systems. Its possible to boot an operating system from harddisk, floppy disk or cdrom. No extra partition is needed.

Features 

Comments 

Linux: the bootmanager DOES NOT replace lilo or grub, you still need them to load the kernel. My favorite is lilo.

USB booting 

http://www.911cd.net/forums//index.php?showtopic=18045&view=findpost&p=119644

it seems like that next version of PLOP: http://www.plop.at/bootmanager_en.html

planned for next quarter will have support for booting from USB without using BIOS!

documented on: Aug 20 2006, by jaclaz

About PLOP 

I played with PLoP. It's not as versatile as Grub for several reasons.

First, it has to be installed and from floppy. Once it's installed it's harder to remove than Grub if you get your menus messed up. It's not that logical to me how to add an item to menu. I lost my Windows XP boot option and I couldn't get it back on. It kept booting my 3rd partition which is bartpe.

Adding to your own menu is a bit more difficult and # of characters is limited. I like Grub's menu.lst method.

documented on: Aug 26 2006, by spacesurfer

About PLOP 

Whoa! A bigger problem using PLoP. If anyone has any experience with this, here what I did to screw up my system:

I used the floppy image of PLoP and loaded it with Grub. I installed it to test it out. As I mentioned in the post earlier, it didn't meet my expectations. So, I tried to uninstall it. But I don't know where it saved the back up since I loaded it from floppy image.

Well, now all I have is a C:\ drive with no data when I start BartPE from CD. I can't see the 3 partitions that I had on the HDD.

How can I restore my partitions? I haven't touched the HDD—all the data should be there. I just need to restore my partitions.

documented on: Aug 26 2006, by spacesurfer

Can you boot from a disk.iso 

http://www.freesoftwaremagazine.com/articles/grub_intro

From: Stuart Guthrie
Date: 2006-02-09

Is there a way to boot from a disk version of an iso? ie to cut-out the step where you burn a CD. This would be most handy..

Can you boot from a disk.iso 

No, I was not able to find a way to boot directly from an iso image. But it was also not the intended goal. Since grub works independently of the kernel and disk image, I can copy the compressed-cloop file (usually KNOPPIX or such), along with the kernel and minirt file, save it to my flash drive, and it would work great. Some distributions, like DamnSmallLinux rarely ever change kernels (DSL 2.3 still uses 2.4.26), I don't even need to copy over those files.

Although not much, copying the entire iso would take up a little more space. Not only are there extra files on the iso image, but there's the properties of the iso image files (Joliet and RockRidge extension information) that would all need to be saved on my flash drive. This is probably not much, but I'm working with a 256 MB drive.

So the short answer is no. But let me know if you come across a way to do it!

documented on: Tue, 2006-04-25, Jeremy Turner

The short answer is yes 

The short answer is yes :). I just spent the past two days to find out how.

use grub for dos (http://grub.blogeden.com/ - it's in chinese though)

If you just want to do something like in linux live cd, i.e., the iso file is used to host the systems files, it's easy and straightforward to use iso.

If you want to boot from a iso file on a harddisk, do something in menu.lst like

title Boot from iso on a harddisk
map (hdX,Y)/your.iso (hdZ)
map --rehook
chainloader (hdZ)+1
rootnoverify (hdZ)
boot

The iso file must be in one chunk - contig from sysinternal http://www.sysinternals.com/Utilities/Contig.html may come handy. It's a good idea to use fat32 to host the iso file.

Also check out http://www.911cd.net/forums/index.php?showtopic=15617&st=20&p=101928&#entry101928 and http://www.911cd.net/forums/index.php?showtopic=18045

documented on: 2006-10-04, Anonymous

Contig 

http://www.microsoft.com/technet/sysinternals/utilities/contig.mspx

By Mark Russinovich Published: March 21, 2007

Contig is a single-file defragmenter that attempts to make files contiguous on disk. Its perfect for quickly optimizing files that are continuously becoming fragmented, or that you want to ensure are in as few fragments as possible.

documented on: 2007-10-22

A Multi-device Multi-boot Menu Using Grub 

Multi-boot Vista / XP / Other OS's

http://www.911cd.net/forums/index.php?showtopic=18045

Finally, Success!! Success!! Success!! I wanted to share my success with you all so you can also created this awesome menu.

I finally created a Grub menu from which I can boot any one of the following items directly from the Grub menu:

Read the guide in this post to get started on Grub from HDD. This will give you a basis on this guide. Otherwise you may feel a little lost.

Let me emphasize that booting directly from CD-ROM is supported by the latest grldr (dated 8/8/2006) directly from the menu. Ed_P and jaclaz, I believe, were playing around with it and Ed_P was successful booting CD from grub floppy. However, this method requires no floppy or floppy image to be loaded first.

Requirements:

Method:

  1. Rename %systemroot%\ntldr to %systemroot%\ntldrxp

  2. Copy your grldr (the latest one) to %systemroot% and rename it to ntldr.

  3. copy menu.lst to %systemroot% or create one if you don't have one in %systemroot%

  4. Edit your menu.lst the way you want using the sample below that allows you to boot various items

Example: File Menu.lst
color black/cyan yellow/cyan
timeout 5
default 0

# This finds and loads your Windows XP.
title Microsoft Windows XP SP2 Pro (hd0,0)
find --set-root /ntldrxp
chainloader /ntldrxp
rootnoverify (hd0)

# This finds and loads BartPE on your HARD DRIVE.
title BartPE with XPE 1.0.4 (Find and Load setupldr.bin)
find --set-root /minint/setupldr.bin
chainloader /minint/setupldr.bin

# This boots BartPE from CD-ROM 0.
# You can investigate if find --set-root /I386/SETUPLDR.BIN works for you.
# Pay special attention to case. This is CaSe SeNsItIvE.
# I'm not sure if you need  the line cdrom --add-io-ports=0x03F601F0. Play around yourself.
title Start BartPE from CD-ROM 0
cdrom --add-io-ports=0x03F601F0
cdrom --init
map --hook
chainloader (cd0)/I386/SETUPLDR.BIN
boot

# This is same as above but from CD-ROM 1 (if you have more than 1 drive).
title Start BartPE from CD-ROM 1
cdrom --add-io-ports=0x03F601F0
cdrom --init
map --hook
chainloader (cd1)/I386/SETUPLDR.BIN
boot

# This simply boots a floppy disk from your physical floppy drive.
title Boot Floppy on (fd0)
chainloader (fd0)+1
rootnoverify (fd0)

# This is how you boot a floppy image stored on a FAT/FAT32 partition.
# Replace ghost.img to whatever image you desire to boot.
title Boot Ghost 2003 (ghost.img)
find --set-root /ghost.img
map --mem /ghost.img (fd0)
map --hook
chainloader (fd0)+1

# This is how you boot the Grub floppy from an image instead of the physical floppy.
title Grub4Dos (grub4dos.img)
find --set-root /grub4dos.img
map --mem /grub4dos.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
map --floppies=1
boot

Let me add that my floppy images were created by WinImage. I saved them uncompressed (meaning, they are not *.imz) as *.ima. I renamed them as *.img.

My floppy images are stored on a FAT32 partition - the same partition where my BartPE resides. The advantage of using a FAT32 partition (as opposed to NTFS) is if you boot to DOS, you have access to that partition. I store other DOS commands and utilities (such as edit.com, choice.com) on that partition. It is available for me when I need it.

Edit 2:

You BartPE does not have to be on a FAT/FAT32 partition. It can be NTFS. Even floppy images can reside on NTFS partitions.

Edit 3: Added loading Vista with grub4dos.

documented on: Jun 2 2007, by spacesurfer

A Multi-device Multi-boot Menu Using Grub 

Some small corrections/hints:

1) We are talking here about GRUB4DOS: http://grub4dos.jot.com/WikiHome which is a port of GRUB to Dos/Windows, and has ADDITIONAL features than GRUB

2) GRUB4DOS does support zipped or gzipped images DIRECTLY, so you CAN use compressed images, see my post here for basic examples: http://www.911cd.net/forums//index.php?s=&…st&p=116708

3) as already posted here: http://www.911cd.net/forums//index.php?s=&…st&p=118820 the docs EXPLICITLY say that:

By default, these ports are used for searching cdroms(so they needn't be added): 0x03F601F0, 0x03760170, 0x03860180, 0x6F006B00, 0x77007300. so the part:

cdrom --add-io-ports=0x03F601F0
cdrom --init
map --hook

is NOT needed.

4) Please also note that the majority of motherboards will allow direct BIOS support to CD drive, in this case, you will ALREADY have your CD mapped as "(cd)", not "(cd0)", again read docs:

Note 4: The BIOS might have offered a cdrom interface. It would be (cd). After `cdrom —init' and `map —hook', we might have our (cd0), (cd1), … available. It is likely that one of them could access the same media as the BIOS-offered (cd).

5) Always remember that GRUB has a command line interface, so that you can experiment with commands at boot time, or on-the-fly change some settings in a boot entry, this is VERY advantageous if you have the GRLDR on a portable disk or boot CD

6) Also remember that if you put a copy of GRUB.EXE inside the DOS/WIN98 image and or on an accessible from DOS drive (i.e. FAT formatted) you can boot from the image, do whatever you need to do, then invoke GRUB.EXE and boot another OS WITHOUT RE-BOOTING ! (some limitations apply if you loaded into DOS some TSR or Device Driver that altered memory mapping of the kernel)

7) QUOTE

> USB devices are still not supported yet.

Not really, like ANY other USB booting method, USB IS supported IF the PC boots from the USB Mass Storage Device.

They are not supported if you want to "pass" control from another booted from media to the USB device.

This CANNOT be resolved until something like the very recent development about CD support is added to the code; by the way this latest development was more or less the "native" built-in version of the ATAPI CD ROM driver of the Smart Boot Manager code for booting CD's on motherboards that did not support it: http://btmgr.webframe.org/

Chaining from GRUB/GRUB4DOS the SMBT is a known technique, see this for example: http://www.lrz-muenchen.de/~bernhard/grub-chain-cd.html

Now if someone comes out with an Open Source/Freeware app that can "boot" from USB even if there is no BIOS support for it, one could use a similar method to chainload it from GRUB/GRUB4DOS.

documented on: Aug 8 2006, by jaclaz

A Multi-device Multi-boot Menu Using Grub 

grub4dos is BOTH a hard drive and CD bootloader, but it is much more, it can also boot from a floppy (or USB stick - sorry frodo, I know I am touching a sensible area wink.gif) and pass control to another media, like CD, or HD, or FD.

It can also boot an OS from floppy disk or hard disk IMAGES, directly or through memdisk, the images can be Zip or gzip compressed.

And it can boot an OS from a .ISO image, (not all OS images are suitable), and in some cases the .ISO images can even be compressed, I just got this bot of info from Tinybit, the Grub4dos developer:

First, do a map like this:

map (hd0,0)/cdrom_image.iso (hd1)
map --hook

This requires a physically contiguous cdrom_image.iso on the disk. But if we have enough memory and use the —mem option, the image can be non-contiguous (and even can be gzipped):

map --mem (hd0,0)/cdrom_image.iso.gz (hd1)
map --hook

The second option, mapping the .iso to RAM should be easier, but of course it will need either a lot of memory or a smallish .iso.

Then use (hd1) to access files inside the cdrom image.

i.e. something like:

root (hd1)
chainloader

or:

root (hd1)
chainloader /SETUPLDR.BIN

or:

root (hd1)
chainloader /IO.SYS

The very good thing about it is that the same syntax can be applied to all these devices with slight changes.

jaclaz

documented on: Aug 8 2006, by jaclaz

A Multi-device Multi-boot Menu Using Grub 

title Boot from iso on a harddisk => kub610.iso
   map (hd0,5)/kub610.iso (hd2)
   map --rehook
   chainloader (hd2)+1
   rootnoverify (hd2)
   boot

since 2005-04-06 version 0.4.0pre6: GRLDR can be used with no-emulation-mode bootable CD-ROM.

The New `cdrom' Command Syntax:

  1. Initialize the ATAPI CDROM devices: grub> cdrom —init This will display the number of atapi cdroms found: atapi_dev_count

  2. Stop the ATAPI CDROM devices: grub> cdrom —stop This will set atapi_dev_count to 0.

  3. Add IO ports for searching the atapi cdrom devices. For example: grub> cdrom —add-io-ports=0x03F601F0

After running `cdrom —init' and `map —hook', the cdroms can be accessed through devices (cd0), (cd1), …

documented on: Jan 27 2007, by L_V

A Multi-device Multi-boot Menu Using Grub 

> > how did you make a floppy image with SBM on it?
>
> Use the file you download with the GRUB instructions shown on the link:
>
>   title Boot "El Torito" CD with the help of memdisk/smart boot manager
>   kernel /boot/grub/memdisk.bin
>   initrd /boot/grub/sbootmgr.dsk

I've loaded SBM this way:

title Smart Boot Manager
 find --set-root /IMAGES/SBM.GZ
 map --mem /IMAGES/SBM.GZ (fd0)
 map --hook
 chainloader (fd0)+1
 rootnoverify (fd0)

This is just using the sbm.bin file that's gzipped. It's ~15K in size.

Booting a PE based ISO image 

http://www.911cd.net/forums//index.php?showtopic=17923

After reading some very interesting stuff about grub, memdisk, isolinux, bootable disk images and so on, I understand that it is possible to boot eg knoppix from iso file using grub commands to load the kernel and to load the iso file from a device.

My question is can I load each and every ISO (that contains an OS)…?

Short answer

NO

Long answer

Yes, but there are different ways for each OS that is on the .iso, and some limitations apply.

For XP/PE based, yes, it should be possible, by using the direct loading capability of GRUB4DOS to load PELDR or whatever the SETUPLDR.BIN is named to and using the Windows 2003 Server files to boot through ramdisk.

Some details are here:

How to get a boot menu before loading BartPE http://www.911cd.net/forums//index.php?showtopic=16980

Please note that GRUB4DOS and Linux GRUB are not the SAME program, though they have common roots and code.

Also read these: http://z3.invisionfree.com/Boot_Land/index…p;showtopic=155 http://www.boot-land.net/forums/index.php?showtopic=14

jaclaz

documented on: Jul 26 2006

Booting a PE based ISO image 

> I have a bootsect.bin on my disk, is that the same as SETUPLDR.BIN?

No, bootsect.bin is a copy of a bootsector, i.e. a 512 byte file.

SETUPLDR.BIN is the loader of the setup, and consequently of PE based systems, you can find a copy of it in the /I386 directory of your original source XP cd.

The particular version of SETUPLDR.BIN that ships with Server 2003 SP1 has additional capabilities, between which the capability to access an .iso file, copying it to a ramdisk, then booting from it, you will also need another feile from Win2003 SP1, called RAMDISK.SYS, check this

bootsect.bin being a copy of a bootsector has hardcoded inside it the geometry of the partition from which it was copied, so it is not a "portable" solution (unless you copy it to an IDENTICAL partition), and you have to recreate it each time, the advantage of GRUB4DOS/GRLDR is that it can load directly SETUPLDR.BIN, without using bootsect.bin, however the procedure to build a correct peboot.bin is described in cdob post right here http://www.911cd.net/forums//index.php?showtopic=14164&st=20

if you use the above method, SETUPLDR.BIN must be in the root directory of the drive and be renamed to PELDR.

Of course using the ramdisk to boot has some limitations, given by the SIZE of the .iso file and AMOUNT of memory on the PC.

jaclaz

documented on: Jul 26 2006

Booting a PE based ISO image 

Basically, you need to find a way (it depends from tools you may or you may not have at your disposal) to modify the .iso adding in folder \i386\system32\ (if the structure of the ERD .iso is that) the ramdisk.sys file from Server 2003 SP1.

The procedure to extract the file is described in this thread: http://www.911cd.net/forums/index.php?showtopic=10806

Then supposing that you have (and already bootable, working, etc. on your hard disk root folder the "normal" NT bootfiles:

NTLDR
NTDETECT.COM
BOOT.INI

You have to add to it:

  1. The .iso file, let's say that it's name is ERDNT.ISO

  2. The GRLDR file from GRUB4DOS: http://grub4dos.jot.com/WikiHome

  3. The SETUPLDR.BIN from Win2003 SP1

  4. A file named WINNT.SIF with this contents:

    [SetupData]
    BootDevice = "ramdisk(0)"
    BootPath = "\I386\SYSTEM32\"
    OsLoadOptions = "/noguiboot /fastdetect /minint /rdexportascd /rdpath=ERDNT.ISO"
  5. A file named menu.lst with this contents:

    # This is a basic menu.lst file for GRUB4DOS
    # Following is the timeout for the default choice
    # By not pressing any key during the timeout, the default will be chosen
    timeout 10
    # Following is the menu item that will default
    default 0
    # This reflects the "normal" behaviour of a PC
    # i.e. booting the first partition of first harddisk
    # By setting it as default with timeout 10 seconds (see above)
    # We try to replicate somehow the "Press any key to boot from CD..." message
    # of Microsoft Install CDs, this way if no key is pressed, as an example for
    # unattended installs, the system will boot "normally" even if CD is inserted
    # of course if the "any" you press is [ENTER] system will boot from this entry
    title Boot Hard Disk MBR on (hd0,0)
    chainloader (hd0,0)+1
    rootnoverify (hd0)
    title NTLDR
    # This entry simply tries to load a NT/Win2K/XP/2003
    # system ALREADY on your hard disk using the NTLDR/NTDETECT.COM
    # and boot.ini on the CD
    find --set-root /NTLDR
    chainloader /NTLDR
    title SETUPLDR.BIN
    # This entry simply tries to directly load a PE system
    # from SETUPLDR.BIN in the root directory
    find --set-root /SETUPLDR.BIN
    chainloader /SETUPLDR.BIN
  6. Then you need to edit BOOT.INI adding at the end of it this line:

    C:\GRLDR="GRUB"

Please remember that GRUB4DOS use CaSe SeNsItIvE names!

It is recommended that you check the names of the involved files by issuing a DIR command in a command prompt window.

> And if i can boot from ISO, are there any limitations?

As said limitations are given by size of image and amount of RAM installed on the PC, you need RAM > (amount of RAM used by the .iso file when booted directly from CD + size of .iso file).

If I recall correctly the ERD .iso I used was less than 200 Mb, so, a machine with 512 Mb would be more than sufficient, probably a 256 Mb one would be a little "tight", a 128 Mb one is a "NO WAY".

jaclaz

P.S. The board "wraps around" some lines of the posted code the lines above that begin with: (in WINNT.SIF): OsLoadOptions = (in menu.lst): By not pressing We try to replicate of Microsoft Install unattended installs # of course if the "any" are really one line with the following one

Bart PE + boot Menu on ThumbDrive 

http://www.911cd.net/forums//index.php?showtopic=17425

I know bart PE has an option to create a bootable USB thumb drive. But this is what i need.

I have a menu that starts when i boot from my CD and i would like to have that same boot menu or something like it on the thumb drive.

I am glad Bart was able to get Barts PE to boot on a Thumb drive, but is there a way to make BartPE load from the thumb drive and not from an ISO that loads into ram from the thumbdrive?

I have found lots of ways to make Dos boot on the thumb drive. But i don't know how to make Dos load an IMG file or BIN/ISO file for Windows server 2003 and bart.

SportinSS

Bart PE + boot Menu on ThumbDrive 

As said there is no one-size-fits-all solution.

Let's start one thing at the time.

Please confirm that your USB stick with just BartPE on it works the way you intend it to.

With the above info I can give you instructions on how to boot with GRUB4DOS the same environment, later we will try and add a DOS based OS, say DOS 7.1 from Windows 98 2nd edition, later still will try and add an OS install, say Server 2003 (not a bootable system, just the files needed for install.

jaclaz, Jun 15 2006

Bart PE + boot Menu on ThumbDrive 

BartPE is kind of working the way i want it to. It will just take a little time to get the batch file to start so i can make the variable %usb% in BartPE so the start menu programs know where to start from.

The files on the usb drive are

Folder: Programs
File: bartpe.iso
File: ntdetect.com
File: ntldr
File: winnt.sif

I also would like a folder called

Folder: SVOL

For Windows Server 2003 Standard Install Files. I need to be able to boot into the Windows Server 2003 Setup so i can do a repair on Windows or use the recovery consol just in case the server has a problem.

AND, if there is room.

I have a few IMG files (Acronis programs, Disk Director and True Image Enterprise) i will like to be able to boot to also, just in case.

SportinSS

Bart PE + boot Menu on ThumbDrive 

So, you are using setpldr.bin from Server 2003 renamed as ntldr to boot off a .iso file copied to RAM via ramdisk.sys?

Try doing the following:

  1. Rename the ntldr you have in your root to peldr

  2. Add to the root of the stick a "normal" ntldr (i.e. copy it from your hard disk)

  3. Add to the root of the stick GRLDR (from the grub4dos package)

  4. Add to the root of the stick a text file named boot.ini with this content:

    [Boot Loader]Timeout=10
    Default=C:\GRLDR
    [Operating Systems]
    C:\GRLDR="Start GRUB"
  5. Add to the root of the stick a text file named menu.lst with this content:

    timeout 10
    default 0
    title Boot Hard Disk MBR on First HD (hd0,0)
    chainloader (hd0,0)+1
    rootnoverify (hd0)
    title BARTPE
    chainloader /peldr

Try booting from the stick and report what happens.

Please remember that GRUB filenames are CaSe SeNsItIvE.

jaclaz

documented on: Jun 15 2006

Bart PE + boot Menu on ThumbDrive 

Thank you SO much for your help! OK.

I get

GNU GRAB version 0.97
Boot Hard Disk Drive MBR on First HD (hd0,0)
BARTPE

and a few things at the bottom about the arrows.

It will let me boot into BartPE just fine!

SportinSS

Bart PE + boot Menu on ThumbDrive 

> I forgot the [Operating Systems] line in my previous post)
> if you do so you will not have ANY
>  Windows (default)
> line when booting, but rather a single entry:
>
> Start GRUB (default)

It does NOT show Windows (default) at all now. Just goes str8 to the menu. GREAT!! =) Now i just need WIndows Server 2003 Setup.

Here is my Menu.list

timeout 10
default 0

title Boot Hard Disk MBR on First HD (hd0,0)
chainloader (hd0,0)+1
rootnoverify (hd0)

title BARTPE
chainloader /peldr

title Windows Server 2003 Setup
chainloader /i386/setupldr.bin

Here is my boot.ini

[Boot Loader]
Timeout=10
Default=C:\GRLDR

[Operating Systems]
C:\GRLDR="Start GRUB"

And here is my winnt.sif

[SetupData]
BootDevice = "ramdisk(0)"
BootPath = "\I386\SYSTEM32\"
OsLoadOptions = "/noguiboot /fastdetect /minint /rdexportascd /rdpath=bartpe.iso"

SportinSS

documented on: Jun 21 2006

How to get a boot menu before loading BartPE using GRUB4DOS 

http://www.911cd.net/forums//index.php?showtopic=16980

What I'm after is a way to dual boot my 1GB USB flash stick. I have successfully installed (and can boot from) the Bart PE on it. But I would like a way to get a menu so I can boot right to DOS so I can run other utilities from the USB flash stick.

You can choose to:

  1. Install "normally" NTLDR with an entry in boot.ini that points to a DOS bootsector (made with BOOTPART) and another one pointing to GRLDR + an entry in menu.lst pointing to your SETUPLDR.BIN.

  2. Install directly GRLDR with an entry in menu.lst pointing to your SETUPLDR.BIN + an entry pointing to a DOS floppy image

Also check these: http://www.911cd.net/forums//index.php?showtopic=10806 http://www.msfn.org/board/index.php?showtopic=69211

here is some detailed info.

I am assuming that you already can boot both DOS (the one from Windows 98 aka 7.1) and PE from USB without problem.

Version 1, NORMAL DOS INSTALL 

Format the key as usual, including SYSTEM files IO.SYS MSDOS.SYS COMMAND.COM Verify that it boots. Add to the key the /I386 directory Add to the key GRUB.EXE and the following MENU.LST:

# This is a basic menu.lst file for GRUB4DOS

# Following is the timeout for the default choice
# By not pressing any key during the timeout, the default will be chosen
timeout 10

# Following is the menu item that will default
default 0

# This reflects the "normal" behaviour of a PC
# i.e. booting the first partition of first harddisk
# By setting it as default with timeout 10 seconds (see above)
# We try to replicate somehow the "Press any key to boot from CD..." message
# of Microsoft Install CDs, this way if no key is pressed, as an example for
# unattended installs, the system will boot "normally" even if CD is inserted
# of course if the "any" you press is [ENTER]system will boot from this entry
title Boot Hard Disk MBR on (hd0,0)
chainloader (hd0,0)+1
rootnoverify (hd0)

title NTLDR
# This entry simply tries to load a NT/Win2K/XP/2003
# system ALREADY on your hard disk using the NTLDR/NTDETECT.COM
# and boot.ini on the CD
chainloader /NTLDR

If you have your SETUPLDR.BIN renamed as NTLDR in the root directory, it should work.

Alternatively, try adding the following to menu.lst:

title SETUPLDR.BIN
# This entry simply tries to directly load BartPE
# from SETUPLDR.BIN in the /I386 directory
chainloader /I386/SETUPLDR.BIN

version 2, Through NTLDR 

Format the key as usual, including SYSTEM files IO.SYS MSDOS.SYS COMMAND.COM Verify that it boots.

Copy to the stick bootpart and use it to make a bootsector with DOS Win9x code, say C:\bootsect.dat Use bootpart to rewrite the NT/2K/XP bootsector. Copy to the stick NTLDR and this BOOT.INI:

[Boot Loader]
Timeout=5
Default=C:\Bootsect.dat
[Operating Systems]
C:\Bootsect.dat="Windows 98 Command Line" /win95
C:\GRLDR="GRUB"

Add to the stick GRLDR and menu.lst

version 3, Direct GRUB4DOS+DOS (win9x) 

Format as usual, as above.

Copy to the stick GRLDR, menu.lst and bootlace.com, use it to install GRLDR as the main bootmanager in the MBR.

use the options:

--force-backup-mbr
--boot-prevmbr-first
--time-out=5
--hot-key=3920

This way if the SPACEBAR is not pressed within 5 seconds, GRLDR will boot, otherwise the normal DOS will.

The above are just examples, another way is using simply a Floppy image for the DOS booting, in this case you need an entry in menu.lst along these lines:

title Win98SE (Win98SE.ima)
# This image has been set to boot using directly the GRUB bootloader
# You might also want to experiment with compressed images and memdisk
# The image is first mapped to memory as first floppy
# then Int13h is hooked
# finally the 1st sector of floppy is chainloaded and booted
map --mem /IMAGES/Win98SE.ima (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

title Win98SE (Win98SE.ima.gz)
# This image has been set to boot using directly the GRUB bootloader
# This example uses a compressed image (gzipped)
# The image is first mapped to memory as first floppy
# then Int13h is hooked
# finally the 1st sector of floppy is chainloaded and booted
map --mem /IMAGES/Win98SE.ima.gz (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

title Win98SE (Win98SE.imz) memdisk
# This image has been set to boot using memdisk
# Using memdisk instead of direct GRUB booting
# If the compressed image does not boot through memdisk you can always
# try to uncompress it and use it with direct GRUB booting
kernel /IMAGES/memdisk.gz
initrd /IMAGES/Win98SE.imz
Boot

Instead of the floppy image one can use a partition image, there are so many possibilities that it's impossible to list them all.

If on the stick there is also GRUB.EXE it is possible to re-start GRUB from the DOS command line without rebooting.

Please NOTE that GRUB paths/filenames are CaSe SeNsItIvE!

jaclaz

documented on: May 8 2006

version 3, Direct GRUB4DOS+DOS (win9x) 

I wanted to mess with the boot.ini again real quick. I found that if I copy the ntldr from my XP box to the root of the USB flash then I can get it to give me a menu. However I can't get it to load the BartPE regardless of how I try to edit the boot.ini file.

— QUOTE (Raceit @ May 8 2006)

Raceit, you are missing a logical step:

  1. The BOOTSECTOR (i.e. first sector of the Active Primary Partition) contains CODE that boots (under NT/2K/XP/2003) the NTLDR

  2. The NTLDR has the capacity to boot (through the selection in BOOT.INI and using NTDETECT.COM) only the windows NT/2K/XP/2003 System partition, (i.e. \Winnt or \Windows) through an arcpath sintax, (i.e. something like multi(0)disk(0)rdisk(0)partition(1)\WINNT)

  3. To keep compatibility with elder MS operating systems, the NTLDR has also the option to load ANOTHER bootsector; this bootsector MUST have the same geometry (dynamic data) of the main one, but can have different CODE, i.e. can load something different like the DOS files IO.SYS SDOS.SYS COMMAND.COM or another OS, or even another bootloader

  4. BartPE normally boots by using a copy of SETUPLDR.BIN renamed as NTLDR or PELDR.

  5. SETUPLDR.BIN behaves differently from NTLDR:

    1. It DOES NOT use the BOOT.INI settings file

    2. Searches for needed files in the \I386 directory (this is fixed, hardcoded INSIDE SETUPLDR.BIN, needs hexediting to be changed) or in the \minint one if on hard disk

    3. Reads the textsetup.SIF, or WINNT.SIF (or any other .sif file)

The way to have a BartPE selection in boot.ini is to have an alternate BOOTSECTOR, peboot.bin, that loads PELDR (i.e. a renamed SETUPLDR.BIN) INSTEAD of NTLDR.

So the booting goes like this:

  1. REAL BOOTSECTOR loads NTLDR

  2. NTLDR loads BOOT.INI

  3. If the line invoking the ALTERNATE bootsector peboot.bin is chosen, peboot.bin loads PELDR

You cannot load anything else but an ARCPATH or a BOOTSECTOR from NTLDR/BOOT.INI!

See these threads here: http://www.911cd.net/forums//index.php?showtopic=2316 http://www.911cd.net/forums//index.php?showtopic=11213 http://www.911cd.net/forums//index.php?showtopic=11226 http://www.911cd.net/forums//index.php?showtopic=13930 http://www.911cd.net/forums//index.php?showtopic=14684

and this post from cdob: http://www.911cd.net/forums//index.php?showtopic=14164&st=20

Using GRLDR or GRUB.EXE makes it possible to load DIRECTLY (i.e. chainload) NTLDR or SETUPLDR.BIN without need for renaming the latter to NTLDR or PELDR.

jaclaz

documented on: May 8 2006

Pe2usb: Installing Bartpe To Usb Flash Disk 

http://www.911cd.net/forums/index.php?showtopic=10806

I've been playing around with the new setup loader that comes with server 2003 sp1 (release candidate) and this opens the door to load BartPE on USB sticks through a ramdisk loader (not to be confused as the ramdrive "b:" you have in BartPE). So I've created a simple script that helps you to install it.

Please check instructions below (piece from pe2usb.txt)

Pe2usb: Installing Bartpe To Usb Flash Disk 

  1. . .

Installation of PE2USB: You should copy the files pe2usb.cmd and pe2usb.bin to your <pebuilder> directory.

For successful installing BartPE to a USB flash disk you need:

  1. A USB flash disk with a capacity of 256MB or more

  2. Server 2003 SP1 (or a release candidate). You can download this from http://www.microsoft.com/downloads/details.aspx?familyid=02734CEA-7A4B-4D95-B220-8E1708C3ED46 This file is large, about 350MB!!! Unpack the files from the service pack (this is not installing) with: sr1sp.exe -x, lets assume you extract it to c:\server2003sp1 Create the folder <pebuilder>\srsp1 Copy the file c:\server2003sp1\i386\setupldr.bin to the <pebuilder>\srsp1 folder Expand the file c:\server2003sp1\i386\ramdisk.sy_ to the <pebuilder>\srsp1 folder expand -r c:\server2003sp1\i386\ramdisk.sy_ <pebuilder>\srsp1 You can now remove the c:\server2003sp1 folder, not needed anymore…

  3. Build BartPE using pebuilder as normal, you must set the output folder to "BartPE", you do not need to generate an ISO image for now.

  4. Run "pe2usb -f <drive:>" to format and install the files to your UFD. Formatting is only needed the first time, so next time you can run "pe2usb <drive:>" (without -f) to update the BartPE files.

For successful booting BartPE from a USB flash disk you need:

  1. A PC that is capable of booting from a USB flash disk with 256MB memory or more.

  2. . .

    Download: http://www.nu2.nu/pebuilder/files/pe2usb101.zip[]

Bart Lagerweij

documented on: Feb 9 2005

Pe2usb: Installing Bartpe To Usb Flash Disk 

It is a good idea to test the stick+motherboard combo with a "normal" dos boot utility, I found several of them:

sp27213 HP Windows Format Utility for USB Drive Key or DiskOnKey
sp27214 DOS-based Format Utility for HP Drive Key or DiskOnKey USB Device
sp27608 Windows-based Format Utility for HP Drive Key or DiskOnKey USB Device
(substitutes 27213)

Just make a google search for sp27xxx where x is the number and you will find the hp page for download.

Dell has a utility to make their keys bootable. R69131.EXE ftp://ftp.dell.com/rmsd/R69131.exe

There is another one from hp called cp004916 that includes syslinux.

And yet another one apparently from Smart Modular, known to be Lexar compatible, called usb_memory_boot_setup.exe

(just google for the filename)

jaclaz

documented on: Feb 11 2005

PEinst 

http://www.911cd.net/forums//index.php?showtopic=17303

mkbt -x -c c: c:\peboot.bin nt2ldr c:\peboot.bin

Boot.ini:

timeout=3 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn C:\peboot.bin="MyoteXPE ram Loader"

Winnt.sif:

BootDevice = "ramdisk(0)" BootPath = "\i386\SYSTEM32\" OsLoadOptions = "/noguiboot /fastdetect /minint /rdpath=MyoteXPE.sdi /rdimageoffset=36352"

Myote

documented on: Jun 5 2006

PEinst 

> 1) on internal hdd where WinXP are already stored
> 2) on external (usb) hdd (not pendrive) where SDI will be only
> 3) on external (usb) pendrive (flashdisk)

A NT boot sector load filename ntldr.

1) use a bootsector file.

\ntldr (true ntldr)
\peldr (renamed setupldr.bin)
\boot.ini
\ntdetect.com
\winnt.sif

sdi image according to winnt.sif.

Extract primary partition bootsector and hexedit file. Compare Bart's peinst plugin.

2 and 3)

\ntldr (renamed setupldr.bin)
\ntdetect.com
\winnt.sif

sdi image according to winnt.sif.

cdob

documented on: Jun 5 2006

PEinst 

http://www.911cd.net/forums//index.php?showtopic=14164&st=20

There is ntldr. This boot windows, dosn't support /minint mode and can't boot PE. If you try that, you get a missing hal.dll.

But ntldr chain load bootcode files. Recory console boot that way. BartPE use the same solution.

c:\ntldr read boot.ini. You select bootcode file. Bootcode file is loaded in RAM and processed. This runs peldr (renamed setupldr.bin) Setupldr.bin support /minint mode.

Go back to partition c: first. If you managed that, take next step.

Run 'mkbt -x -c c: c:\peboot.bin' manually. Do you get a file c:\peboot.bin?

This boot loader file loads file ntldr. File name ntldr is used already, but we have to load setupldr.bin. Bart's solution: hexedit c:\peboot.bin, change ntldr to peldr. Run 'nt2peldr.exe c:\peboot.bin'

Edit c:\boot.ini, point to c:\peboot.bin. Copy files to c:\minint. Copy setupldr.bin to c:\, rename to peldr. Reboot.

Next step: primary partition d: at first hard disk. Run 'mkbt -x -c d: c:\peboot-d.bin' manually. Don't hexedit, therefore copy setupldr.bin to d:\, rename to ntldr.

cdob

documented on: Oct 23 2005

PEinst 

For others who may pass this way.

I have given up on PEinst, again. Neither version 3.1.3 nor 3.1.4 worked when run from the CD or the hd. In all cases the BartPE on my backup drive failed in booting after the Windows XP screen displayed. The screen went dark and stayed that way.

However, my backup drive does boot BartPE once again using a different approach. It is much simpler than PEinst and works consistently.

I copy the PEBuilder output files to the hard drive, rename i386 to minint and copy several files to the root. My crude but functional script does the steps.

@echo off&Title Eds PEtoHD script&Color 17&MODE CON COLS=60
rem Ed_Ps BartPE to HD

 :: Script designed to ride in the folder above the output folder of PEBuilder and
 :: with the name of the output folder being BartPE.  In my case the PEBuilder folder.

 :: Set location of destination HD or partition

set HD=P:

 :: Delete existing HD BartPE system

if not exist %HD%\ntldr goto BUILDHD
del   %HD%\ntldr
del   %HD%\ntdetect.com
del   %HD%\txtsetup.sif
del   %HD%\autorun.inf
del   %HD%\bootsect.bin
del   %HD%\win51ic
del   %HD%\win51ic.sp2
del   %HD%\winbom.ini
rmdir %HD%\Programs /s /q
rmdir %HD%\minint   /s /q

 :BUILDHD
 :: Begin building HD system

mkdir                 %HD%\minint
mkdir                 %HD%\Programs

 :: Move to PEBuilder output folder

cd BartPE
cd i386

 :: Copy files to HD

echo on
copy ntdetect.com     %HD%\
copy txtsetup.sif     %HD%\
copy setupldr.bin     %HD%\ntldr
@echo off
echo.
echo Building minint...
xcopy *.*             %HD%\minint /s > nul
echo.

cd ..
echo on
copy *.*              %HD%\
@echo off
echo.
echo Building Programs...
xcopy Programs\*.*    %HD%\Programs /s > nul
echo.

 :: Verify the results

cd ..
dir %HD%\

echo.
echo PEtoHD finished.
echo Press any key to exit
pause > nul

As I said crude, but effective. I still use GRUB to boot the backup system and BartPE comes up everytime.

Ed_P

documented on: Nov 6 2005

A Multiple Partition USB Stick with Multi Boot OS 

http://www.msfn.org/board/Multiple_Partition_USB_Stick_Multi_Boo_t69211.html

I wanted several operating systems on a USB stick and after many hours messing with syslinux, memdisk, grub4dos, xosl, freedos, avlgomgr, acronis os selector, ranish partition manager. I have succumbed. I first started out wanting to boot an iso off USB and ran into trouble loading large img with memdisk which I found out is due to a bug in msdos so I used freedos but things didn't work out as planned and it's a similar woe story's with the rest. Acronis os selector lets you boot multiple os from one partition from different folders but don't work great when it comes to dos.

I have 5 partitions on my USB stick and using the boot loader BootIt NG http://www.bootitng.com/bootitng.html This is a 30 day trial.

Now I wasn't happy just putting one os on my USB stick. I wanted linux and diagnostic tools etc.

We want your first partition dos bootable so run HP USB Disk Storage Format Tool. I'm using version 2.1.8. Select your drive letter of your USB device and select "Create a DOS startup disk" and browse to your 98 boot disk folder. Click Start. Your USB will be formatted and 3 files will be copied from your dos startup files. You need to manually copy the rest of the 98 boot files to your USB drive.

You can now resize the drive (mines 512MB) and create multiple partitions. All partition software now sees it as a fixed disk. I used acronis disk director and resized the partition keeping the first dos bootable partition intact and made another 4 fat partitions so I had 5 in total.

Make sure your format all partitions as Primary not Logical.

  1. . .

Copy dos,ghost whatever files to your dos partititon and copy your bartpe files to the bartpe partititon.

Check you have the 2 files mkbt.exe & pe2usb.bin in your pebuilder folder. Download Pe2usb if not. Open up a cmd box in your pebuilder dir and run the command:

mkbt.exe -x pe2usb.bin N:

N being the letter of your bartpe partition.

Reboot and keep your USB stick in and boot off the dos cd or floppy.

Type the command sys drive: drive being the letter of your dos partititon.

Run spfdisk.exe in dos. Create the menu to boot both partitions in spfdisk. Save the changes.

  1. . .

XP booting direct from USB 

http://www.911cd.net/forums//index.php?showtopic=14181

after nearly 100 hours of searching in the dark I succeed to build a STABLE XP Embedded image which runs direct from USB drive (HD, Stick) as BOOTDEVICE und looks very like XPPro (Directx9c…ALL XP Games are running) but only 200- 500MB large. There is a page from Microsoft

http://www.microsoft.com/whdc/device/storage/usb-boot.mspx

I know from udoc, that they have a USB solution with a SCSI miniportdriver, working only on their USB flash drives. My solution costs nothing and works anywhere.

Dietmar

documented on: Oct 21 2005