What you need:
1) An empty USB flash drive, at least 1 GB in size (Is it necessary to be empty? Yes, because the program we will use formats the USB drive before copying window files)
2) NoviCorp Wintoflash
download here
(NOTE: As of this writing, the program is still in beta, though I have not encountered any error or problem using it, we all know that using beta softwares may cause problems or still has some bugs in it.)
3. Windows XP installer CD or a copy to your hard drive.
Steps on installing Windows Xp from Flash Drive:
1. Prepare your flash drive. Run WinToFlash.exe and choose the wizard.
This one is self explanatory. Windows files path would be your Windows CD and USB drive is your flash disk. Next window will be copying the setup files to your flash drive. In took about 30 minutes in my test using a 2 GB KingMax flash drive (I believe this result may vary depending on the speed of your source and your USB drive).
2. Turn on your laptop. Enter BIOS by pressing F2. Make sure that SATA Controller Mode is set to Compatible under Configuration. If you do not do this, the windows installer will not see your hard disk upon setup. Now Save and Exit.
3. Upon restart press F12 to choose Boot Device. Select your Flash Drive from the list
4. This window will appear. Select 1st, text mode setup (boot from flash again after finish) here. You will now see the usual setup process when you install windows from CD.
5. When the initial copying of files is finish and the system restarts, you need to boot from flash drive again. But this time you will choose the first option in the picture above. (2nd, GUI mode setup). You will choose this option until the next 2 restarts and the first boot of windows. If you let it boot in hard disk, you will receive the error:
Windows could not start because the following files is missing or corrupt:
\system32\hal.dll
Please re-install a copy of the above file.
If that happens, just restart your laptop and choose to boot from flash drive. Installation of windows finished after 35 minutes in my test. It may vary depending on the speed of your laptop and your USB drive.
solution for hai problem
1. Restart the PC. The hal.dll error could be a fluke.
2. Check for proper boot order in BIOS. You might see the hal.dll error if the boot order in BIOS is first looking at a hard drive other than your main hard drive.
Note: If you've recently changed your boot order or recently flashed your BIOS, this may be what's causing your problem.
3. Run Windows XP System Restore from a command prompt. If this doesn't work or you're receiving the hal.dll error message before you're able to complete this process, move on to the next step.
4. Repair or replace the boot.ini file. This will work if the cause of the problem is actually Windows XP's boot.ini file and not the hal.dll file, which is often times the case.
Note: If repairing the boot.ini does correct the hal.dll issue but the problem reappears after a reboot and you've recently installed Internet Explorer 8 in Windows XP, uninstall IE8. In this specific situation, IE8 could be the root cause of your hal.dll problem.
5. Write a new partition boot sector to the Windows XP system partition. If the partition boot sector has become corrupt or isn't properly configured, you may receive the hal.dll error.
6. Recover data from any bad sectors on your hard drive. If the physical part of your hard drive that stores any part of the hal.dll file has been damaged, you're likely to see errors like this.
7. Restore the hal.dll file from the Windows XP CD. If the hal.dll file is truly the cause of the problem, restoring it from the original Windows XP CD may do the trick.
8. Perform a repair installation of Windows XP. This type of installation should replace any missing or corrupt files. Continue troubleshooting if this does not resolve the issue.
9. Perform a clean installation of Windows XP. This type of installation will completely remove Windows XP from your PC and install it again from scratch.
Note: While this will almost certainly resolve any hal.dll errors, it is a time consuming process due to the fact that all of your data must be backed up and then later restored.
Important: If you can't gain access to your files to back them up, you should understand that you will lose them all if you continue with a clean installation of Windows XP.
10. Test the hard drive. If all else has failed, including the clean installation from the last step, you're most likely facing a hardware issue with your hard drive but you'll want to test it to be sure.
If the drive fails any of your tests, replace the hard drive and then complete a "new" installation of Windows XP.
IF PROBLEM PERSIST GO HERE
FINAL SOLUTION
to solve hai.dll error or need usb to boot properly here's the solution
1. right click my computer/properties/advanced/startup and recovery/settings/click edit
now you will see this
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /usepmtimer
if you notice the rdisk 1 thats the problem because it read the usb as pirimary boot up instead the hdd just change it to 0
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /usepmtimer
IF THIS NOT HELP YOU PLS LET ME KNOW ^^