[plug] upgrading hard drive

Colin Muller colin at twobluedots.com.au
Sun Jun 9 10:23:09 WST 2002


On Sun, Jun 09, 2002 at 10:05:30AM +0800, Jon L. Miller wrote:
> I need to run this by someone hoping to find the answer.
> Currently I'm upgrading a system that has a 10G hdd and I want to change
> that to a 20G hdd.
> Using the following, I'm wondoering why I'm running out of space during
> the copy process.
> Old setup
> /dev/hda2=/ =9.2G
> /dev/hda1=/boot =45M
> /dev/hda3=swap=55M
> 
> New setup 
> /dev/hdb1=/boot=50M
> /dev/hdb2=/=15.2G
> /dev/hdb3=swap=128M
> 
> What is happening after I create the mounts (/dev/hdb1 /newhdd and
> /dev/hdb2 /newhdd/home) I issue the following:
> cp / && echo cp -a `/bin/ls -1Ab | egrep -v "^newhdd$|^proc$"` /newhdd |
> sh (all on one line)
> This is so the copying skips /newhdd and /proc.

If you have rsync available, it's probably simpler to do:
rsync -av --exclude=/newhdd --exclude=/proc /* /newhdd/home/

Test the idea on a small dataset to make sure I've got the exclude
pattern syntax right.

> 
> But I keep running out of space, it appears that the copying is going
> into the boot partition. I'm assuming I need to change /newhdd to be
> /newhdd/home. Does this seem right?

Yes.

Colin

> 
> 
> Like to know what the formula is to calculate cyclinders into MB.
> 
> TIA
> 
> jlm
> 



More information about the plug mailing list