Re: Moving /var to another drive

2002-03-13 Thread George Karaolides
On 12 Mar 2002, Shri Shrikumar wrote: > On Tue, 2002-03-12 at 15:42, Franηois Chenais wrote: > > And what happens if the /var/log and /var/run dirs that can change during > > the tar ? > > > > Franηois > > Go into single user mode telinit 1 and then tar. I actually use cp -a > which seems t

Re: Moving /var to another drive

2002-03-12 Thread Dimitri Maziuk
* Neal Lippman ([EMAIL PROTECTED]) spake thusly: ... > One thing I wondered about, though. You are using the technique of taring up > the entire directory tree and then untaring it into the target partition. Why > not just use cp -a instead? Tradition, portability. "cp -a" is a GNUism, there w

Re: Moving /var to another drive

2002-03-12 Thread Neal Lippman
> George Karaolides <[EMAIL PROTECTED]> wrote: > > Hi Andrew, > > > > > > > > And transfer the data using tar: > > > > tar cplf - -C / var | tar xvf - -C /mnt > > I recently did something similar, moving my personal files to a new HD so that I can mount the entire drive (partitioned as one big

Re: Moving /var to another drive

2002-03-12 Thread Dimitri Maziuk
* François Chenais ([EMAIL PROTECTED]) spake thusly: > And what happens if the /var/log and /var/run dirs that can change during > the tar ? You may end up with a slightly b0rked system (but you knew that already). If your /var was on the root drive, you'll have to delete its contents before mou

Re: Moving /var to another drive

2002-03-12 Thread Dave Sherohman
On Tue, Mar 12, 2002 at 03:33:55PM +0200, George Karaolides wrote: > That's it. Note that if /usr and /var were originally part of your root > filesystem, the data will still be there but the new filesystem will be > mounted on the top level directory so you won't see it. After you've > successfu

Re: Moving /var to another drive

2002-03-12 Thread Dave Sherohman
On Tue, Mar 12, 2002 at 04:42:37PM +0100, François Chenais wrote: > And what happens if the /var/log and /var/run dirs that can change during > the tar ? That's my main disagreement with George's instructions. Go to single-user mode _before_ you copy /var and /usr to the new drive instead of aft

Re: Moving /var to another drive

2002-03-12 Thread Shri Shrikumar
On Tue, 2002-03-12 at 15:42, François Chenais wrote: > And what happens if the /var/log and /var/run dirs that can change during > the tar ? > > François Go into single user mode telinit 1 and then tar. I actually use cp -a which seems to preserve all the required attributes. I have done

Re: Moving /var to another drive

2002-03-12 Thread Scott Henson
On Tue, 2002-03-12 at 08:33, George Karaolides wrote: > And transfer the data using tar: > > tar cplf - -C / var | tar xvf - -C /mnt I would use rsync for this. It is faster and just all around better(IMHO). > Unmount the partition > > umount /mnt > > Mount the other one and do the same thin

Re: Moving /var to another drive

2002-03-12 Thread François
And what happens if the /var/log and /var/run dirs that can change during the tar ? François On Tue, 12 Mar 2002 15:33:55 +0200 (EET) George Karaolides <[EMAIL PROTECTED]> wrote: > > Hi Andrew, > > You need to be root on your machine to do this. > > Make two partitions on the new dr

Re: Moving /var to another drive

2002-03-12 Thread George Karaolides
Hi Andrew, You need to be root on your machine to do this. Make two partitions on the new drive using cfdisk /dev/ Then make a filesystem on each partition. Stick to the tried-and-tested ext2, or go for one of the new journalling ones like ext3 or reiserfs, if you're running a kernel recent e

Moving /var to another drive

2002-03-12 Thread Andrew Stephen
Hi My /var and /usr partitions have just run out of space and I was wondering what is the best way to copy them to a new drive that has just been installed. Any suggestions would be greatly appreciated. Regards, Andrew