Bios Password

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, December 7, 2008

Custom Win PE Boot Disk Building Saga: Introduction

Posted on 12:43 PM by Unknown

This will be the first of a series of posts that I really have wanted to compose so badly I’ve been avoiding it like The Plague.

It’s not that I don’t want to share the information and tips/tricks I have learned by myself and from others.

It’s that I’m still having a very difficult time deciding how to organize the material.  I think I have a sufficiently semi-logical outline developed and will be now starting an extended series of posts.

Hopefully some folks will find the information useful.

Introduction

I’ve been building “LiveCD” boot disks for many years now once I figured out the benefit it could have for our IT team.  D-Man and Mr. No at work paved the way before my joining the crew with some early bat.file DOS boot floppy work.

Not to be outdone and to show these god-like analysts I could bring-it, I soon had put together a CD that had an auto-run menu which would allow technicians (as I was at the time) to pick from various Windows utilities and setup programs.  It was cool and an instant classic.  It did not, however, contain system-boot support.

This was back before USB drives were common place, so to copy user data from a OS-dead system either meant removing the hard-drive and placing it in working system, or booting with a DOS boot disk and copying data to 1.44 MB floppies.  Not cool, even in old-school times.

In the Beginning there was Novell…

Since we were on a Novell network, I began building and implementing with Erwin Veermans NwDsk: NetWare Boot Disk (IP/IPX).  With some fairly easy Cd-Fu building I had quickly created a CD that could be used to boot a system from and connect to a Novell server volume.  Then data could be copied up bypassing the need for floppies.  Meanwhile the autorun menu/utility side still worked if the CD was put in a normally running Windows system.

That worked great.  However there was one little problem.  Most all of the technicians didn’t really know or like working in command-line. 

Give me a break.

DSL Build Period

So from there I gradually moved from the NW boot disk to Damn Small Linux (DSL) as the boot tool.  This provided a more usable GUI interface that I was able to customize while still being small enough for me to keep my Windows auto-play side intact.  I really had a blast learning all the Linux stuff to build and customize a booting ISO file.  Local off-line system files could be FTP’ed to the Novell volumes. Perfect!

That worked even better and was very pretty.  However there was one little problem.  Most all of the technicians didn’t really know or like working in Linux. 

Sigh.

BartPE Build Period

So I then found and started building Win PE 1.0 based Bart’s Preinstalled Environment (BartPE) boot disks.  This was way-cool.  Now I could build boot CD’s with a GUI based on XP.  Still preserving the Windows auto-play menu side.   Perfect right?

Nope. 

We were still a Windows 2000 shop and the Win PE 1.0 licensing requirements are very stringent.  I had to have sufficient XP licenses to cover them, which we only had a handful.  So I could only build and distribute a few. Eventually we upgraded from W2K to XP so I was freed up.  Still had to FTP local files to the servers, but still it was a solution.

Now it was near perfect.  The technicians were happy and I was happy.

The Dawn of a New Era: Win PE 2.0

Then came Win PE 2.0.  It was based on Vista, supported ImageX, and could do tons of really cool things and effectively had none of the onerous licensing that Win PE 1.0 carried.  I saw stars in my eyes and quickly worked out building a custom CD that still let the Windows auto-play menu work on a live system.

Only it was command-line based and again, despite all attempts, no one except D-Man and Mr. No thought it was worthwhile.  It languished and BartsPE ruled.

That was until I found VistaPE.  It is very similar (in theory) to BartPE but provides a wicked cool GUI to the Win PE 2.0 base.  For a sample, check out these GSD posts VistaPE Builder Tutorial - Highly Advanced (and Fun!) and VistaPE WinBuilder 011 - Basic Walkthrough.  Now we are at awesome-cool.

Away I went and everyone was amazed.  Vista LiveCD boot goodness and sophistication along with my now ingrained Window live auto-play utility menu. Happiness.  And not only could technicians still FTP files up to the server if needed, Win 2.0 would flawlessly auto-detect and mount USB storage devices (which had by now become the defacto standard for file-recovery and transfer). FTP became a rare activity.  Just copy/paste. Done.

Storm-clouds on the horizon…

With the OS march from Win95/98 to Win2K/XP, the auto-run menu launcher I had been using on the Windows side of the CD was showing its age.  It was based on 16-bit programming and now took too long to launch under 32-bit OS systems.  It would eventually, but not snappy like it did under Win95/98 when I had started using it.  I tried various replacements and eventually changed over to Pegtop PStart .  So while it wasn’t as nice a GUI for the menu structure I had been using, making updates was a snap and it could do a lot more tricks. It was back to snappy menu loading again.

The real storm came when we began the conversion of our desktop systems to Dell Optiplex systems (745/755/etc).  These models dropped PS2 connector support and were now all USB driven.  The standard keyboards were also USB devices with USB ports on the back.

Suddenly the VistaPE disks showed a serious problem.  Turns out that the VistaPE driver-loading process they use would render the Dell USB keyboards dead when the boot-disk side was used.  Yes, the mouse still worked, but it was of little use.  I hacked a temporary solution of installing and auto-launching On-Screen Keyboard Portable but while this worked, it was not sexy or convenient. 

So I never distributed it and have spent the last many months trying to hack-out a working fix for that Dell 755/745 USB keyboard driver loading problem under VistaPE with little success.

The keyboard would work fine under the plain “original” WinPE 2.0 disk build, it would work fine under a VistaPE (Vista RTM setup disk source) build.  It would not work under the VistaPE (WAIK source) build.

Since the D-man had provided me a legit copy of a Vista RTM setup disk I thought I was in good shape again. The Dell USB drivers would load and the keyboard worked again under that build strategy.

Then the ceiling came down…

Recently a decision was made higher up to deploy PGP whole disk encryption across all our desktop/laptop drives, enterprise-wide.

That is a Very GoodThing™.

Only here’s the new problem.  If the entire drive is encrypted, what use will a Live Boot CD be?  The system and user files were now securely tucked away out of sight!  PGP does provide their own PGP off-line recovery disk but I didn’t care for either the interface or the nature of the tool in general.  No offense to PGP but it wasn’t what I was interested in.

Leave it to clever Claus.  I wasn’t about to abandon all this work and investment, just yet at least.

PGP, PE 2.0, and VistaPE building: Let the migraines begin

Turns out, PGP does provide a way to inject their WDE drivers into a PE 2.0 disk build.

  • Windows Preinstallation Environment & BartPE Tools – PGP Knowledgebase Answer ID 807

After some initial joy and effort working out frustrating typos in the document, I was successfully able to build a merged PGP/WinPE 2.0 boot disk. 

Hurray!

Then a dead-end as I didn’t want to go back to giving a CLI WinPE 2.0 disk out to the technicians again.  I knew from experience that they would never use it.

See this works for the pure Win PE 1.0 / PE 2.0 disk builds (and some BartPE stuff), but was not at all designed to support VistaPE builds.

Darn!

However I knew the VistaPE was based on WinPE 2.0 so it “should” work, somehow.  More clever hacking and experimenting and I actually worked out a way to inject them into a VistaPE build!

Hurray!

Only (yep) it would only work under the VistaPE WAIK-based builds, which as you will remember has that awful Dell USB keyboard driver killer problem.  No good unless I reverted again to the on-screen keyboard solution which as a non-starter to me.

D-Man tipped me off on a technique to try and while initial efforts looked positive, I eventually had to mostly abandon that path.  I did learn a lot of extra stuff in that process regarding WIM driver injections, off-line registry editing, WIM mounting and manipulation, and VistaPE driver supplementing, and untold other really cool things.  Heady stuff!  But it didn’t get me anywhere...so I thought.

Using the techniques under a VistaPE RTM-Vista disk build rendered a BSOD during the driver-load process due to a driver conflict between something and the PGP encryption system drivers.

Unfortunately I was back to square one.

A New Era Arrives!

Then in the very busy days leading up to the Thanksgiving holidays, somehow in all the ongoing work crossing my desk, I found time to pick at this whole thing from a fresh perspective.

All those disconnected facts and bits must have reached critical-mass.

I managed to re-evaluate all that I knew, what I didn’t know, and make one last attempt at it, shedding all my previous building techniques and taking a fresh approach that would make Victor Frankenstein proud and VistaPE’s NightMan developer cringe from my non-script-based hacking of VistaPE, the WinBuilder platform, Win 2.0, and the WAIK tools.

When I left work for the holidays that Wednesday night, I had on my desk a VistaPE-based boot disk CD, based on a WAIK build, with a custom desktop wallpaper of my own choosing, that worked on Dell Optiplex 755 and 745 (in fact all our desktop/laptop system models as yet tried) with full working keyboard support, Imagex drive capture and reimaging support, and PGP whole drive encryption support to allow decryption of the system drive(s) with the user’s passphrase.

Oh yeah,  I forgot to mention that when the CD is used on a live Windows system, my utility auto-run menu picker still works.

Sweet.

So in the coming weeks I will begin to share specific bits learned from this process and at the conclusion, provide Claus’s Frankenstein-ish method for you to hopefully have the same successes I did.

And if we are lucky, maybe the VistaPE building pros will help us along the way to make it even prettier.

Stay tuned.

--Claus V.

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in boot-cd's, hacks, troubleshooting, tutorials, utilities, Vista mods, Win PE | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Finally! Time to Post! New material list
    After a recent text from my bro reminding me it has been since March since I’ve done a blog post, I was finally able to clear the schedule a...
  • Oscar watch Linkpost
    Alvis and Lavie are watching the Oscars tonight and I’m along for the ride. I wasn’t able to come even close to getting out some of the pos...
  • New Year’s Day - First Post 2011
    Same day I came out with my first post after a long drought, I fell upon this article Blogging Seems To Have Peaked, Says Pew Report over a...
  • Utility Gumbo
    There’s a lot in this pot.  Probably something everyone can find to enjoy. I’m serving it up tonight out of the back of the truck on the s...
  • iodd : Multi-boot madness!
    Like many computer technicians and responders, I seem to always have at hand a collection of bootable media; CD’s, DVD’s, USB-HDD’s, flash m...
  • Ubuntu 13.10 Upgrade - Lessons Learned & VIDMA utility found
    A few weeks ago a new release of Ubuntu came out. Naturally that meant it was update time! I have been getting pretty good at this now so ...
  • Windows 8 Linkage: A Bit Behind the Ball
    CC attribution: behind the eight ball by Ed Schipul on flickr . OK. Confession time. I’m more than a bit exhausted this weekend. Besides a...
  • Interesting Malware in Email Attempt - URL Scanner Links
    Last weekend I spent some time with extended family helping confirm for them that their on-line email account got hacked and had been used t...
  • This Week in Security and Forensics: Beware the cake!
    Cube Party! image used with permission from John Walker at "rockpapershotgun.com" Yeah, the cake is a Portal thing.  Let’s d...
  • Windows 8 Linkage: “Passage Public Metro” version
    cc image credit image by david.nikonvscanon on flickr So Claus, where do you stand on Windows 8 at this point? Well, to be honest, I’m re...

Categories

  • Active Directory
  • anti-virus software
  • Apple
  • architecture
  • art
  • AVG
  • Blogger
  • blogging
  • books
  • boot-cd's
  • browsers
  • cars
  • cell-phones
  • cheat sheets
  • Chrome/Chromium
  • command-line interface
  • cooking
  • crafts
  • crazy
  • curmudgeon
  • DHC
  • Dr. Who
  • E-P1
  • Education
  • family
  • Firefox
  • firewalls
  • For the Gentleman
  • forensics
  • Gmail
  • Google
  • graphics
  • hacks
  • hardware
  • humor
  • hurricanes
  • imagex
  • Internet Explorer
  • iOS
  • iPhone
  • iPod
  • iTunes
  • Kindle
  • Learning
  • Link Fest
  • Linux
  • malware tools
  • Microsoft
  • movies
  • music
  • networking
  • NewsFox
  • NFAT
  • Nook
  • Opera
  • organization
  • PDF's
  • photography
  • politics
  • PowerShell
  • recipes
  • Remote Support
  • RSS
  • science
  • Scripting
  • search engines
  • security
  • Shuttle SFF
  • software
  • Texana
  • Thunderbird
  • troubleshooting
  • TrueCrypt
  • tutorials
  • utilities
  • VBscript
  • video
  • Virtual PC
  • virtualization
  • viruses
  • Vista
  • Vista mods
  • wallpapers
  • Win FE
  • Win PE
  • Win RE
  • Windows 7
  • Windows 8
  • Windows Home Server
  • Windows Live Writer
  • Windows Phone
  • writing
  • XP
  • XP mods
  • Xplico

Blog Archive

  • ►  2013 (83)
    • ►  November (8)
    • ►  October (8)
    • ►  September (14)
    • ►  August (6)
    • ►  July (10)
    • ►  June (10)
    • ►  April (11)
    • ►  March (6)
    • ►  February (7)
    • ►  January (3)
  • ►  2012 (96)
    • ►  December (8)
    • ►  November (4)
    • ►  October (9)
    • ►  September (8)
    • ►  August (12)
    • ►  July (4)
    • ►  June (3)
    • ►  May (7)
    • ►  April (13)
    • ►  March (3)
    • ►  February (5)
    • ►  January (20)
  • ►  2011 (41)
    • ►  December (8)
    • ►  November (7)
    • ►  September (4)
    • ►  August (4)
    • ►  July (2)
    • ►  June (6)
    • ►  March (5)
    • ►  February (1)
    • ►  January (4)
  • ►  2010 (69)
    • ►  December (1)
    • ►  October (3)
    • ►  September (2)
    • ►  August (13)
    • ►  July (17)
    • ►  June (3)
    • ►  May (3)
    • ►  April (3)
    • ►  March (11)
    • ►  February (1)
    • ►  January (12)
  • ►  2009 (177)
    • ►  December (20)
    • ►  November (11)
    • ►  October (7)
    • ►  September (7)
    • ►  August (21)
    • ►  July (17)
    • ►  June (7)
    • ►  May (18)
    • ►  April (9)
    • ►  March (17)
    • ►  February (23)
    • ►  January (20)
  • ▼  2008 (35)
    • ▼  December (23)
      • Calling H-Town Techies: Help Save our Laptop!
      • Merry Christmas and Happy New Year!
      • Early Monday morn Linkfest: Utility Focus
      • Late Sunday Linkfest: Focus on Security
      • Custom Win PE Boot Disk Building: Step Two – PGP I...
      • USB Security: AutoRunGuard, Encryption options, an...
      • Security and Forensics Roundup: Heavy Version #3
      • Browser Bullets: #3
      • Mid-December Linkfest: Snowflake version
      • Utility Bag dump-out
      • (In)Security Response: Room for Improvement
      • Custom Win PE Boot Disk Building: Step One – WAIK up
      • NTFS Formatting an Imation USB Disk
      • Custom Win PE Boot Disk Building Saga: Introduction
      • Security and Forensics Roundup: Heavy Version #2
      • Windows Vista and Slipstreaming: A Primer
      • Software Goodies
      • Windows 7 News Roundup #4
      • Warm things for cool and blustery days
      • Browser Bullets: #2
      • Who are u.exe?
      • Quick Browser and Google Bits
      • Pushing through the wall
    • ►  November (12)
Powered by Blogger.

About Me

Unknown
View my complete profile