Update chain.c32: Possible Windows booting bug solved

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

Moderators: Icecube, StopSpazzing

Post Reply
Message
Author
Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

Update chain.c32: Possible Windows booting bug solved

#1 Post by Icecube » Sat Jun 19, 2010 9:51 am

Chain.c32 has a bug that might affect Windows booting:
chain.c32 sethidden option fix

Hidden sectors value was applied at the wrong offset.
http://git.kernel.org/?p=boot/syslinux/ ... e0c15ead03

I compiled chain.c32 with this patch:
http://ubcd.stopspazzing.com/downloads/ ... /chain.c32
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

naebeth
Posts: 7
Joined: Mon May 31, 2010 4:35 pm
Location: Lincolnshire, UK
Contact:

Re: Update chain.c32: Possible Windows booting bug solved

#2 Post by naebeth » Sun Jun 20, 2010 2:46 pm

So what sort of error does this get you around? To be perfectly honest with you I have no idea what chain.c32 (or any .c32 file) does =/

The only problems I've had with booting Windows "live" CDs is a corrupt NTLDR which I fixed by using the one from my XP rather than the extracted install disc when I built the ISO, and the current one I can't get around:
- UBCD4Win built with XP SP3
- ISO boots fine, all tools and the PE work fine
- I put UBCD4Win inside UBCD, add the correct boot code and build
- boot to UBCD4Win through UBCD, menu and all tools load fine but Windows won't
[EDIT]
when putting UBCD4Win inside UBCD, I do so in ISO format. I don't mind extracting it, but you have to do so to UBCD's root and I do mind that. Either it goes in the custom folder or I don't include it.
[/EDIT]

It gets to the loader bar and then BSoDs after that instead of doing the login process. I can't remember the error code but I've seen it loads in the forums so it must be a common problem. The only solution I can find is to put UBCD inside UBCD4Win, but all the tools I want/use are in UBCD rather than its Windows-based companion. In reality I'm only using it because it'll build from my SP3 disc when WinBuilder (title of window also says [080] if that is the version number) but I want a LiveCD version of XP in my UBCD so I have to use UBCD4Win.

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

Re: Update chain.c32: Possible Windows booting bug solved

#3 Post by Icecube » Mon Jun 21, 2010 8:33 am

You can use chain.c32 to boot boot sectors (hard disk boot sectors), a MBR of a drive, a partition boot sector.
You can also use chain.c32 to boot the freedos kernel(kernel.sys), msdos kernel (io.sys), Windows (NTLDR, SETUPLDR.BIN and BOOTMGR), grub4dos (GRLDR). The later usage of booting those files is that you don't need the correct boot sector code to boot those tools. You can just boot those files directly, instead of letting the boot sector code of for example Windows, load NTLDR.

If you want to boot Windows based ISO's directly (grub4dos or MEMDISK mapping), you need to include a driver (WinVBlock or Firadisk), else you probably will get the "Stop 0x0000007B" error:
http://www.boot-land.net/forums/index.php?showforum=94
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

naebeth
Posts: 7
Joined: Mon May 31, 2010 4:35 pm
Location: Lincolnshire, UK
Contact:

Re: Update chain.c32: Possible Windows booting bug solved

#4 Post by naebeth » Mon Jun 21, 2010 8:39 am

Ah, okay. So when I tell Grub4Dos something like this:

Code: Select all

map /ubcd/custom/AVGRescue.iso (hd32)
map --hook
chainloader (hd32)
It invokes chain.c32, which contains info on how to find, determine and call the boot sector of the particular image?
Icecube wrote: If you want to boot Windows based ISO's directly (grub4dos or MEMDISK mapping), you need to include a driver (WinVBlock or Firadisk), else you probably will get the "Stop 0x0000007B" error:
http://www.boot-land.net/forums/index.php?showforum=94
Yeah, that's the error I get. I'll go look at that thread and have a go at including one of those drivers. Cheers!

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

Re: Update chain.c32: Possible Windows booting bug solved

#5 Post by Icecube » Mon Jun 21, 2010 10:07 am

naebeth wrote:Ah, okay. So when I tell Grub4Dos something like this:

Code: Select all

map /ubcd/custom/AVGRescue.iso (hd32)
map --hook
chainloader (hd32)
It invokes chain.c32, which contains info on how to find, determine and call the boot sector of the particular image?
No.

See http://syslinux.zytor.com/wiki/index.ph ... /chain.c32 for some examples of using chain.c32.

Booting grldr, NTLDR, SETUPLDR.BIN and BOOTMGR via chain.c32
http://www.boot-land.net/forums/index.p ... entry72457
Booting the recovery console (2000/XP/2003) via chain.c32 (hard disk only):
http://www.boot-land.net/forums/index.p ... opic=10100
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

Post Reply