How to create Windows XP LiveUSB using Ubuntu to replace it

87,217

Solution 1

Create a bootable Windows XP USB drive:

Download "ms-sys"

Install it.

Partition your USB drive to NTFS.

Now copy the files from your Windows XP ISO to the USB drive

Copy the Windows XP mbr to the USB drive

ms-sys -m /dev/sdX

Replace sdX with the number of your usb hard drive (for example: sda5).

After that, backup your data, then format your drive to NTFS from your Live USB.

You can now install Windows XP through the USB.

Solution 2

Creating a bootable USB installer for Windows on Ubuntu

Edit: Windows XP doesn't seem to be supported by WinUSB. This method works fine for Windows Vista and up. See here for a different method that works with Windows XP.

WinUSB automates the process of creating a bootable USB stick from a Windows installation disk or .iso file. You can install it either from the .deb package provided on the homepage or through a PPA:

sudo add-apt-repository ppa:colingille/freshlight
sudo apt-get update
sudo apt-get install winusb

The GUI should be straightforward and easy to use:

enter image description here

Solution 3

Unless you have a modified SETUPLDR.BIN, it won't work from USB.

Needed:

  1. Modified SETUPLDR.BIN

  2. special stuff in the bootsector of the partition (use ms-sys).

  3. Modified copy of txtsetup.sif copied to the root level

  4. NTDETECT.COM copied to root level

WinUSB does not do this, UNetBootin does not do this, the diskpart tutorial does not do this, WinToFlash does not do this, and bit-banging the iso onto the device with dd does not do this.

Rufus does this. However, it is a Windows-only utility (that is unsupported by Wine), so follow the tutorial here (the big post):

https://superuser.com/questions/99478/make-a-bootable-usb-to-install-windows-xp-from-linux

Though I suppose you could share your target drive to VirtualBox, go through the first part of the installer, and then, instead of rebooting, shutdown the VM. Then turn the computer off and actually boot into the hard drive.

I think that would work because Windows does not become specific to a given hardware configuration until the second phase, I believe.

You see, if you did the whole installation from VirtualBox, Windows would be configured for VirtualBox's emulated hardware platform, not your real hardware.

The method of loading the whole iso into memory and booting it usually results in a blue screen at some point. If you really want to do that method, see this: http://diddy.boot-land.net/firadisk/files/win_iso_install.htm

Solution 4

If you're trying to install Windows XP, you shouldn't need to "uninstall" Ubuntu. You can just install Windows XP. (You'll lose all your Ubuntu files, but I'm sure you know that.)

Installing Windows XP is another matter, and doesn't belong in askubuntu.com.

Share:
87,217
Orion Clark
Author by

Orion Clark

Updated on September 18, 2022

Comments

  • Orion Clark
    Orion Clark over 1 year

    I am using an Acer Aspire One netbook with no CD-disk drive, and would like to uninstall Ubuntu 12.04 LTS and install Windows XP in its place. The problem here is that I can't seem to find a program that can put the windows boot files on a USB drive from an ISO file. I have Ubuntu fully installed and have tried using unetbootin. When I tried booting from unetbootin I got a screen with a blue box that had the word "default" in it highlighted. underneath the box there was a countdown that said "will boot from default in 10" after the countdown finished the number would revert to ten and nothing would happen. Can someone tell me another program that would be useful for this please?

    • philipballew
      philipballew almost 12 years
      I'd re-download your iso as it might be bad.
    • atenz
      atenz almost 12 years
      I don't think XP was made to be bootable from Live USB.However this method works for Windows 7, format the Pen Drive (ntfs/ fat) with Gparted (Install from software centre) and make it bootable by selecting BOOT Flag from >> Partition menu >> manage flags >> tick boot on the menu. Then extract the XP iso image to pen drive , Try booting Now. P.S.-- It is an off-topic question .
    • Admin
      Admin over 11 years
      you should mention that the usb drive needs to be formatted in NTFS. for those of us that dont know those things. it took me a while to figure it out.
  • atenz
    atenz almost 12 years
    But the OP has already mentioned the absence of CD disk drive from his H/W.
  • upapilot
    upapilot almost 12 years
    Ah! I did'nt read that! I have edited my post accordingly.
  • atenz
    atenz almost 12 years
    Well , if OP formats to NTFS from Ubuntu live USB , then from where will OP will be able to create a LIVE XP Drive. I will suggest OP not to format untill he finds valid solution.Or untill he has two Pen Drives ( one as Ubuntu Live and another one his Trail case of XP), atleast he will have an OS backup.
  • upapilot
    upapilot almost 12 years
    In that case create a USB drive before formatting.
  • Knowledge Cube
    Knowledge Cube almost 12 years
    You mention that there are several guides to creating a Windows XP LiveUSB online. It would be more helpful if you picked one that had instructions on how to do it through Ubuntu and summarized its steps in your answer.
  • Anwar
    Anwar over 11 years
    It seems that WinUSB doesn't work for XP: "Supported images: Windows Vista, Seven, 8 installer for any language and any version (home, pro...) and Windows PE." copied from another comment
  • bniwredyc
    bniwredyc over 11 years
    Since you can't install ms-sys from the repos anymore, you might want to install/use the mbr program. sudo apt-get install mbr sudo install-mbr -i n -p D -t 0 /dev/sdX