Re: Upgrading Hard Drives

2008-08-16 Thread Alex Samad
On Sat, Aug 16, 2008 at 12:15:41AM +0300, Andrei Popescu wrote: On Sat,16.Aug.08, 07:07:39, Alex Samad wrote: man rsync -x, --one-file-system don’t cross filesystem boundaries which means not to traverse any filesystem mounts, which is why it doesn't do /prox /sys /dev,

Upgrading Hard Drives

2008-08-15 Thread Martin McCormick
I've got a working Debian system that I am about to break. I am replacing the master drive with a new one that is 32 times the size of the old one and want to transfer the system intact from the old one to the new one so dd is not an option but I want to be sure to preserve all the special

Re: Upgrading Hard Drives

2008-08-15 Thread Shachar Or
On Friday 15 August 2008 14:41, Martin McCormick wrote: I've got a working Debian system that I am about to break. I am replacing the master drive with a new one that is 32 times the size of the old one and want to transfer the system intact from the old one to the new one so dd is not

Re: Upgrading Hard Drives

2008-08-15 Thread Martin McCormick
Shachar Or writes: On Friday 15 August 2008 14:41, Martin McCormick wrote: I've got a working Debian system that I am about to break. I am replacing the master drive with a new one that is 32 times the size of the old one and want to transfer the system intact from the old one to

Re: Upgrading Hard Drives

2008-08-15 Thread Andrei Popescu
On Fri,15.Aug.08, 06:41:06, Martin McCormick wrote: [...] The a command in fdisk says to toggle a boot flag. When I make a Linux partition and then mkfs -text3, what state is that flag in? I looked at the known good disk and the new one and fdisk reported the same information except

Re: Upgrading Hard Drives

2008-08-15 Thread Tod Detre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin McCormick wrote: I've got a working Debian system that I am about to break. I am replacing the master drive with a new one that is 32 times the size of the old one and want to transfer the system intact from the old one to the new one

Re: Upgrading Hard Drives

2008-08-15 Thread Shachar Or
On Friday 15 August 2008 22:27, Andrei Popescu wrote: On Fri,15.Aug.08, 06:41:06, Martin McCormick wrote: [...] The a command in fdisk says to toggle a boot flag. When I make a Linux partition and then mkfs -text3, what state is that flag in? I looked at the known good disk and the

Re: Upgrading Hard Drives

2008-08-15 Thread Andrei Popescu
On Fri,15.Aug.08, 23:05:32, Shachar Or wrote: I like rsync. If you do it from a live CD it will copy only files actually on disk, not the ones created dynamically by e.g. udev. There's the -x option for this. It isn't specifically for this purpose but it works. AFAIU -x will prevent

Re: Upgrading Hard Drives

2008-08-15 Thread Shachar Or
On Friday 15 August 2008 23:15, Andrei Popescu wrote: On Fri,15.Aug.08, 23:05:32, Shachar Or wrote: I like rsync. If you do it from a live CD it will copy only files actually on disk, not the ones created dynamically by e.g. udev. There's the -x option for this. It isn't specifically

Re: Upgrading Hard Drives

2008-08-15 Thread Andrei Popescu
On Fri,15.Aug.08, 23:42:58, Shachar Or wrote: AFAIU -x will prevent rsync from touching /proc, /sys and /dev, but you will need the directories themselves to be present on the new root partition, so I think it is better to omit -x *if* the system you want to clone is *not* running. But

Re: Upgrading Hard Drives

2008-08-15 Thread Alex Samad
On Fri, Aug 15, 2008 at 11:42:58PM +0300, Shachar Or wrote: On Friday 15 August 2008 23:15, Andrei Popescu wrote: On Fri,15.Aug.08, 23:05:32, Shachar Or wrote: I like rsync. If you do it from a live CD it will copy only files actually on disk, not the ones created dynamically by e.g.

Re: Upgrading Hard Drives

2008-08-15 Thread Andrei Popescu
On Sat,16.Aug.08, 07:07:39, Alex Samad wrote: man rsync -x, --one-file-system don’t cross filesystem boundaries which means not to traverse any filesystem mounts, which is why it doesn't do /prox /sys /dev, they are all mounted filesystems (it will create the mount point though.

Re: Upgrading Hard Drives

2008-08-15 Thread Tod Detre
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 AFAIU -x will prevent rsync from touching /proc, /sys and /dev, but you will need the directories themselves to be present on the new root partition, so I think it is better to omit -x *if* the system you want to clone is *not* running. But

Re: Upgrading Hard Drives

2008-08-15 Thread Shachar Or
On Saturday 16 August 2008 00:05, Andrei Popescu wrote: On Fri,15.Aug.08, 23:42:58, Shachar Or wrote: AFAIU -x will prevent rsync from touching /proc, /sys and /dev, but you will need the directories themselves to be present on the new root partition, so I think it is better to omit -x

Re: Upgrading Hard Drives

2008-08-15 Thread Shachar Or
On Saturday 16 August 2008 00:45, Tod Detre wrote: AFAIU -x will prevent rsync from touching /proc, /sys and /dev, but you will need the directories themselves to be present on the new root partition, so I think it is better to omit -x *if* the system you want to clone is *not* running.