Creating a Bootable Windows Setup Disc with Linux

It’s quite annoying having to create Windows installation discs.

One thing I find is that every single time I do it – I keep having to check the internet, so here’s a note of the important bits.

  1. Extract the service pack
    <code>servicepack.exe /extract:C:\SP\</code>
  2. Integrate the service pack with the copied installation disc
    <code>update.exe /integrate:C:\OS_source\</code>
  3. Extract the boot image from the CD and copy it into the new O/S directory
  4. Create an iso with mkisofs
    <code>mkisofs -b bootimage.bin -hide bootimage.bin -no-emul-boot -boot-load-seg 1984 -boot-load-size 4 -iso-level 2 -J -l -D -N -joliet-long -relaxed-filenames -V "NRMSVOL_EN" -o newCD.iso C:\OS_source\</code>

Creating the ISO works in both Windows (with a 32-bit version of mkisofs) and Linux.

Baby proofing

In Windows, I had an autoIT script that would disable the CD drive eject buttons when I logged on.

John was showing an interest in my endevours today and almost snapped one of my CD drive drawers off!

Luckily, there is a tool in Linux that does the job for me – cdctl.

By running the commands:
cdctl --lockdrive=1
cdctl --lockdrive=2

The drive door doesn’t eject, and leaves me feeling a bit safer.

As always, I’ve disabled the power button. This time through YaST, Power Management and then ACPI settings.

I still need to get around to disconnecting the reset button though.