Re: copying a disk image to restore on linux

From: stefmit (stefmit@starband.net)
Date: 12/24/02

  • Next message: oobs3c02@attbi.com: "Odd files"
    From: stefmit <stefmit@starband.net>
    To: security-basics@securityfocus.com
    Date: Tue, 24 Dec 2002 16:21:02 -0600
    
    

    Are you saying that:

    # df -h ==> used MB or GB

    then:

    # dd if=/dev/hda1 bs=1M count=<used MB or GB> | gzip > hda1-image.gz

    then, on the new drive:

    # zcat hda1-image.gz | dd of=/dev/hda1 >& /dev/null

    won't cut it for you?!?

    On Tuesday 24 December 2002 04:12 am, phani@myrealbox.com wrote:
    > hi all,
    > I would like to know if there are any utilities on linux (preferably
    > freeware) which can create a complete image of the hard-drive. I know dd
    > exists, but that would create the image of the entire drive. If the drive
    > was (say) 40 GB and the free space is 20 GB then that would be a waste of
    > space. Is there a tool which would let me create the image of the used
    > space on the drive ?
    >
    > thank you
    > gangadhar



    Relevant Pages

    • RE: RH rips again Was: extend EOL for Red Hat Linux 9?
      ... Waiting until April and saying "the ... off the shelf and getting more support than they received with RH9. ... who have been buying Linux distros forever (I've bought Red ... So I may never buy a Linux distro again. ...
      (Fedora)
    • Re: Linux and audio pro
      ... That comment made me wonder if he's even used Pro Tools? ... It's the de facto standard of computer-based audio production and has ... is the best thing Linux has going in the pro audio space today." ... saying that Jack is the best Linux has to offer is not the same as ...
      (comp.os.linux.misc)
    • Re: [opensuse] Future of SUSE (at home)
      ... BTW if you really want to make your windows stuff "just work" in linux, ... but you persist in saying "it can't be done". ... and you don't always need a shell. ...
      (SuSE)
    • Re: Open Source Virus
      ... > just saying 'well admins shouldn't be lazy' is a crap attempt at saying ... this has nothing to do with Linux. ... therefore applies equally to PHP running on Windows. ... problem from multiple sources and could obtain fixes from multiple sources. ...
      (alt.os.linux.suse)
    • Re: silent semantic changes with reiser4
      ... You are saying, 1-2% simpler and better, no biggie, why work so hard to ... changing cat to use openatis no big deal. ... But if you add 1-2% coding cost to every ... don't add to Linux like writing a new app adds to Linux, ...
      (Linux-Kernel)