[ILUG] New Hard Disc

Padraig Brady padraig at antefacto.com
Fri Jun 21 21:00:50 IST 2002


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.





More information about the ILUG mailing list