[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a Linux ghost?
- To: "Nadav Har'El" <nyh(at-nospam)math.technion.ac.il>
- Subject: Re: Is there a Linux ghost?
- From: Tzafrir Cohen <tzafrir(at-nospam)technion.ac.il>
- Date: Wed, 5 Sep 2001 13:01:26 +0300 (IDT)
- cc: Ori Hanegby <ori(at-nospam)exanet.com>, "'Daniel Feiglin'" <dilogsys(at-nospam)inter.net.il>, linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <20010905121708.A27721@leeor.math.technion.ac.il>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Wed, 5 Sep 2001, Nadav Har'El wrote:
> On Wed, Sep 05, 2001, Ori Hanegby wrote about "RE: Is there a Linux ghost?":
> > hi
> >
> > the "dd" command can give u the functionality u would like, by using the
> > input/ouput file as the disk/partition u would like to duplicate.
> > for example:
> > dd if=<hard disk image backup file> of=/dev/hda bs=300k
The original question was about copying those images to blank systems. So
you first hove to somehow connect to the server.
This can be done via NFS/SMB if you can create a floppy that contains
a client for one.
Or you can try to connect from the client to the server via ssh/rsh (or
maybe even simply using netcat) and pipe the image file directly to dd .
>
> But watch out - this can be S-L-O-W for the huge disks (20GB) of today...
> Just think about it - if it can copy (read and then write) 5MB a second (I'm
> just making up a number) it will take over an hour to copy 20GB...
Is this image expected to be filled with "blanks" and compress well? If
so, put gzip/bzip2 somewhere in the pipe.
Dislaimer: never tried it.
>
> Usually, much of the disk doesn't need to be copied: only about 2GB will
> contain prebundled software (hopefully a Linux system!!), and the rest
> can be generated again and again by "mkfs"ing empty file systems, "mkswap"ing
> swap partitions, and so on. It's easy to copy only one partition, by copying
> /dev/hda1 (for example), not the whole /dev/hda. Of course, you'll need to
> copy the partition table first - I recommend sfdisk(8).
--
Tzafrir Cohen
mailto:tzafrir@technion.ac.il
http://www.technion.ac.il/~tzafrir
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il