Help - Search - Members - Calendar
Full Version: Run BartPE from folder \I386 at hard disk
The CD Forum > Bart's PE Builder > General
cdob
BartPE can be run from harddisk.
Folder \minint is used by default.

You may use \I386 instead.
Some plugins use 'X:\I386' strings.
And for testing purposes it's nice to have \I386. E.g. create a printer *.bud file and use at cd later.

There may be a renamed setupldr.bin at hard disk.
New file name \ntldr or \peldr. Backup this file first and edit file next.

C:\I386 may be used already.
Don't use your default windows partition.
Install BartPE at a additinal partition to avoid confusion.

CODE
@echo off
rem gsar by Tormod Tjaberg  http://home.online.no/~tjaberg/

set setupldr_bin=D:\peldr

rem change "\minint\txtsetup.sif" to "\i386\txtsetup.sif 0x00 0x00"
rem change "\minint\system32\"    to "\i386\system32\ 0x00 0x00"
gsar -B -o  "-s:x00\minint\txtsetup.sif:x00" "-r:x00\i386\txtsetup.sif:x00:x00:x00" "%setupldr_bin%"
gsar -B -o  "-s:x00\minint\system32\:x00" "-r:x00\i386\system32\:x00:x00:x00" "%setupldr_bin%"


This opens new possiblilies too: several BartPE versions at one partition.
pavel
Not tested yet, but do you think it can works? Ntldr/setupldr.bin is binary file and replacing 6 chars to 4 chars, hm, can't believe it can works...

Have you tested it?

Pavel

edit: I am sorry, it adds two "empty" bytes "0"...

So, it is good for my idea "multiboot BartPE" on hdd: http://www.911cd.net/forums//index.php?showtopic=17416

Pavel
cdob
@pavel

A C string terminates with 0x0.

Yes, this has been tested and works. At last here.

Yes, this has been written for your "multiboot BartPE" on hdd.
Ed_P
Where does one find "gsar"? And can the alternate BartPE partiton be booted using XP's boot.ini or is GRUB necessary? Can this concept be extended to booting BartPE on a partition on a 2nd hd?


Update

One question answered. http://gnuwin32.sourceforge.net/packages/gsar.htm
cdob
QUOTE (Ed_P)
Where does one find "gsar"?
Quoting myself from first post: rem gsar by Tormod Tjaberg http://home.online.no/~tjaberg/

QUOTE
And can the alternate BartPE partiton be booted using XP's boot.ini or is GRUB necessary?
Both ntldr/boot.ini or GRUB is possible.
You have to load setupldr.bin(renamed and edited). How you boot setupldr.bin dosn't matter.
You may use any less or equal six char name, e.g. 'Ed_P'. If you truncate name, fillup name with 0x0. Select a name and change setupldr.bin.

QUOTE
booting BartPE on a partition on a 2nd hd
What's a second hard disk wink.gif
All the same there: Use a appropiate bootmanager and run renamed/edited setupldr.bin. That's e.g. grub.
You may use any less or equal six char name directory name at second hard disk too.
oscar
works!

beware, the -B must be deleted or peldr will not be changed

CODE
@echo off
rem gsar by Tormod Tjaberg  http://home.online.no/~tjaberg/

set setupldr_bin=D:\peldr

rem change "\minint\txtsetup.sif" to "\i386\txtsetup.sif 0x00 0x00"
rem change "\minint\system32\"    to "\i386\system32\ 0x00 0x00"
gsar (delete this -B) -o  "-s:x00\minint\txtsetup.sif:x00" "-r:x00\i386\txtsetup.sif:x00:x00:x00" "%setupldr_bin%"
gsar (delete this -B) -o  "-s:x00\minint\system32\:x00" "-r:x00\i386\system32\:x00:x00:x00" "%setupldr_bin%"
Ed_P
QUOTE (cdob @ Jun 19 2006, 05:09 PM) *
Quoting myself from first post: rem gsar by Tormod Tjaberg http://home.online.no/~tjaberg/

I didn't see it within the code box. Just as well, it wasn't an active link, your repeat is. smile.gif Regardless both links point to the same version.

QUOTE (cdob @ Jun 19 2006, 05:09 PM) *
Both ntldr/boot.ini or GRUB is possible.
You have to load setupldr.bin(renamed and edited). How you boot setupldr.bin dosn't matter.

I was hoping Win XP's boot manager with boot.ini would be sufficient. I currently use the GRLDR method.

QUOTE (cdob @ Jun 19 2006, 05:09 PM) *
What's a second hard disk wink.gif
All the same there: Use a appropiate bootmanager and run renamed/edited setupldr.bin. That's e.g. grub.

It's a GREAT way to backup the first hard drive, especially when it's mounted in a removeable IDE tray. It beats CDs, tapes and floppies hands down. smile.gif
cdob
QUOTE (oscar)
works!

beware, the -B must be deleted or peldr will not be changed

Thanks for correcting. Yes, delete -B.

I never ever make errors, at least if I'm dreaming wink.gif
If I wake up tomorrow, I will blame my fingers for selecting a old file.

@all
In addition 'D:\peldr' is example only. Change this line accordingly.
ktp
From gsar command line help:
CODE
gsar, ver 1.20 -- Copyright (C) 1992-2007 Tormod Tjaberg & Hans Peter Verne

Usage: gsar [options] [infile(s)] [outfile]
Options are:
-s<string> Search string
-r[string] Replace string. Use '-r' to delete the search string from the file
... etc...


I would write (example) :
CODE
gsar -o  -s"x00\minint\system32\:x00" -r":x00\i386\system32\:x00:x00:x00" "%setupldr_bin%"

instead of
CODE
gsar -o  "-s:x00\minint\system32\:x00" "-r:x00\i386\system32\:x00:x00:x00" "%setupldr_bin%"


But the two syntaxes work.
Shtoza
QUOTE (ktp @ Mar 22 2008, 04:10 PM) *
From gsar command line help:
CODE
gsar, ver 1.20 -- Copyright (C) 1992-2007 Tormod Tjaberg & Hans Peter Verne

Usage: gsar [options] [infile(s)] [outfile]
Options are:
-s<string> Search string
-r[string] Replace string. Use '-r' to delete the search string from the file
... etc...


I would write (example) :
CODE
gsar -o  -s"x00\minint\system32\:x00" -r":x00\i386\system32\:x00:x00:x00" "%setupldr_bin%"

instead of
CODE
gsar -o  "-s:x00\minint\system32\:x00" "-r:x00\i386\system32\:x00:x00:x00" "%setupldr_bin%"


But the two syntaxes work.


Hi
after running GSAR
It did changed 2 entries

I keep on getting "NTLDR is corrupt"
even though I do see it's the same file size.

any idea?
cdob
QUOTE (Shtoza @ Jun 24 2009, 11:25 AM) *
I keep on getting "NTLDR is corrupt"

Do you use a 2003 setuldr.bin?

Change setupldr.bin further: http://www.msfn.org/board/index.php?s=&...st&p=580692
CODE
gsar -o -s:x46:xda:x74:x03 -r:x46:xda:xEB:x1A setupldr.bin
yakazaa
Hello,

I cleaned up my post now for a (hopefully) better understanding smile.gif

What I did:
- Created my BartPE Image as usual
- used \plugins\peinst\peinst.cmd to copy the files to my NTFS formated USB Disk
- Copied the script from here to a blank .bat file
- I replaced the relative paths to absolute ones
- Deleted "REM" in front of the following lines, because I already have the folder "MININT" on my USB drive (and I guess it should rename it now)
- Set the right drive letter, for the fresh installed BartPE drive


What is prompted during execution of the here provided script:
CODE
C:\Users\dedtu\Desktop>rem gsar by Tormod Tjaberg  http://home.online.no/~tjaber
g/

C:\Users\dedtu\Desktop>set setupldr_bin=K:\ntldr

C:\Users\dedtu\Desktop>change "K:\minint\txtsetup.sif" to "K:\i386\txtsetup.sif
0x00 0x00"
Ungültige(r) Parameter
CHANGE { LOGON | PORT | USER }

C:\Users\dedtu\Desktop>change "K:\minint\system32\"    to "K:\i386\system32\ 0x0
0 0x00"
Ungültige(r) Parameter
CHANGE { LOGON | PORT | USER }

C:\Users\dedtu\Desktop>\\dedoracr3\c$\pebuilder3110a\GSAR\gsar.exe -o  "-s:x00\m
inint\txtsetup.sif:x00" "-r:x00\i386\txtsetup.sif:x00:x00:x00" "K:\ntldr"

C:\Users\dedtu\Desktop>\\dedoracr3\c$\pebuilder3110a\GSAR\gsar.exe -o  "-s:x00\m
inint\system32\:x00" "-r:x00\i386\system32\:x00:x00:x00" "K:\ntldr"


What happens (or what doesn't smile.gif):
- No renaming of MININT folder to i386 (Due to this, I renamed 'MININT' to 'i386' by hand.)
- changing of ntldr seems to be successfull

System start is not possible, the Error message:
'INF file txtsetup.sif is corrupt or missing, status 14.

Setup cannot continue. Press any key to exit.'

Any suggestions ?

I want to use .net Framework on a USB drive, but this seems to be impossible sad.gif
I tried replacing 'X:\MININT' within the plugin.inf to '%SYSTEMROOT% but it doesn't work.

Please help,

Greetings Dominik
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.