Re: [gentoo-user] moving to new partition

2003-11-21 Thread Oliver Lange
John Ross Hunt wrote: I've always used this for moving data to new partitions: % cd /mnt/gentoo/var % find -xdev -depth -print | cpio -padvmB /mnt/gentoo/newvar There are many ways to Rome - like this one. I never thought about using 'find' for this.. :) -- [EMAIL PROTECTED] mailing list

RE: [gentoo-user] moving to new partition

2003-11-20 Thread John Ross Hunt
> Hello everybody, > > I'd like to change the /home & /var location > to newly added harddisk partitions, so i need > the correct cp command phrase which regards > all and every link & permission issue, like: > > cp -??? /mnt/gentoo/var /mnt/gentoo/newvar > > (booted from gentoo-basic without chroo

Re: [gentoo-user] moving to new partition

2003-11-18 Thread Norbert Kamenicky
Jason Stubbs wrote: Well, there's something that cp doesn't do... Most *nix gurus will tell you to use some magically tar and cpio pipe to do the job. I would have put that but I couldn't find an appropriate example. ;-) Here u have such example :-) : find src_dir -print | cpio -pduml

Re: [gentoo-user] moving to new partition

2003-11-17 Thread Oliver Lange
Jason Stubbs wrote: Well, there's something that cp doesn't do... Most *nix gurus will tell you to use some magically tar and cpio pipe to do the job. I would have put that but I couldn't find an appropriate example. ;-) However, you all have again painted the picture well. ..and the winner is:

Re: [gentoo-user] moving to new partition

2003-11-17 Thread Jason Stubbs
On Tuesday 18 November 2003 05:50, Danilo Piazzalunga wrote: > Alle 08:15, domenica 16 novembre 2003, Jason Stubbs ha scritto: > > Actually, just thinking - it doesn't preserve modification times which > > may be a problem with /var. Why not just use rsync? > > Actually, cp -a preserves mtimes (exc

Re: [gentoo-user] moving to new partition

2003-11-17 Thread Danilo Piazzalunga
Alle 08:15, domenica 16 novembre 2003, Jason Stubbs ha scritto: > Actually, just thinking - it doesn't preserve modification times which may > be a problem with /var. Why not just use rsync? Actually, cp -a preserves mtimes (except for symlinks, you know). From "Hard-Disk Upgrade Mini-HOWTO" and p

Re: [gentoo-user] moving to new partition

2003-11-17 Thread nealbirch
On Sun, 16 Nov 2003 13:54:37 +0100 Oliver Lange <[EMAIL PROTECTED]> wrote: > Jason Stubbs wrote: > > Actually, just thinking - it doesn't preserve modification times > > which may be a problem with /var. Why not just use rsync? > > > > rsync -a /mnt/gentoo/var/ /mnt/gentoo/newvar > > > > I didn

Re: [gentoo-user] moving to new partition

2003-11-16 Thread Oliver Lange
Jason Stubbs wrote: Actually, just thinking - it doesn't preserve modification times which may be a problem with /var. Why not just use rsync? rsync -a /mnt/gentoo/var/ /mnt/gentoo/newvar I didn't know whatever for rsync might be.. :) -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] moving to new partition

2003-11-16 Thread Mike Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 16 November 2003 11:27, Sven Vermeulen wrote: > On Sun, Nov 16, 2003 at 10:30:47AM +, Mike Williams wrote: > > I have been playing with LVM, and installing a new drive in my > > fileserver, so have had to do lots of partition moves, rsync

Re: [gentoo-user] moving to new partition

2003-11-16 Thread Sven Vermeulen
On Sun, Nov 16, 2003 at 10:30:47AM +, Mike Williams wrote: > I have been playing with LVM, and installing a new drive in my fileserver, so > have had to do lots of partition moves, rsync is the perfect tool for it. Unless you mean that you have had to move data from a non-LVM partition to a L

Re: [gentoo-user] moving to new partition

2003-11-16 Thread Mike Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 16 November 2003 07:15, Jason Stubbs wrote: > Actually, just thinking - it doesn't preserve modification times which may > be a problem with /var. Why not just use rsync? > > rsync -a /mnt/gentoo/var/ /mnt/gentoo/newvar > > Make sure to incl

Re: [gentoo-user] moving to new partition

2003-11-16 Thread Jason Stubbs
On Sunday 16 November 2003 15:53, Jason Stubbs wrote: > On Sunday 16 November 2003 15:42, Paul Fraser wrote: > > Does cp -a also preserve permissions? If not, you'll want to use -p as > > well. I can't try it since I'm not at a Linux box at the moment. > > In my previous mail: >        -a, --archiv

RE: [gentoo-user] moving to new partition

2003-11-16 Thread Paul Fraser
e: [gentoo-user] moving to new partition On Sunday 16 November 2003 15:42, Paul Fraser wrote: > Does cp -a also preserve permissions? If not, you'll want to use -p as > well. I can't try it since I'm not at a Linux box at the moment. In my previous mail:        -a, --archive  

Re: [gentoo-user] moving to new partition

2003-11-15 Thread Jason Stubbs
On Sunday 16 November 2003 15:42, Paul Fraser wrote: > Does cp -a also preserve permissions? If not, you'll want to use -p as > well. I can't try it since I'm not at a Linux box at the moment. In my previous mail:        -a, --archive               Preserve as much as possible of the structure and

Re: [gentoo-user] moving to new partition

2003-11-15 Thread Chad Martin
Paul Fraser wrote: Does cp -a also preserve permissions? If not, you'll want to use -p as well. I can't try it since I'm not at a Linux box at the moment. From man cp: -a, --archive same as -dpR Chad Martin -- [EMAIL PROTECTED] mailing list

RE: [gentoo-user] moving to new partition

2003-11-15 Thread Paul Fraser
2003 4:31 PM To: [EMAIL PROTECTED] Subject: Re: [gentoo-user] moving to new partition Jason Stubbs wrote: > I did a test and it works fine. The command you'll want is: > cp -a /mnt/gentoo/var/* /mnt/gentoo/newvar > > Be aware, however, that this will probably not copy .* files in the

Re: [gentoo-user] moving to new partition

2003-11-15 Thread Oliver Lange
Jason Stubbs wrote: I did a test and it works fine. The command you'll want is: cp -a /mnt/gentoo/var/* /mnt/gentoo/newvar Be aware, however, that this will probably not copy .* files in the top-level directory, in this case /mnt/gentoo/var. That's it. Becomes a habit to thank you. :) -- [EMAIL

Re: [gentoo-user] moving to new partition

2003-11-15 Thread Jason Stubbs
On Sunday 16 November 2003 12:32, Oliver Lange wrote: > I'd like to change the /home & /var location > to newly added harddisk partitions, so i need > the correct cp command phrase which regards > all and every link & permission issue, like: > > cp -??? /mnt/gentoo/var /mnt/gentoo/newvar From the

[gentoo-user] moving to new partition

2003-11-15 Thread Oliver Lange
Hello everybody, I'd like to change the /home & /var location to newly added harddisk partitions, so i need the correct cp command phrase which regards all and every link & permission issue, like: cp -??? /mnt/gentoo/var /mnt/gentoo/newvar (booted from gentoo-basic without chroot) Sorry if this