Gentoo Archives: gentoo-user

From: Jarry <mr.jarry@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How can I rewrite all empty sectors with zeros?
Date: Mon, 23 Jul 2012 16:29:41
Message-Id: 500D7ABA.20401@gmail.com
In Reply to: [gentoo-user] Re: How can I rewrite all empty sectors with zeros? by Nikos Chantziaras
1 On 23-Jul-12 16:29, Nikos Chantziaras wrote:
2 > On 22/07/12 20:18, Jarry wrote:
3 >> Hi,
4 >> I want to backup my whole hard-drive (8 partitions) with:
5 >> # dd if=/dev/sda | gzip > /path/image.gz
6 >>
7 >> In order to achieve good compression level I'd like to wipe
8 >> out all empty space with zeros. How can I do that?
9 >
10 > That's the wrong way to do it. You should use a tool that only copies
11 > the data, and then also backup the partition table.
12 >
13 > Or use partimage/clonezilla like Neil mentioned which does all that
14 > automatically.
15
16 I know those tools. Unfortunatelly, they do not support
17 "smart copying" (only used sectors) if software raid is used.
18
19 So I'm back on the beginning: I can clone only the whole
20 drive (all sectors). No matter if I use dd, clonezila or
21 partimage...
22
23 Jarry
24 --
25 _______________________________________________________________
26 This mailbox accepts e-mails only from selected mailing-lists!
27 Everything else is considered to be spam and therefore deleted.

Replies

Subject Author
[gentoo-user] Re: How can I rewrite all empty sectors with zeros? Nikos Chantziaras <realnc@×××××.com>