TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: RAY CARTER
from: MARTIN GREGORIE
date: 2019-03-08 21:55:00
subject: Re: Zeroeing out unused s

On Thu, 07 Mar 2019 20:30:47 +0000, ray carter wrote:

> Not what you asked for, but I have used 'partimage' on linux systems for
> years. It will back up the used sectors of a partition. It can also
> compress the image and/or backup over the network. It is linux only, and
> seems not to be in the raspbian repository. You could use a linux live
> cd on your win machine to do it - or you could download the source and
> build it on your raspbian. I first became aware of partimage several
> years ago when I wanted to upgrade the hard drive on a laptop. Copied
> out the image, partitioned the new drive and copied back - as I recall
> it can restore an image to a larger partition with no hassle.
>
You can also try rsync: which is a Raspbian package and will copy data to
any other partitions and ignore cruft on the source:

- use a partitioning utility to set up partitions on the new SD-card (in
  a USB-SD card adapter or a USB-connected HDD

- use rsync to copy the partition contents across.

- boot off the new SD card.

You can also use any archiving system such as tar for the EXT4 partition
and ZIP for the FAT partition. Don't use zip for the EXT4 partition
because it will play merry hell with Linux permissions and file ownership.

Any of these will only copy the contents of directories and files, while
ignoring anything that isn't part of a directory or file.


--
Martin    | martin at
Gregorie  | gregorie dot org

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.