On Sunday 24 August 2003 08:04, Adam Dunstan carved in 
granite:
> i'm looking to move my existing gentoo install from a 3 gig
> hd to an 80 gig hd.
>
> i'm thinking i'll format the 80 gig (/dev/hdb) as 64 meg
> /boot (/dev/hdb1) 2 gig swap (/dev/hdb2)
> and the rest for / (/dev/hdb3)
>
> then i'll mount the /dev/hdb3 in /mnt/new and /dev/hdb1 as
> /mnt/new/boot
>
> and then cp -a ? all the top level directories except /dev
> and /proc to /mnt/new/ ?

Perhaps better than a cp -a would be to enter:
find dirtocp -depth -print -mount | cpio -pdfV /destpart

where "dirtocp" is the path to the top of the directory 
structure to copy and "/destpart" is the full path to the 
mounted partition you wish to copy the file structure into.  
This copies every file, including directory structure, 
maintains ownership, creation time and permissions.  The 
"-mount" prevents it from copying from a different partition 
than the one you start in (so /usr and /boot are not copied 
when you copy / ).  This also prints one '.' to the screen 
for each file copied, so you can monitor progress.  YMMV.


In Harmony's Way and In A Chord,

Tom  ;-})

Tom. Condon
Barbershop Bass Singer
Registered Linux User #154358
A Jester Unemployed


--
[EMAIL PROTECTED] mailing list

Reply via email to