xdelta

Try looking for help here if you are having problems with the Ultimate Boot CD.

Moderators: Icecube, StopSpazzing

Locked
Message
Author
mark847
Posts: 12
Joined: Sat Jun 04, 2005 7:52 am

xdelta

#1 Post by mark847 » Mon Apr 02, 2007 4:19 pm

Is there a way to use the delta patches when you have customized ubcd4?

It seems that xdelta wants a particular size iso image before it starts. (401 --> 402).

A suggestion would be to only patch directories and files that match, but leave intact the custom directories that a user might add.

Thanks.

ChrisB257
Posts: 4
Joined: Mon Apr 02, 2007 6:33 pm
Location: S Central PA

#2 Post by ChrisB257 » Mon Apr 02, 2007 6:42 pm

Mark - excuse me if I am a tad off topic but - I have just gotten to getting all this stuff together and wonder how to implement xdelta.exe.!! I am not as high on smarts as many here I suspect despite being involved on puters for many years. I struggle to remember all my DOS commands these days!

I had assumed initially it was an executable that would open a DOS console for me to continue but - all I get from that is a flicker of DOS box and then poof ... gone!

I did try to run that file from DOS but again no dice. Tried on backup machine too BTW.

I have yet to experience what you ask but you presumably got that .exe to run.

Can you or anyone let me know the correct method to run it so as to apply the patches?

mark847
Posts: 12
Joined: Sat Jun 04, 2005 7:52 am

#3 Post by mark847 » Mon Apr 02, 2007 7:53 pm

I had the xdelta.exe in the same directory as all the iso files.

I ran this from Win98SE, and open a DOS window. From Windows XP, <start><run>cmd
then cd to the right directory
Then I issued the command direct:
xdelta patch ubcd401.xdelta ubcd40.iso ubcd401.iso
This worked for me.

However, if I have copied all of my custom directories and files, how can I apply the patch? Or do I have to reapply all of my custom directories every time?

Constance
Posts: 338
Joined: Fri Sep 23, 2005 1:21 am
Location: France

#4 Post by Constance » Mon Apr 02, 2007 10:29 pm

You'll have to use the original release ISO, patch it with xdelta, and only once you have the new release ISO, customize it.

As since xdelta basically transforms a specific file into another, it will not work with an already modified source. Or it would certainly lead to most weird issues.

For if I understood well, here is how xdelta works :

To create a .xdelta file, xdelta compares two files.
It finds the differences between these two files, such as :
byte number xxxx has value A in File1, and value B in File2
File2 has following block of additional contents :
(insert block here).

So, it stores and somehow encodes all the data about these differences in a .xdelta file - in a way it is able to "understand" it.

Now, once you have File1, you just need the xdelta program and the associated "File1 to File2 .xdelta" file to "recover" File2 from these. Of course if your copy of File1 is altered, then there are two or three possibilities, depending on how xdelta truly works (as I don't know, here are suppositions) :

1 - maybe xdelta has stored some kind of checksum / hash in the .xdelta file to verify that you don't tell it to patch a wrong file, and thus shall refuse to patch
2 - xdelta doesn't store checksum info about File1, yet it will recognize if some bytes have wrong value and inform you about that. Up to you to choose if you continue (with good probability to get a corrupted output file) or not
3 - xdelta doesn't check anything and will let you "patch" any file o_O ... that would be crazy.

I'm almost sure it is working like #1, as it's the only option which seems to really make sense in my opinion.
Hammerite Compendium of Precepts, Regimens and Rules of Conduct, Vol. 113 :
A stroke of thy chisel, once made, canst be undone, but a stroke thou dost not make from fear is a worse flaw.
Be not cautious - be correct.

Victor Chew
Posts: 1368
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

#5 Post by Victor Chew » Tue Apr 03, 2007 4:18 am

Constance is right. You can only apply a patch on a known source ISO image, not a customized one.

You can always patch the customized ISO image yourself. The bugs for V4.0 are listed on the Known Bugs page. You can, for example, download the latest version of syslinux and replace memdisk with the latest version, or edit "etc\autoset.bat" in each of the DOS images to increase the RAM disk size. The choice is yours, depending on which you think is less work for you.

mark847
Posts: 12
Joined: Sat Jun 04, 2005 7:52 am

#6 Post by mark847 » Tue Apr 03, 2007 6:05 am

Thank you Constance & Victor I now know how the patches work.

Thanks to all who contribute to this project.

ChrisB257
Posts: 4
Joined: Mon Apr 02, 2007 6:33 pm
Location: S Central PA

#7 Post by ChrisB257 » Tue Apr 03, 2007 7:05 am

Thx Mark and all.

I put all files in one folder and successfully applied the patches.

Locked