Re: [gentoo-user] When copying an os to new disk

2010-02-26 Thread Neil Bothwick
On Fri, 26 Feb 2010 17:00:22 +0100, Alex Schuster wrote: > If $old_dir is the root partition, I would bin-mount it first to > somewhere else, so other directories mounted to it > (especially/dev, /proc and /sys) are not copied: > mount -o bind / /mnt > old_dir=/mnt Or use the --one-file-system op

Re: [gentoo-user] When copying an os to new disk

2010-02-26 Thread Kyle Bader
>> tar cf - $old_dir | ( cd $new_dir: tar xf - ) >> tar cf - $old_dir | ssh $other_host "( cd $new_dir: tar xf - )" >                                                    ^ > The ':' separating commands should be a ';'. Using the -C option would be > a little easier, but your method also would work f

Re: [gentoo-user] When copying an os to new disk

2010-02-26 Thread Alex Schuster
Kyle Bader writes: > > I opted to reinstall from source that machine, which wasn't exactly a > > bad choice anyway. But as always, rtfm is good advice! Thanks (not > > sarcastic, except to mock myself). > > Another option other than rsync or dd is to use tar: Yeah, that's what I usually do.n T

Re: [gentoo-user] When copying an os to new disk

2010-02-26 Thread Kyle Bader
> I opted to reinstall from source that machine, which wasn't exactly a > bad choice anyway.  But as always, rtfm is good advice!  Thanks (not > sarcastic, except to mock myself). Another option other than rsync or dd is to use tar: tar cf - $old_dir | ( cd $new_dir: tar xf - ) tar cf - $old_dir

Re: [gentoo-user] When copying an os to new disk

2010-02-26 Thread daid kahl
On 26 February 2010 10:06, Stroller wrote: > > On 25 Feb 2010, at 17:59, daid kahl wrote: >> >> ... >> As a side note, I tried dd piped through ssh and my router (with >> firewall) was resetting the connection after around 4GB, and I don't >> know of anyway to resume a dd. > > NAME >       dd - co

Re: [gentoo-user] When copying an os to new disk

2010-02-25 Thread Stroller
On 25 Feb 2010, at 17:59, daid kahl wrote: ... As a side note, I tried dd piped through ssh and my router (with firewall) was resetting the connection after around 4GB, and I don't know of anyway to resume a dd. NAME dd - convert and copy a file SYNOPSIS dd [OPERAND]... d

Re: [gentoo-user] When copying an os to new disk

2010-02-25 Thread daid kahl
On 22 February 2010 16:49, daid kahl wrote: > On 20 February 2010 05:34, Harry Putnam wrote: >> I'm currently rsyncing an OS (new gentoo install) from one vmware disk >> to a newly created one. > > you could dd it too, and then mount the new system and remove stuff in > /proc and /dev you don't w

Re: [gentoo-user] When copying an os to new disk

2010-02-22 Thread daid kahl
On 20 February 2010 05:34, Harry Putnam wrote: > I'm currently rsyncing an OS (new gentoo install) from one vmware disk > to a newly created one. you could dd it too, and then mount the new system and remove stuff in /proc and /dev you don't want. This could avoid any problems of your rsync opti

Re: [gentoo-user] When copying an os to new disk

2010-02-20 Thread Xi Shen
On Sat, Feb 20, 2010 at 5:25 AM, Volker Armin Hemmann wrote: > On Freitag 19 Februar 2010, Harry Putnam wrote: >> I'm currently rsyncing an OS (new gentoo install) from one vmware disk >> to a newly created one. >> >> I know not to copy /proc but not sure about /dev.  Looking at an >> unbooted OS

Re: [gentoo-user] When copying an os to new disk

2010-02-19 Thread Volker Armin Hemmann
On Freitag 19 Februar 2010, Harry Putnam wrote: > I'm currently rsyncing an OS (new gentoo install) from one vmware disk > to a newly created one. > > I know not to copy /proc but not sure about /dev. Looking at an > unbooted OS disk with an install on it... I see /dev/ is populated > (with no bo

Re: [gentoo-user] When copying an os to new disk

2010-02-19 Thread Daniel Troeder
On 02/19/2010 09:34 PM, Harry Putnam wrote: > I'm currently rsyncing an OS (new gentoo install) from one vmware disk > to a newly created one. > > I know not to copy /proc but not sure about /dev. Looking at an > unbooted OS disk with an install on it... I see /dev/ is populated > (with no boot u

[gentoo-user] When copying an os to new disk

2010-02-19 Thread Harry Putnam
I'm currently rsyncing an OS (new gentoo install) from one vmware disk to a newly created one. I know not to copy /proc but not sure about /dev. Looking at an unbooted OS disk with an install on it... I see /dev/ is populated (with no boot up), but I recall seeing things during boot like `populat