Re: Question about dd (fill a hard disks' unused space with blanks)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Niki Kovacs wrote:
> Hi,
> 
> I'm currently experimenting with G4U (Ghost for Unix), a small cloning 
> application sending disk images to an FTP server.
> 
> The application reads the whole disk bit by bit, compresses it and then 
> stores it remotely. Due to this approach, it's more or less 
> filesystem-independent. The drawback is that it sometimes results in 
> huge image files.
> 
> Now I'm currently following a hint which suggests to fill the disks' 
> unused space with zero bits. Here's the command for that:
> 
> # dd if=/dev/zero of=/0bits bs=20M
> # rm /0bits
> 
> Now I gave that a shot, but after half an hour or so, I got a bit 
> impatient. Now the computer does not respond any more. Does that mean 
> he's just way too busy with dd? Or is there some mistake in the command? 
> As I see it, it will just be chugging on and on, no? Shouldn't there be 
> a 'count=x' option somewhere?

I'll second the recommendation for clonezilla.  It knows enough about 
most filesystems (including windows ntfs) to only store the used blocks 
and it can use network storage over nfs, smb, or sshfs if you use the 
bootable CD clonezilla-live version.   If you do a lot of cloning, you 
can also use the network-booting drbl version on a server that will PXE 
boot a client into clonezilla with the image storage directory already 
NFS-mounted.  There is an rpm for Centos to install this.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux