Gentoo Archives: gentoo-user

From: Meino.Cramer@×××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Preserving the initial partionin/formatting of an usbstick
Date: Wed, 30 Mar 2016 17:38:37
Message-Id: 20160330173825.GD5173@solfire
In Reply to: Re: [gentoo-user] Preserving the initial partionin/formatting of an usbstick by Daniel Quinn
1 Daniel Quinn <gentoo@×××××××××××.org> [16-03-30 17:12]:
2 > On 29/03/16 17:18, Meino.Cramer@×××.de wrote:
3 >
4 > The usbstick I want to make an initial backup is 64GB of size.
5 > That means, I will backup mostly zeroes.
6 >
7 > You could just use dd to take a full backup and then compress it. If it
8 > is indeed mostly zeros it’ll compress very well:
9 >
10 > |# dd if=/dev/usbstick | xz > usb.xz |
11 >
12 > Of course you can use bzip, lbzip, gzip, etc. instead of xz too.
13 >
14
15
16 See some posting above why this may be not what you want, if simply
17 cloning the partinioning/formatting information is enough.
18
19 Best regards,
20 Meino