Re: [ILUG] New Hard Disc

From: Padraig Brady (padraig at domain antefacto.com)
Date: Fri 21 Jun 2002 - 21:00:50 IST


Simon Dickson wrote:
> I have used parted before to copy partitions, didnt do the boot sector but a
> boot disk and then run lilo/grub will fix that.
>
> Simon
>
> On Sat, 22 Jun 2002 03:50, Tom Mackey wrote:
>
>>Hi,
>>The disc in my Linux machine is almost full and I would like to replace it
>>with a larger one. I can add the new dics to the machine and have it
>>running temporarly on the same IDE as the existing. How do I copy across
>>all the content of the old disc including boot sector, all existing setup
>>etc? The existing disc is just one / partition (+swap). I have tried
>>Google but failed to find a solution.
>>Tom Mackey
>
>

Hmm, how about:
1. dd bs=32k if=/dev/hda of=/dev/hdb
2. reboot with new disk and use ext2resize to extend
    your 1 partition to fill the disk (shouldn't affect
    lilo I think?).

Padraig.



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:25 GMT