Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous 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:39] (current) mcb30 |
||
|---|---|---|---|
| Line 23: | Line 23: | ||
| dd if=/dev/sdX of=/path/to/image/file.img bs=8225280 count=1825 | dd if=/dev/sdX of=/path/to/image/file.img bs=8225280 count=1825 | ||
| + | |||
| + | {{ :disk.jpeg?240x186|A disk}} | ||
| where the numbers **8225280** and **1825** should be replaced with the numbers extracted from your own //fdisk// output. | where the numbers **8225280** and **1825** should be replaced with the numbers extracted from your own //fdisk// output. | ||
| Line 28: | Line 30: | ||
| 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: | + | ==== Verifying the transferred image ==== |
| - | On the storage Server: | + | |
| - | nc -l -p 30000 | dd of=/path/to/image/file.img | + | |
| - | On the Netboot-Box: | + | Check that your extracted file is a valid hard disk image, by running //fdisk -l// on the extracted file: |
| - | 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: | + | |
| fdisk -l /path/to/image/file.img | fdisk -l /path/to/image/file.img | ||
| Line 43: | Line 38: | ||
| You should see something like: | You should see something like: | ||
| - | You must set cylinders. | ||
| - | You can do this from the extra functions menu. | ||
| - | | ||
| Disk /path/to/image/file.img: 0 MB, 0 bytes | Disk /path/to/image/file.img: 0 MB, 0 bytes | ||
| 255 heads, 63 sectors/track, 0 cylinders | 255 heads, 63 sectors/track, 0 cylinders | ||
| Line 57: | Line 49: | ||
| * [[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]] | ||