public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Simon <turner25@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: How can I rewrite all empty sectors with zeros?
Date: Mon, 23 Jul 2012 11:31:30 -0400	[thread overview]
Message-ID: <CAN1q39XK5cV70y7GZqZ_fFQAnEJzmV7jAPXznQVaaXm2Ket9Hw@mail.gmail.com> (raw)
In-Reply-To: <jujn3j$d2d$1@dough.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]

On Mon, Jul 23, 2012 at 10:29 AM, Nikos Chantziaras <realnc@gmail.com>wrote:

> On 22/07/12 20:18, Jarry wrote:
>
>> Hi,
>> I want to backup my whole hard-drive (8 partitions) with:
>> # dd if=/dev/sda | gzip > /path/image.gz
>>
>> In order to achieve good compression level I'd like to wipe
>> out all empty space with zeros. How can I do that?
>>
>
> That's the wrong way to do it.  You should use a tool that only copies the
> data, and then also backup the partition table.
>
> Or use partimage/clonezilla like Neil mentioned which does all that
> automatically.
>

For my part, I found compressing all files using squashfs to be most
useful, specially for backups as restoring single files vs all files is
just as simple.
Also, using the squashfs archive as read-only base of a unioned mount
(aufs, unionfs) is also a very useful trick.

As my systems are all setup the same, I never backup the partition table
and recreate it each time (easy, and I often change the partition layout
anyway).

Simon

[-- Attachment #2: Type: text/html, Size: 1446 bytes --]

  reply	other threads:[~2012-07-23 15:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-22 17:18 [gentoo-user] How can I rewrite all empty sectors with zeros? Jarry
2012-07-22 17:36 ` Jesús J. Guerrero Botella
2012-07-22 17:45 ` Alex Schuster
2012-07-22 18:09   ` Mick
2012-07-23  9:28 ` Neil Bothwick
2012-07-23 14:29 ` [gentoo-user] " Nikos Chantziaras
2012-07-23 15:31   ` Simon [this message]
2012-07-23 16:24   ` Jarry
2012-07-23 20:01     ` Nikos Chantziaras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAN1q39XK5cV70y7GZqZ_fFQAnEJzmV7jAPXznQVaaXm2Ket9Hw@mail.gmail.com \
    --to=turner25@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox