View Single Post
Old 6th Jan 2011, 22:11   #2
будет глотать вашу душу.
IvanIvanovich's Avatar
Join Date: Aug 2008
Location: USA
Posts: 4,870
IvanIvanovich is a Super Spamming SaiyanIvanIvanovich is a Super Spamming SaiyanIvanIvanovich is a Super Spamming SaiyanIvanIvanovich is a Super Spamming SaiyanIvanIvanovich is a Super Spamming SaiyanIvanIvanovich is a Super Spamming SaiyanIvanIvanovich is a Super Spamming SaiyanIvanIvanovich is a Super Spamming SaiyanIvanIvanovich is a Super Spamming SaiyanIvanIvanovich is a Super Spamming SaiyanIvanIvanovich is a Super Spamming Saiyan
first, like you already know do your back up. then you will want to make ahci setting in bios if available, it should be under your disk controller options (ie ide/sata/raid/ahci). if you have a fast usb drive around, i would also suggest using the usb install method instead of the dvd, its way faster. it takes me about 8 minutes to reinstall win7 this way. also if you want to set up your users folders on a traditional hdd (following copied from somewhere)
When the installation stops, waiting for you to give the computer a username and a computer name, DON'T! Press Ctrl+Shift+F3, and the computer will restart in . . ."Audit Mode". Basically, Windows will create a throwaway Administrator account and sign you in, as this throwaway Administrator. Nothing you do, with regard to this temporary user will survive finalizing the installation, but the computer operates normally, and you can install drivers and software. Whenever the computer starts in Audit mode (you are allowed to restart), a GUI version of Sysprep.exe will pop up, offering to restart the computer in OOBE (out of box experience). OOBE is where you were a moment before -- that is, where you create a username and computer name and the installation is finalized. Don't choose to restart in OOBE until you are ready to finalize the installation.
You need to know what drive letter (or folder location) is going to be assigned to your Datadrive disk. So, this would be the time, in audit mode, to figure that out. If you need to partition or format the datadrive, do it now. On the Start Menu, right-click on "Computer" and choose Manage from the context menu, to get to the Computer Management console. In the Computer Management console, under Storage/Disk Management, you will find the tools to change drive letters, partition, etc.
You need only a minimal answer file. This is an xml file (a text file), created in the Windows System Image Manager application. You can call it whatever you like. I'd suggest: folders.xml. Here's the content of a folders.xml file, which will re-locate Users and ProgramData to D:\

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="" xmlns:xsi="">
<cpifflineImage cpi:source="wim:h:/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

You could probably just copy the text above into notepad and save it as a textfile with the extension, .xml and be good to go, provided you wanted to use d:\Users and d:\ProgramData as your Datadrive locations.

To use the folders.xml, located in the root directory of your USB flashdrive, plugged in and visible as X:\, you need to open a command prompt, navigate to c:\windows\system32\sysprep and give this command:

sysprep.exe /audit /reboot /unattend:U:\folders.xml

This will cause the computer to reboot, but you will end up right back in Audit Mode. As long as you are still in Audit Mode, the re-location of these folders will not be complete, because the temporary Administrator useraccount still has its stuff in C:\Users and there are still some active databases in C:\ProgramData.

Finish your Windows installation, create a permanent username and giving the computer a name, etc. When you are finally up and running, go look at C:\ C:\Users should be gone. C:\ProgramData is probably still there, but it's normally hidden, so you won't see it, until you go into Folder Options and check Show Hidden Files and Folders. D:\Users and D:\ProgramData (hidden) should also exist.

using Junctions to intercept any program foolish enough to hardcode to c:\users or c:\programdata You'll need to delete or move C:\ProgramData, before creating a Junction at C:\ProgramData pointing to D:\ProgramData. The command line tool, mklink, is useful here. Open a command prompt, and type mklink /? for instructions.

there are also methods to move the user folders etc post install, but i think they are messier.
if i were you i would keep the raptor for the user data disk / pagefile.
IvanIvanovich is offline   Reply With Quote