Tonight I have to boot a diskless server with iLO and dd a remote image available by ssh onto a usb key. As there is no local place to store the image, whats the most efficient cmd to push the image from the remote server using ssh into the local pipe pushing out to `dd of=/dev/sdx`? Would a remote execution of `dd if=/dev/sdx` be the best over ssh? I suppose I could use nc and do away with ssh, is that in the CentOS rescue mode? Thanks, jlc
On Jul 23, 2010, at 6:27 PM, "Joseph L. Casale" <jcasale at activenetwerx.com> wrote:> Tonight I have to boot a diskless server with iLO and dd a remote image available by ssh > onto a usb key. As there is no local place to store the image, whats the most efficient > cmd to push the image from the remote server using ssh into the local pipe pushing out > to `dd of=/dev/sdx`? > > Would a remote execution of `dd if=/dev/sdx` be the best over ssh? I suppose I could use > nc and do away with ssh, is that in the CentOS rescue mode?How about remote cpio? -Ross
Joseph L. Casale wrote:> Tonight I have to boot a diskless server with iLO and dd a remote image available by ssh > onto a usb key. As there is no local place to store the image, whats the most efficient > cmd to push the image from the remote server using ssh into the local pipe pushing out > to `dd of=/dev/sdx`? > > Would a remote execution of `dd if=/dev/sdx` be the best over ssh? I suppose I could use > nc and do away with ssh, is that in the CentOS rescue mode? >dd over ssh should be a sure thing. If you do a lot of image copies remote or otherwise you might want to try clonezilla-live. It knows enough about most file systems to only copy the used blocks and can access the image store with smb, nfs, or ssh. -- Les Mikesell lesmikesell at gmail.com