Windows XP: Installing from Harddrive

Contributor Icon Contributed by seamonkey420 Date Icon August 19, 2004  
Tag Icon Tagged: Windows installation

This is another install recipe for Windows XP. Requirements: Windows 98SE Boot Diskette w/smartdrv.exe, Windows XP saved to harddrive (have a seperate FAT32 partition where XP install files are saved).


This recipe describes how to install windows xp from harddrive.

1. First, you need to copy your Windows XP Setup CD contents to your harddrive. NOTE! I recommend saving the xp install files/folders to a seperate partition than where your going to install xp to (ie. have setup files at d:\winxp\ and then install xp to c:\ drive)

2. Now, you will want to boot your pc with the windows 98 se bootdisk with smartdrv.exe on the floppy (increases data transfer speed by ten-fold in dos!). You do not need to boot with CD support since we’re installing XP from the files on your harddrive (in my example, D:\winxp\)

3. Once you get to the command prompt, you can format the partition where you are installing xp if you want (ie in my example, the c:\ ) by typing: format driveletter: replace driveletter with the drive (ie format c: in my example). And go through the prompts.

4. Once that finishes, change drives to the drive with XP on it.
In my example: D: then enter.
THen: CD WINXP (change directory to winxp folder) and enter

Now i will want to enable smartdrv, just type: smartdrv and then type it again. THe second time you type it and hit enter it will show the status of the drives and cache’ing.

5. Now, change directory to the i386 folder, by typing: cd i386 (this folder’s full path in my example would be D:\winxp\i386\).
Then type winnt to start the installation.

Just install XP like normal.

So now your probably asking yourself, why would i do this or need to know this? Well, i re-install my OS quite a bit. I get bored or it gets too cluttered so i just format and re-install. I don’t really have to backup my files either since i have my “my documents” folder located on a seperate partition (got two harddrives: hd1: c: (winxp files, program files) d: (pure program files only) hd2 m: (my music, games) j: (my documents folder) r: (ripping folder)

Hope that helps someone. :-)

Previous recipe | Next recipe |
 

Viewing 23 Comments

    • ^
    • v
    i found that this method worked for the first part of installation in DOS- copying the files from the i386 folder in preparation, however after restarting and continuing with the installation, it seemed to only want to read from the windows xp cd which was in the drive at the time, so i think maybe once it detected it it wouldnt read the files from the hard drive anymore :( . XP installed fine and i can see how this could help someone who was constantly reformatting, i just tried it to see if it worked. :D
    • ^
    • v
    <ul id="quote"><h6>Andy-JM wrote:</h6>i found that this method worked for the first part of installation in DOS- copying the files from the i386 folder in preparation, however after restarting and continuing with the installation, it seemed to only want to read from the windows xp cd which was in the drive at the time, so i think maybe once it detected it it wouldnt read the files from the hard drive anymore :( . XP installed fine and i can see how this could help someone who was constantly reformatting, i just tried it to see if it worked. :D</ul>
    • ^
    • v
    what if i have to install xp form a NTFS partition, i.e., my XP CD files are on the partition of hard disk with NTFS files system. How do i access the NTFS partion from DOS prompt.

    If any one can tell me the solution to this, i will be really greatful.
    • ^
    • v
    <ul id="quote"><h6>anil1972 wrote:</h6>what if i have to install xp form a NTFS partition, i.e., my XP CD files are on the partition of hard disk with NTFS files system. How do i access the NTFS partion from DOS prompt.

    If any one can tell me the solution to this, i will be really greatful.</ul>

    Three choices. (No.3 is the best)

    1.) Change NTFS file format to FAT32. Can destroy existing data on partition - depending on how it's done.

    2.) Create a small FAT32 partition and move the CD files there. You only need the i386 folder - and all sub-folders within i386. You'll need about 600MB of free space for this "i386" partition. BTW DOS possibly won't use the same drive letters as windows. And Partitioning is MUCH easier with almost any 3rd party partitioning program rather than using a windows/dos boot floppy or cd.

    3.) Get the NTFSDOS bootdisk. The free version cannot write to NTFS, but you only need to read from the NTFS partition. Use it like DOS. Not sure if it needs (or can even use) smartdrive - but you'll know if the install seems to freeze for hours. IIRC NTFSDOS includes support for lots of good stuff like long file names and large hdds etc.
    http://www.sysinternals.com/ntw2k/freeware/ntfsdos.shtml

    daver
    --
    • ^
    • v
    I have a Dell Latitude csx, with a minimal setup (no floppy, no cd) The closest i got to installing was with dos on the c: partition and a copy of the xp cd on d:. When dos loads i run the winnt.exe from the cd and it starts copying files, but it freezes after several files are copied. If i restart the laptop, it loads the proper setup, but after pressing enter, it says that it cannot find the EULA (End User License Agreement). If anyone has any ideas on:

    1) how to install from the harddrive only
    2) why setup freezes
    3) why setup cannot find EULA
    4) where i could get an external floppy drive that is type 1 or 2, and not USB

    it would be greatly appreciated!!!!
    I have tried all ideas i have found, including bootable XP cd, copying i386 folder, and using a winnt.sif file to try and bypass the EULA.
    • ^
    • v
    first of all, how are you getting to dos without a floppy drive?

    second, I also am trying this on a dell latitude without a cdrom drive and it appears that setup freezes but then comes back to life if I leave it alone for a good 5 minutes even with Smartdrv.exe loaded.

    after it finishes installing in the dos portion of setup it asks for a reboot. I reboot and it boots to my other NTFS file system I have on the computer.

    I'm currently using a win98 recovery bootdisk to get to dos in the first place which is only mapping one of my partions (the only FAT32 one) as drive C: The other drive, which still contains data and is a NTFS does not get mapped probably because dos can't read NTFS.

    do I need to format this partion first as a FAT32 before I'm allowed to install XP on it?

    Does WINNT.exe even ask you if you have multiple partitions where you want to install XP to as it does if you install normally from the CD?
    • ^
    • v
    yes, you must format to FAT32, you can always switch it to ntfs later, with a prog such as partition magic. I installed xp on my latitude csx (no cd or floppy drive) with the following steps:

    - put the harddrive into desktop PC (buy part, suggested: www.tigerdirect.ca)
    - Format Drive to FAT32
    - Copy I386 folder from WinXP cd onto the drive
    - put smartdrv.exe on drive
    - install dos 7.10 on drive
    - put the harddrive back in the laptop

    - load dos
    - run smartdrv.exe (speeds up dos transers)
    - run C:I386winnt.exe
    - let sit, even if it appears to stall
    - that's it

    you will now have dos and windows on the drive, you can remove dos, or leave it, it is up to you!!
    • ^
    • v
    Yes i realize that i answered my own post, but i have seen this question quite often, and for less than $30 for the laptop to IDE conversion part, all your problems can be solved, as DOS 7.10 and smartdrv are free.
    • ^
    • v
    William Wilson --

    Can you or I create a recipe out of this?

    By creating a recipe we can get it out of the forums... and people will find it through google much, much easier.

    If you would like to add it as a recipe yourself, add it here:
    Submit recipe

    If you don't want to become a member, submit the recipe, blah, blah, blah... I'll be glad to it instead.

    Thanks for helping these guys out.
    • ^
    • v
    Sure, i'd be more than happy to add it!
    • ^
    • v
    <ul id="quote"><h6>William Wilson wrote:</h6>Sure, i'd be more than happy to add it!</ul>

    Thanks! Just validated it!
    • ^
    • v
    this was exactly what i was looking for. ii have a copy of xp but do not want to damage it. thanks a million works great.
    • ^
    • v
    Hello,

    Can you please let me know where to search for Dos 7.1. Will Dos 6.22 version work with your procedure. I haven't tried it still.

    Thanks
    kris



    <ul id="quote"><h6>William Wilson wrote:</h6>yes, you must format to FAT32, you can always switch it to ntfs later, with a prog such as partition magic. I installed xp on my latitude csx (no cd or floppy drive) with the following steps:

    - put the harddrive into desktop PC (buy part, suggested: www.tigerdirect.ca)
    - Format Drive to FAT32
    - Copy I386 folder from WinXP cd onto the drive
    - put smartdrv.exe on drive
    - install dos 7.10 on drive
    - put the harddrive back in the laptop

    - load dos
    - run smartdrv.exe (speeds up dos transers)
    - run C:I386winnt.exe
    - let sit, even if it appears to stall
    - that's it

    you will now have dos and windows on the drive, you can remove dos, or leave it, it is up to you!!</ul>
    • ^
    • v
    <ul id="quote"><h6>William Wilson wrote:</h6>
    - install dos 7.10 on drive</ul>

    I could understand everything except how to install DOS 7 on the hard drive when it is connected to the Desktop. Where is the best place to get Dos7?
    • ^
    • v
    I have tried this a couple of times and here is what I did. Install DOS 7.10 from a different laptop, switched hard drive to other laptop and ran winnt.exe. Everything is fine to this point. However, when the system is done installing all of the XP files it tries to reboot and gives me an NTLDR is missing error.

    Any suggestions on what to do at this point?
    • ^
    • v
    Very nice instructions, it worked like a charm. The only trouble I had was finding DOS and Installing on hard drive. ended up doing it thru win 3.1 :P
    • ^
    • v
    It does not work for me. Afer I type in winnt and it finishes copying files and says it is done and will restart and start installing windows I get boot errors. Either missing operating system or ntldr is missing. Seems like it is not making the partition bootable. I even tried format c: /s several times and still nothing.
    • ^
    • v
    The recipe written to solve this issue is here:
    http://www.tech-recipes.com/windows_installation_tips870.html
    it also includes an e-mail where i can be reached,
    cheers.
    -William. ยง
    • ^
    • v
    I figured out what was wrong. Boot files was on a ntfs partition and could not delete them since win9x cant see ntfs. Every time the computer would startup it would try to bootup to that ntfs partition that had the boot files to it. Since I could not get to the files and delete them, I formatted that partition and then it worked. Thank you for your help though.
    • ^
    • v
    ok this is my problem... i have this laptop... the cd rom doesnt works... and ia have to format and reinstall windows... i have a usb cd rom but the bios does not allow me to make it a boot device... i made two partitions on this laptop some time ago, c: and d:

    i have copied windows installation cd from the usb cd rom to d: and i have a win98 se floppy boot disk... i tried to do this recipie, but when i load the floppy disk it doesnt allows me to acces d:

    i tried downloading the xp startup disks... made the 6 of them... but a file keeps sending an error...

    i dunno what else to do, and i dont want to remove the hd from the laptop... any ideas?

    plz help
    • ^
    • v
    monsfa if your still tracking this forum I'll try to help

    If your not set on NTFS and your laptop HD is not bigger than 64GB because I have had some trouble with larger hard drives, but use this suggestion at your own risk

    BTW there are some lines you will want to have in your Config.Sys and Autoexec.bat on your boot disk

    Config.Sys

    Device = A:DosHimem.Sys /Verbose /Testmem:Off
    DeviceHigh = A:DosEmm386.Exe Verbose
    Files = 50
    Buffers = 50,0
    Dos = High
    Fcbs = 16,0
    Dos = Umb
    Stacks = 9,256

    Now I used Dos because I have all my files in a Dos folder on my boot disk you will need to modify this to match however do not delete any lines in either the config or auto just add as needed

    Autoexec.bat

    @Echo Off
    Path A:Dos
    Lh A:DosSmartdrv.Exe /V /X
    Prompt $p$g

    Reboot 98SE, run fdisk & rebuild your partitions, since you have created 2 drives before I am assuming you are some what familiar with this process, lets use 40gb as our example

    I suggest 3 drives C, D, E - Make C 10GB, Make D 25GB this would be for all personal storage, then make E 5GB this would be solely for the format & reload process and storage of those needed files. Now these are approx sizes fdisk will make some slight changes in the numbers and you may not have a full 5 for E

    Once you have built the 3 of course format all of them

    Once that is done type sys A: C:, then repeat this with sys A: E: this is going to give you the option to format and reload without having to boot with a disk

    At the a: prompt type E:, you want to make 2 folders
    Type Mkdir Dos and Mkdir Winxp

    Now Go to C: and make a dos folder go back to A: look at the structure of A this is just an assumption but I am going to bet all the filles are in the root of the disk and there are no directories which is fine, now keep in mind my next suggestion as well as my earlier will require require you to make path changes in the config & auto

    Type Xcopy32 Au*.* C:, Then Xcopy32 Con*.* C:, Then Type Xcopy32 /e /y *.* E:Dos this will also give you a 3rd copy of your config and auto should you need a reference

    Then go to the C: type edit & open the config.sys & autoexec.bat and modify all lines to reference any paths to E:Dos

    Type Xcopy32 Au*.* E:, Then Xcopy32 Con*.* E:, now go to your cdrom at this time it should be F: Type Xcopy32 /e /y *.* E:WinXp

    Reboot and you should now be booted to C

    At this Time go to E: and edit both the config & auto delete all lines expcept for the ones I posted and make sure all lines reference E:Dos as the path in the config sys additionaly delete the emm386 line and in the autoexec.bat add this line to be last E:WinXpi386winnt.exe

    Save both and exit

    Now we need to make a new bat file type Edit reload.bat in this your going to need to add these lines

    @Echo Off
    E:
    Cd
    Path E:Dos
    E:Command.Com E: /E:1024 /P /C
    Format C: /V:C_Drive /Q - /V:C_Drive labels C but not required

    Sys E: C:

    Label D: D_Drive = Also Labels but not required
    Label E: E_Drive

    Deltree /Y D:Recycled - Personal Preference for a Cleaner Install
    Deltree /Y E:Recycled
    Deltree /Y D:System~1
    Deltree /Y E:System~1

    Cd

    Xcopy32 Au*.* C:
    Xcopy32 Con*.* C:

    Now save and exit

    From here you should be ready to start, type reload at the prompt once complete reboot and you should be on your way

    There are a few things to keep in mind, I've tried to be as complete as I can but you may have to fill in some blanks, and once xp is installed you should have 2 OS options in the boot menu 1 for XP and the other for Microsoft Windows if you choose this because you want to format and reload remeber you added E:WinXpi386winnt.exe to the autoexec.bat in your C: and you will not be given the option to run the reload.bat on your E: drive, you can work around this with alternate files to copy to C: and rename you will have to decide on how you would like to do this, lastly if DOS and .bat files are foriegn to you, you may not want to try this