On 3/3/2017 5:34 AM, Robert Moskowitz wrote:> Well, I only wanted to copy the used part of the drive which I try to > keep small so I can still copy the image to an mSD card if I wish. So > I have to supply the amount of the drive to copy. The bs=512 went > fast enough, but then I was only copying 3.2GB. > > thanks for the help.personally, I would use 'dump' for ext? file systems, and xfsdump for XFS. this *just* backs up the inodes and directories, not raw blocks -- john r pierce, recycling bits in santa cruz
On 3/3/2017 5:34 AM, Robert Moskowitz wrote:> Well, I only wanted to copy the used part of the drive which I try to > keep small so I can still copy the image to an mSD card if I wish. So > I have to supply the amount of the drive to copy. The bs=512 went > fast enough, but then I was only copying 3.2GB. > > thanks for the help.Have you considered looking at Clonezilla? It does a nice job of imaging a disk and only saves the used part. It creates an image which can be restored and is bootable. _______________________________________________ CentOS mailing list CentOS at centos.org https://lists.centos.org/mailman/listinfo/centos
On 03/03/2017 12:23 PM, John R Pierce wrote:> On 3/3/2017 5:34 AM, Robert Moskowitz wrote: >> Well, I only wanted to copy the used part of the drive which I try to >> keep small so I can still copy the image to an mSD card if I wish. >> So I have to supply the amount of the drive to copy. The bs=512 went >> fast enough, but then I was only copying 3.2GB. >> >> thanks for the help. > > personally, I would use 'dump' for ext? file systems, and xfsdump for > XFS. this *just* backs up the inodes and directories, not raw blocksBut I have a single image that I can use to build a working drive. Even on another drive, as long as it is more that 3.2GB. Also the partition table and uboot (but on Cubie's uboot, you put the uboot as the ONLY thing on the mSD, and it switches over to the sata for all the partitions).
On 03/03/2017 12:31 PM, Styma, Robert (Nokia - US) wrote:> > On 3/3/2017 5:34 AM, Robert Moskowitz wrote: >> Well, I only wanted to copy the used part of the drive which I try to >> keep small so I can still copy the image to an mSD card if I wish. So >> I have to supply the amount of the drive to copy. The bs=512 went >> fast enough, but then I was only copying 3.2GB. >> >> thanks for the help. > Have you considered looking at Clonezilla? It does a nice job of imaging a disk and only saves the used part. It creates an image which can be restored and is bootable.Yes, I looked at it a couple years ago, and I may well again as a disaster recovery tool. It takes more to set up than a dd of the drive (and xzcat compression for storage). I *DO* want a recovery strategy in place here. thanks
On 03/03/2017 12:31 PM, Styma, Robert (Nokia - US) wrote:> > On 3/3/2017 5:34 AM, Robert Moskowitz wrote: >> Well, I only wanted to copy the used part of the drive which I try to >> keep small so I can still copy the image to an mSD card if I wish. So >> I have to supply the amount of the drive to copy. The bs=512 went >> fast enough, but then I was only copying 3.2GB. >> >> thanks for the help. > Have you considered looking at Clonezilla? It does a nice job of imaging a disk and only saves the used part. It creates an image which can be restored and is bootable.I have a Pogoplug (armv5) running Redsleeve 7 with a 2TB drive to back up to. AFTER I get my new mailserver working. Which probably won't be until either someone builds php-imap for armv7, or I figure out how to get build or mock installed (both of which had failed dependencies) and do it myself. BTW, here is my Cubieboard2 'rack'. I should also put up my CubieTruck... http://medon.htt-consult.com/~rgm/cubieboard/cubietower-3.JPG Medon is the top one in the stack.