beautypg.com

6 blkcp, Blkcp, Motload commands – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual

Page 46

background image

MOTLoad Commands

MOTLoad Firmware Package User’s Manual (6806800C24D)

46

3.1.6

blkCp

Name

blkCp—copies the number of blocks, specified by the user, from the device to the destination
device. This command only operates on ’block devices’.

Synopsis

blkCp -a -b [-n] [-s]

Parameters

-a Ps: Device Name of Source

-b Ps: Device Name of Destination

-n Ph: Number of Blocks (Default = 1)

-s Ph: Starting Block Number (Default = 0)

Example

The following example shows a typical result of entering the blkCP command:

MOTLoad> blkCp -a/dev/ide0/hdisk0 -b/dev/ide0/hdisk0 -n200

Error Messages

blockCopy(): malloc(0x20000) failed

Unable to malloc a local buffer of 128 KB.

blockCopy(): open() failed, errno =

Unable to open source/destination device/node.

blockCopy(): ioctl(103) failed, errno =

Unable to retrieve the physical block size of the source/destination device.

blockCopy(): bseek() failed, errno =

Seek to desired block (starting block of transfer) on source/destination.