IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Run BartPE from folder \I386 at hard disk
cdob
post Jun 19 2006, 05:33 AM
Post #1


Platinum Member
*****

Group: Moderator
Posts: 3,257
Joined: 31-October 03
Member No.: 2,304



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.
Go to the top of the page
 
+Quote Post
pavel
post Jun 19 2006, 06:06 AM
Post #2


Gold Member
****

Group: Members
Posts: 577
Joined: 18-August 04
From: Czech Republic, EU
Member No.: 7,126



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
Go to the top of the page
 
+Quote Post
cdob
post Jun 19 2006, 06:09 AM
Post #3


Platinum Member
*****

Group: Moderator
Posts: 3,257
Joined: 31-October 03
Member No.: 2,304



@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.
Go to the top of the page
 
+Quote Post
Ed_P
post Jun 19 2006, 12:17 PM
Post #4


Titanium Member
*******

Group: Admin
Posts: 5,134
Joined: 12-August 05
From: Western NY, USA
Member No.: 13,258



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


--------------------

A useful posting: Adding drivers to BartPE; NIC, SATA, video

A helpful thread: BartPE Troubleshooting FAQs

Use the forum's search tool to find postings about problems similar to yours.
For searches involving three letter acronyms such as USB add an * to the end. For example: USB*

The button is your friend and is located just below the one for Quote Reply.



Ed
Go to the top of the page
 
+Quote Post
cdob
post Jun 19 2006, 04:09 PM
Post #5


Platinum Member
*****

Group: Moderator
Posts: 3,257
Joined: 31-October 03
Member No.: 2,304



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.
Go to the top of the page
 
+Quote Post
oscar
post Jun 19 2006, 04:18 PM
Post #6


Platinum Member
*****

Group: Members
Posts: 1,331
Joined: 28-November 03
Member No.: 2,840



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%"
Go to the top of the page
 
+Quote Post
Ed_P
post Jun 19 2006, 05:04 PM
Post #7


Titanium Member
*******

Group: Admin
Posts: 5,134
Joined: 12-August 05
From: Western NY, USA
Member No.: 13,258



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


--------------------

A useful posting: Adding drivers to BartPE; NIC, SATA, video

A helpful thread: BartPE Troubleshooting FAQs

Use the forum's search tool to find postings about problems similar to yours.
For searches involving three letter acronyms such as USB add an * to the end. For example: USB*

The button is your friend and is located just below the one for Quote Reply.



Ed
Go to the top of the page
 
+Quote Post
cdob
post Jun 19 2006, 05:56 PM
Post #8


Platinum Member
*****

Group: Moderator
Posts: 3,257
Joined: 31-October 03
Member No.: 2,304



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.
Go to the top of the page
 
+Quote Post
ktp
post Mar 22 2008, 10:10 AM
Post #9


Silver Member
***

Group: Members
Posts: 195
Joined: 14-February 07
Member No.: 25,175



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.
Go to the top of the page
 
+Quote Post
Shtoza
post Jun 24 2009, 05:25 AM
Post #10


Member
**

Group: Members
Posts: 50
Joined: 22-January 04
Member No.: 3,748



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?
Go to the top of the page
 
+Quote Post
cdob
post Jun 24 2009, 06:12 AM
Post #11


Platinum Member
*****

Group: Moderator
Posts: 3,257
Joined: 31-October 03
Member No.: 2,304



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 5th September 2010 - 10:07 PM