On Wed, Mar 29, 2000 at 10:32:41PM +1000, Matthias Oertli wrote:
> I need to copy the contents of a linux partition onto a bigger
> partition on a replacement harddisk. I'd like an exact copy with all
> the permissions intact, etc.
> Would a  simple  cp -a /oldhd/* /newhd/*   do the trick is there a
> better way?

"cp -a" works fine - its only these old-worlder (preGNU) types who
resort to the "tar c | tar x" tricks ;)

(you may also want cp's -x option to stay on the one file system)


best to drop down to single user mode ("telinit s") first, to try to
make your source filesystem a little cleaner.


if its going to be a new root drive, make sure you update the new
/etc/fstab, /etc/lilo.conf, etc with the new root device - and
probably rerun lilo at some point


(my linux install has jumped across 4 drives (each increasing in size) 
over the years - its very easy to do)

-- 
 - Gus
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to