James Knott wrote:
Per Jessen wrote:
David C. Rankin wrote:
Forget rsync, 'dd' is your friend here. The replacement can be as simple as hooking your new drive up and doing "dd old new", remove old, reboot, done! We'll call the new drive /dev/sdb for this example and /dev/sda the old, then just hook your new driver up, then:
dd if=/dev/sda of=/dev/sdb
David, that way Bob will end up with an exact copy of his old 8Gb drive, which is (probably) good/useful, but he'll also have no use for the remaining gigabytes - the new drive is likely to be 160G or bigger.
I thought partitions could be enlarged. So, set up as an 8GB and then go from there.
Yes, The main purpose of suggesting dd, was that Bob will also get the master boot record copied. That way he never even has to worry about sticking an install disk in the cd drive;-) As for the disk size thing, let's say Bob's 8G drive is partitioned as: /dev/sda1 100M mounted as /boot /dev/sda5 3G mounted as / /dev/sda6 4G mounted as /home /dev/sda7 900M swap Let's say new drive is 500G. After dd, then Bob can just create additional partitions out of the unused space. If / is tight because /var is getting close to full, then just cfdisk create a new 10G extended partition /dev/sda8, mount /dev/sda8 /mnt/tmp; cp -a /var/* /mnt/tmp; umount /mnt/tmp; rm -r /var; mount /dev/sda8 /var. If bob was going to upgrade to 11 or 11.1, then of course I'd just unplug the current hard drive, install the new, install openSuSE, the plug the old hard drive back in as a slave and then rsync -a or cp -a all the data from /old /new -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org