Hard disk backup using dd

Net Llama! netllama
Mon May 17 12:02:11 PDT 2004


On Mon, 10 May 2004, Tim Wunder wrote:
> On 5/10/2004 8:14 AM, I believe that Net Llama! wrote:
>
> > On Mon, 10 May 2004, Chong Yu Meng wrote:
> >
> >>Hi all,
> >>
> >>Because of some communication and cultural problems, I need to know how
> >>to make a full disk backup. I hear that you can use "dd" to make a CD
> >>ISO image which you can transfer to another hard disk (even if it is a
> >>different size), but I don't know how to do that.
> >>
> >>Any help would be deeply appreciated!
> >
> >
> > dd if=/dev/original of=backup.iso
> >
>
> Correct me if I'm wrong, but I should be able to use dd on partitions,
> right? So if I
> # dd if=/dev/hda1 of=/dev/hdc1
> All that is on /dev/hda1 will find itself on /dev/hdc1, provided that
> /dev/hdc1 is at least as large as /dev/hda1.

yes, that will work too.  although if the new partition is larger in size
than the original, you should prolly format it first, as the extra space
needs to get some kind of filesystem in it or it won't be usable, and
might due some weird stuff when the OS tries to write to it.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman				netllama at linux-sxs.org
Linux Step-by-step & TyGeMo		     http://netllama.ipfox.com



More information about the Linux-users mailing list