SAN image transfer

This page documents various techniques that people have found useful for transferring disk images to a SAN target.


If the source machine does only have one HDD which has been used completely, netcat can be used to transfer the image to the target in one step:

 On the storage Server:
 nc -l -p 30000 | dd of=/path/to/image/file.img
 On the Netboot-Box:
 dd if=/dev/sdX bs=8225280 count=1825 | nc <SAN-IP> 30000

This command will extract the same portion of the disk directly to the server. The Port (30000) can be chosen free but has to be the same on both sides.


When using ImageX or copy to transfer a volume containing Windows Vista / Windows 7 / Windows Server 2008 to the iSCSI target, you'll have to update the BCD store (for the new partition). The recommended method is to transfer all the files to the new drive (on the Microsoft iSCSI Target), and before marking the drive as active, boot to it, fall back to WinPE from PXE / DVD, and execute the following commands:

bcdedit /store C:\boot\bcd /set {default} device partition=c:
bcdedit /store C:\boot\bcd /set {default} osdevice partition=c:
bcdedit /store C:\boot\bcd /set {bootmgr} device partition=c:

after that, you'll have to mark the drive as active, and use bootsect.exe to write the boot sector.

QR Code
QR Code appnotes:san_transfer (generated for current page)