Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
sanboot:transfer [2009/04/29 00:31] commander1024 Added "the netcat way" to transfer the image directly onto the SAN |
sanboot:transfer [2009/10/29 16:34] mcb30 |
||
---|---|---|---|
Line 27: | Line 27: | ||
This command will extract the relevant portion of the disk to a file (///path/to/image/file.img//) on your SAN target. Note that //dd// is reading from ///dev/sdX// (i.e. the raw disk device) rather than ///dev/sdX1// (the partition device); we cannot extract the partition alone because we also need the Master Boot Record located at the start of the disk. | This command will extract the relevant portion of the disk to a file (///path/to/image/file.img//) on your SAN target. Note that //dd// is reading from ///dev/sdX// (i.e. the raw disk device) rather than ///dev/sdX1// (the partition device); we cannot extract the partition alone because we also need the Master Boot Record located at the start of the disk. | ||
- | |||
- | 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. | ||
* Check that your extracted file is a valid hard disk image, by running //fdisk -l// on the extracted file: | * Check that your extracted file is a valid hard disk image, by running //fdisk -l// on the extracted file: | ||
Line 57: | Line 48: | ||
* [[sanboot:iscsi|Make the disk image available via iSCSI]] | * [[sanboot:iscsi|Make the disk image available via iSCSI]] | ||
* [[sanboot:aoe|Make the disk image available via AoE]] | * [[sanboot:aoe|Make the disk image available via AoE]] | ||
+ | * [[sanboot:srp|Make the disk image available via SRP]] | ||