On 2005-04-05 02:21:25 -0400 (Tue, Apr), Colin wrote:
> I have Gentoo partially installed on a hard drive.  It's taken a day so 
> far to compile stage1 (but it's almost done), so I'm not about to delete 
> it all and start over on a new disk.  But I'd like to pop in this newer, 
> faster, bigger disk before I continue the install, since I'll be 
> compiling programs and a faster disk would help out a little bit, 
> especially with only 128 MB of RAM.
> 
> I assume I can just fdisk the new drive and then "cp -L /dev/hdbn 
> /dev/hdan" my partitions (where n={1,2,3}).  Being a *nix newbie, I 
> think I'd better check before I do something potentially dangerous (for 
> example, I already know I'm missing an option to preserve permissions).
> 

You think good.
But - you should not copy /dev/hd*, you should mount the disks and then copy 
the directories.
I suppose that the -L option is not the right one. -R (recursive) and -p
(preserve permissions and owners) are better.

Rough guideline:

mkdir /mnt/new_one
mount /dev/hdan /mnt/new_one
cp -Rp /where_you_current_gentoo_reside /mnt/new_one

HTH

-- 
$ ls -lart
/bin/ls: you must be root to use LART

Attachment: pgpi5AbOsEqPT.pgp
Description: PGP signature

Reply via email to