[gentoo-user] Copying a disk

2005-04-05 Thread Colin
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

Re: [gentoo-user] Copying a disk

2005-04-05 Thread Ow Mun Heng
On Tue, 2005-04-05 at 02:21 -0400, Colin wrote: 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

Re: [gentoo-user] Copying a disk

2005-04-05 Thread Mariusz Pkala
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

Re: [gentoo-user] Copying a disk

2005-04-05 Thread Bjoern Michaelsen
On Tue, Apr 05, 2005 at 02:59:07PM +0800, Ow Mun Heng wrote: Do not use cp, it doesn't preserve permission bits. cp -a does and is much faster than rsync. (sys-apps/coreutils-5.2.1-r4) -- Bjrn Michaelsen pub 1024D/C9E5A256 2003-01-21 Bjrn Michaelsen [EMAIL PROTECTED] Key fingerprint = D649

Re: [gentoo-user] Copying a disk

2005-04-05 Thread Ow Mun Heng
On Tue, 2005-04-05 at 10:06 +0200, Bjoern Michaelsen wrote: On Tue, Apr 05, 2005 at 02:59:07PM +0800, Ow Mun Heng wrote: Do not use cp, it doesn't preserve permission bits. cp -a does and is much faster than rsync. if you want to populate new hard drive w/o anything on it. I suggest you use

Re: [gentoo-user] Copying a disk

2005-04-05 Thread Robert G. Hays
tar does have one drawback that may or nay not matter to you -- it needs somewhere to put the tarball. The obvious answer is to put it on your new, blank, drive. However, cp -dpRa /* /mnt/newdrive -does- do the job properly; it complains that it is skipping the recursive copy of

Re: [gentoo-user] Copying a disk

2005-04-05 Thread Neil Bothwick
On Tue, 05 Apr 2005 12:31:04 -0400, Robert G. Hays wrote: tar does have one drawback that may or nay not matter to you -- it needs somewhere to put the tarball. The obvious answer is to put it on your new, blank, drive. It doesn't need to create a tarball file at all. By default, tar uses

Re: [gentoo-user] Copying a disk

2005-04-05 Thread James Hiscock
tar does have one drawback that may or nay not matter to you -- it needs somewhere to put the tarball. The obvious answer is to put it on your new, blank, drive. It doesn't need to create a tarball file at all. By default, tar uses stdout, you need the -f option to use a file, so you

Re: [gentoo-user] Copying a disk

2005-04-05 Thread Robert G. Hays
Hey!, learn something new every day! Thanks!, rgh. Neil Bothwick wrote: On Tue, 05 Apr 2005 12:31:04 -0400, Robert G. Hays wrote: tar does have one drawback that may or nay not matter to you -- it needs somewhere to put the tarball. The obvious answer is to put it on your new, blank, drive.

Re: [gentoo-user] Copying a disk

2005-04-05 Thread Ow Mun Heng
On Tue, 2005-04-05 at 13:27 -0400, Robert G. Hays wrote: Hey!, learn something new every day! Obviously you weren't reading my very 1st post. I did put in the exact same directive. Thanks!, rgh. Neil Bothwick wrote: On Tue, 05 Apr 2005 12:31:04 -0400, Robert G. Hays wrote: