How to copy a Fedora-4 system? Again!

Timothy Murphy tim at birdsnest.maths.tcd.ie
Mon Apr 10 12:02:09 UTC 2006


Mogens Kjaer wrote:

> Boot in rescue mode, don't mount the partitions automatically.
> 
> When you get a command prompt, do like this:
> 
> cd /mnt
> mkdir old new
> 
> Mount your old partitions under old:
> 
> mount /dev/hda1 old
> mount /dev/hda2 old/usr
> mount /dev/hda3 old/usr/share
> mount /dev/hda4 old/usr/local
> mount /dev/hda5 old/boot
> etc.
> 
> Of course you'll have to replace hda[1-5] with the right
> names.
> 
> Create the new file system on the empty partition:
> 
> mke2fs -j -L/ -O dir_index,sparse_super /dev/yournewpartition
> 
> mount it:
> 
> dev /dev/yournewpartition /mnt/new
> 
> cd /mnt/old
> tar cf - .|(cd /mnt/new; tar xpf -)

That's a very good idea -
copy the system when it is not running.
I'll try that.
(I'll use Knoppix, as the FC-4 rescue CD
did not run on this SCSI-only system for some reason.)


-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland




More information about the fedora-list mailing list