On 5/7/05, Todd Walton <[EMAIL PROTECTED]> wrote: > I have two hard drives. One is a 4GB and I'm replacing it with a 40 > GB. I already have everything I need on the 4GB, but I want the new > one to be the sole hard drive in the computer. Right now I have the 4 > as /dev/hda and the 40 as /dev/hdb. The 4 has three partitions; > /dev/hda2 is swap, so it doesn't matter. How can get all the info on > /dev/hda1 to be on /dev/hdb1 and /dev/hda3 to be on /dev/hdb3? > > I was reaching for dd, a command I'm a little unfamiliar with, but > then I got to wondering about the filesystem underneath. Would 'dd > if=/dev/hda1 of=/dev/hdb1' work? Should I already have a filesystem > on /dev/hdb1 or no? The man page doesn't help on this issue. > > -todd
I'm not sure I follow why these particular partitions are required but as regards the underlying information you could simply install clean a new distro on the new drive as /dev/hda and later mount the old drive as /dev/hdb at mount point /var2. Now you can pick the important data off the old drive and put it where you want on the new drive with the new install. As regards the particular partitions and sizes etc see the other thread on this list regarding LVM which will be instructive on the hows and why's of the number and sizes of partitions. HTH, RBW -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
