Re: Using dd to copy a disk.
On Mon, 2003-07-28 at 17:22, Alan Connor wrote:
> > From moseley@hank.org Mon Jul 28 15:14:20 2003
> >
> >
> > On Mon, Jul 28, 2003 at 01:32:06PM -0700, Alan Connor wrote:
> > > > From moseley@hank.org Mon Jul 28 13:31:19 2003
> > > >
> > > >
> > >
> > >
> > > Use cp -a . Dd is just a dumb parrot and knows nothing about filesystems.
> >
> > Well, I think that's the reason to use dd. I just want to clone the
> > drive and not have to partition the drive first.
> >
> >
> > --
> > Bill Moseley
> > moseley@hank.org
> >
> >
>
>
> There have been endless discussions about this on various linux groups, and
> the consensus is that dd is not a good idea for this.
>
> I've tried both ways to clone a linux system and only had failures with dd.
>
>
> You can do a perfect job (in my present working
> experience with cp -a. Got a box right next to this one with the same exact
> system on it.
>
> About the symlinks that Ron mentions, I really don't know. Just have my own
> experience to draw on. I guess if what you were cloning wasn't self-contained
> that would be something to deal with. Something for a little shell script
> after everything else was done, if it was me.
If, say, /var, /etc and /usr are in the / partition, then "cp -a"
will work fine, but because there tend to be many symlinks between
/var, /etc and /usr/bin, things can get sticky regarding symlinks.
If there's a little shell script that can handle multiple symlink
redirection, I'm not smart enough to think of it...
--
+-----------------------------------------------------------------+
| Ron Johnson, Jr. Home: ron.l.johnson@cox.net |
| Jefferson, LA USA |
| |
| "I'm not a vegetarian because I love animals, I'm a vegetarian |
| because I hate vegetables!" |
| unknown |
+-----------------------------------------------------------------+
Reply to: