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

Re: Having a hard time copying root filesystem to new drive...





On Jan 18, 2008 3:01 PM, Daniel B. Thurman <dant cdkkt com> wrote:

> > More importantly, what is the proper procedure in making a
> copy of your
> > existing root filesystem onto a new drive partition?


Cloning a disk or partition.

What I've done in days past:
1. Attach the new drive as slave
2. Partition the new slave drive. Make the partitions slightly bigger than the ones from the old drive
3. fsck the new partitions just in case.
4. Take note of the device names on both drives
       master drive root partition /dev/sda1... etc.
       slave drive root partition /dev/sdb1... etc.
5. Boot with knoppix or your favorite boot CD.
6. clone with
      > dd if=/dev/sda1 of=/dev/sdb1
and you get an exact copy of your partition.
change the device name for all partitions you wish to clone.

~af


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