K.S. Bhaskar on 28 Sep 2008 18:11:05 -0700

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

Re: [PLUG] Need Advice on Cloning A Disk Drive

Actually, I often often copy from a live system (did it just
yesterday, as a matter of fact)!  Here's what I would do.

1. Install the second drive and boot the computer from the Linux on
the first drive.

2. Create a file system on the second drive (I tend to use jfs as my
standard file system these days  - fsck is much faster).  Mount it
somewhere, e.g., as /spare.

3. Copy the file system from / to /spare with a command like: sudo
rsync -auvx / /spare/ (trailing slash needed on /spare/).

4. Edit /spare/etc/boot/grub as needed (e.g., changing UUIDs, or
device location).

5. Edit /spare/boot/grub/menu.lst as needed.

5. Install grub on the second drive with something like: sudo
grub-install --root-directory=/spare /dev/sdb (assuming the drive for
/spare is /sbd).

-- Bhaskar

On Sun, Sep 28, 2008 at 8:17 PM, brent timothy saner
<brent.saner@gmail.com> wrote:
> Couple things (sorry about the top-posting).
> One, always copy from a non-live system.
> Two, don't copy /dev and /proc as they should be populated dynamically every boot by udev and the kernel/init processes respectively
> (lack of GPG due to message sent via blackberry device)
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug