On Wed, 2003-03-19 at 07:17, Ric Tibbetts wrote:
> Forget cp, it will nearly always choke on some things. To get a
> "reliable" copy, that guarentees all permissions, and ownerships will
> stay in tact:
> 
> #> cd /
> #> find /[old-home] -print | cpio -pdumv /[New-Home]
> 
> Then make the appropriate changes to /etc/fstab, and you're there.
> This one has never failed me.
> 
> Ric
> 

For everything but / cp -ax works .... has for me.  But for / I
recommend looking at partimage creating the diskettes and using those. 
You get a clean image that way that is usable.  To make it bootable boot
from the rescue CD have it mount your linux system then

cd /mnt

chroot /mnt lilo

This will write the mbr needed ... reboot and you're good to go.

James

> 
> 
> On Wed, Mar 19, 2003 at 12:28:34PM +0000, Christopher Joseph wrote:
> > First apologies. I have had some problems getting the search function on 
> > the mail archives to function properly this morning so I have not been 
> > able to trawl for past questions regarding the same topic properly.
> > 
> > The problem:
> > 
> > I have bought a new 80 Gb ATA133 Hard disk for my desktop running 
> > mandrake linux. I would like to migrate some of the partions on the 
> > existing disk to the new disk and then 'grow' the remaining partitions 
> > to fill the original disk.
> > 
> > I tried moving /home, /usr and /var on to the new disk by simply using 
> > SU on konqueror and simply copying the files accross. I them altered 
> > /etc/fstab to mount the new partitions at reboot.
> > 
> > BUT - the copy process changed a lot of permissions and all kinds of 
> > things have errored
> > 
> > Like:
> > 
> > opening emacs I couldn't save back to my emacs preferences because the 
> > .emacs... file had been chmodded as part of the copy process.
> > 
> > or
> > 
> > any number of services failed to shutdown or start despite there being 
> > no failures in the copy process. Again probably down to permissions.
> > 
> > 
> > The Question:
> > 
> > How should I migrate partions (/var, /usr, /home) onto the new disk and 
> > grow the remaining ones (/, SWAP).
> > 
> > Thanks in advance.
> > -- 
> > Christopher Joseph
> > 
> > -------------------
> > http://www.ideadesigners.com  [iseries & web technologies]
> > mailto: [EMAIL PROTECTED]
> > ICQ: 78019724
> > 
> > 
> > 
> > 
> > 
> 
> > Want to buy your Pack or Services from MandrakeSoft? 
> > Go to http://www.mandrakestore.com
> 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to