====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
sanboot:transfer [2009/10/29 16:34] mcb30 |
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. | ||
- | * Check that your extracted file is a valid hard disk image, by running //fdisk -l// on the extracted file: | + | ==== Verifying the transferred image ==== |
+ | |||
+ | 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 34: | 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 |