Instalando Windows 7 desde Windows XP – Hard-Link Migration
User State Migration Tool 4.0 Hard-Link Migration – ó como Migrar desde Xp , sin Perder Datos, Hacerlo Ràido y sin duplicar demasiado los datos.
The User State Migration Tool (USMT) 4.0 is part of the Windows Automated Installation Kit (Windows AIK) for Windows 7 Beta. USMT has traditionally offered command line-scriptable tools for migrating user state from one computer or operating system to another and providing strict control for which files are migrated or excluded from a migration.
USMT 4.0 Hard-link Migration is a new feature enabling in-place migration (computer refresh) to process much faster than using traditional file copy mechanisms. Hard-link Migration in USMT scans the computer for user files and settings then creates a directory of links to those files using hard-links. The hard-links are then remapped into the appropriate locations in the new operating system. The entire process typically takes a few minutes to run, does not double-instance files on the local disk and can save several hours migrating files in computer refresh scenarios, where the user keeps the same hardware. USMT Hard-link Migration can be used both in online and offline scenarios, but in this document we will introduce how USMT can be used in an offline scenario migrating files from a default clean install using files found in Windows.old. Guidance for online scenarios can be found in the USMT documentation as part of the Windows AIK for Windows 7 Beta download.
You can download the Windows Automated Installation Kit from the Microsoft Download Center.
This process will assume that Windows 7 Beta is installed using DVD or similar media to an existing Windows XP computer. We will begin by compiling the components needed to create an external USB drive with the components used to carry out the migration process. This USB drive will be used to migrate files from Windows.old to the appropriate full operating system locations and can be used for both Windows 7 Beta and Windows Vista. User files will not be copied to the USB drive, so any USB drive with more than 50 MB free space will be adequate.
To build a USB drive for storage
- Download the Windows Automated Installation Kit ISO for Windows 7 Beta.
- Burn the Windows AIK ISO file to a DVD and follow the installation instructions.
- Once you have installed Windows AIK, copy C:\Program Files\Windows AIK\Tools\USMT\ to an external USB drive. Your USB drive should have the “USMT” folder in the root directory with “amd64” and “x86” subfolders.
- Create a batch file for use with x86 file migrations. Open Notepad and copy the following text into a new file:
@ECHO OFF If exist D:\USMT\*.* xcopy D:\USMT\*.* /e /v /y C:\Windows\USMT\ If exist E:\USMT\*.* xcopy E:\USMT\*.* /e /v /y C:\Windows\USMT\ If exist F:\USMT\*.* xcopy F:\USMT\*.* /e /v /y C:\Windows\USMT\ If exist G:\USMT\*.* xcopy G:\USMT\*.* /e /v /y C:\Windows\USMT\ If exist H:\USMT\*.* xcopy H:\USMT\*.* /e /v /y C:\Windows\USMT\ If exist I:\USMT\*.* xcopy I:\USMT\*.* /e /v /y C:\Windows\USMT\ If exist J:\USMT\*.* xcopy J:\USMT\*.* /e /v /y C:\Windows\USMT\ If exist K:\USMT\*.* xcopy K:\USMT\*.* /e /v /y C:\Windows\USMT\ Cd c:\windows\usmt\x86 scanstate.exe c:\store /v:13 /o /c /hardlink /nocompress /efs:hardlink /i:MigApp.xml /i:MigDocs.xml /offlineWinDir:c:\windows.old\windows loadstate.exe c:\store /v:13 /c /lac /lae /i:migapp.xml /i:migdocs.xml /sf /hardlink /nocompress :EOF
Note Windows 7 Release Candidate and later releases of USMT 4.0 will replace “/offlineWinDir” with the “/offlineWinOld” command line switch.
Explanation of Batch File Commands:
The first section of the batch file determines where USMT files are kept and copies those files to the C:\Windows directory. The second section changes the directory to the newly created USMT directory. The scanstate.exe command will create the hard-link migration store at C:\store from the windows.old directory and the loadstate.exe command will remap the hard-link files to their appropriate locations within Windows 7 Beta or Windows Vista. The batch file and the USMT folder will need to be run as an administrator on the computer performing the migration. For AMD64 bit migrations, you can modify the batch file by changing “Cd c:\windows\usmt\x86” to “Cd c:\windows\usmt\amd64”. USMT will support installs moving from 32 bit Windows XP to 64 bit versions Windows 7 Beta or Windows Vista.
- Save the batch file as “Migrate.bat” in the USB drive. The USB drive should look something like this:
It is a good practice to backup your files prior to installing the new operating system, but file backup is not mandatory in this case and the backed-up files will typically not be needed when following this process.
To install Windows 7 Beta
- Install Windows 7 in a Windows XP or newer operating system using standard DVD or ISO media. This process is the same when installing Windows Vista from a DVD.
Important Follow the default installation instructions and do not delete or format partitions containing the operating system or user data.
- Once you have completely installed Windows 7, open Windows Explorer and browse to “Computer > Local Disk (C:\)” (or if not installed on “C:\”, browse to the drive letter containing the Windows 7 operating system). If there were folders already on the C:\ root directory in the Windows XP operating system, those folders will still be there. You will also find a windows.old folder.Windows.old contains the files and settings we will be migrating from the Windows XP operating system to the newly installed Windows 7 operating system. If you were previously joined to a domain, you can join the computer to the domain now prior to running USMT commands in the following steps. Likewise, now is a good time to install applications found on the previous operating system, as USMT will migrate application settings for these applications. For example, Microsoft Office Outlook® settings and PST files will automatically be mapped for that program and USMT migration will eliminate the need to manually reconfigure Microsoft Office Outlook after you run Step 8.
- Insert your USB drive with USMT files into a USB port on the Windows 7 computer. Copy the migrate.bat file to the desktop. Right click the migrate.bat file and choose “Run as Administrator.” USMT 4.0 requires administrative context to run. The batch file will copy USMT 4.0 files from the USB drive to the Windows directory, then run scanstate.exe and loadstate.exe commands to create the hard-link store and map the links into to the new locations.
- Once the batch file has completed, browse to “Computer > Local Disk (C:\) > Users”. You will see the user folders in Windows 7 Beta and all user files in corresponding file libraries. If you had favorites defined in Internet Explorer®, you can open Internet Explorer in Windows 7 Beta to ensure that application settings have been migrated.