Re: moving /var

2013-03-03 Thread Bob Proulx
Mr G wrote: > Why can't you just > > #mount --rebind /var /newvar Because that won't copy the data into the new filesystem. To do that you do actually need to copy the data as described in the previous messages. (I prefer 'rsync -a' over 'cp -a' because rsync can be restarted efficiently.) The

Re: moving /var

2013-03-01 Thread Mr G
Why can't you just #mount --rebind /var /newvar B G On Mar 1, 2013 4:00 PM, "Bob Proulx" wrote: > Bonno Bloksma wrote: > > >> A simple live CD is sufficient: > > >> Debian netinst minimal CD in rescue mode is sufficient to do so. > > >> Do not forget to update the /etc/fstab configuration file

Re: moving /var

2013-03-01 Thread Bob Proulx
Bonno Bloksma wrote: > >> A simple live CD is sufficient: > >> Debian netinst minimal CD in rescue mode is sufficient to do so. > >> Do not forget to update the /etc/fstab configuration file with respect > >> to the change; to clean up the /var (and let an empty one) in the `/' > >> (root) partiti

Re: moving /var

2013-03-01 Thread Nicolas Bercher
On 01/03/2013 09:41, Maroš Žilka wrote: Hi, I read in book about Linux file systems and at the end of chapter there was one example in which author wanted to create dedicated volume for /var coz it was mounted on root partition. Lets skip some steps and assume we have prepared partition on disk

RE: moving /var

2013-03-01 Thread Bonno Bloksma
Hi, >> A simple live CD is sufficient: >> Debian netinst minimal CD in rescue mode is sufficient to do so. >> Do not forget to update the /etc/fstab configuration file with respect >> to the change; to clean up the /var (and let an empty one) in the `/' >> (root) partition. > > It is simpler to m

Re: moving /var

2013-03-01 Thread Jerome BENOIT
Hello, On 01/03/13 12:06, Joao Luis Meloni Assirati wrote: Hello List, On 01/03/13 09:53, Lars Noodén wrote: On 3/1/13 10:41 AM, Maroš Žilka wrote: What would be better way to do it ? Is it even possible to do such change on running system without worries to lose some data ? I wouldn't do i

Re: moving /var

2013-03-01 Thread Lars Noodén
On 3/1/13 1:06 PM, Joao Luis Meloni Assirati wrote: > It is simpler to move the partition in single user mode. Just issue the > command (as root) > > # shutdown now Thanks. Single user mode is for things just like that. The answer was in front of us the whole time. Regards, /Lars -- To UNSU

Re: moving /var

2013-03-01 Thread Joao Luis Meloni Assirati
> Hello List, > > On 01/03/13 09:53, Lars Noodén wrote: >> On 3/1/13 10:41 AM, Maroš Žilka wrote: >>> What would be better way to do it ? Is it even possible to do such >>> change on running system without worries to lose some data ? >> >> I wouldn't do it on a running system. Better to boot from

Re: moving /var

2013-03-01 Thread Jerome BENOIT
Hello List, On 01/03/13 09:53, Lars Noodén wrote: On 3/1/13 10:41 AM, Maroš Žilka wrote: What would be better way to do it ? Is it even possible to do such change on running system without worries to lose some data ? I wouldn't do it on a running system. Better to boot from a live CD or simi

Re: moving /var

2013-03-01 Thread Claudius Hubig
Dear Maroš, Maroš Žilka wrote: > [root@server ~]# mkdir /new_var > [root@server ~]# mount /dev/sdb1 /new_var > [root@server ~]# cp -vrp /var/* /new_var/ > [root@server ~]# mv /var /old_var > [root@server ~]# mkdir /var > [root@server ~]# mount --bind /new_var/ /var > > and what is really botherin

Re: moving /var

2013-03-01 Thread Slavko
Hi, Dňa 1. 3. 2013 9:41 Maroš Žilka wrote / napísal(a): > and what is really bothering me most is that cp command, wouldn't it > possibly create inconsistency ? What would be better way to do it ? Is > it even possible to do such change on running system without worries > to lose some data ? som

Re: moving /var

2013-03-01 Thread Lars Noodén
On 3/1/13 10:41 AM, Maroš Žilka wrote: > What would be better way to do it ? Is it even possible to do such > change on running system without worries to lose some data ? I wouldn't do it on a running system. Better to boot from a live CD or similar and do it from there. About a different way, t

moving /var

2013-03-01 Thread Maroš Žilka
Hi, I read in book about Linux file systems and at the end of chapter there was one example in which author wanted to create dedicated volume for /var coz it was mounted on root partition. Lets skip some steps and assume we have prepared partition on disk - /dev/sdb1so he did it this way: [root@s

Re: moving /var

2006-12-30 Thread Douglas Tutty
On Wed, Dec 20, 2006 at 10:01:35PM -, [EMAIL PROTECTED] wrote: > Really, I asked two questions mixed up together. The other is how to > run makeinitrd, or anything else such as lilo or grub-install (or > whatever the command is) in a chroot, when chrooting cuts you off from > the /dev and /p

Re: moving /var

2006-12-24 Thread richard
On Sat, Dec 23, 2006 at 02:25:51PM -0500, Greg Folkert wrote: > On Sat, 2006-12-23 at 16:55 +0100, Michelle Konzack wrote: [..] > > /var/run and var/lock must NOT be on the root partition. > [...snip...] > > As of right NOW, Ubuntu uses a "different" way of booting. > > *IF* /var/run and /var/lock

Re: moving /var

2006-12-23 Thread Andrew Sackville-West
On Sat, Dec 23, 2006 at 03:42:49PM -0500, Greg Folkert wrote: > On Sat, 2006-12-23 at 09:04 -0800, Andrew Sackville-West wrote: > > On Sat, Dec 23, 2006 at 04:55:00PM +0100, Michelle Konzack wrote: > > > Am 2006-12-20 13:41:11, schrieb Greg Folkert: > > > > Effectively you have to make sure you get

Re: moving /var

2006-12-23 Thread Greg Folkert
On Sat, 2006-12-23 at 09:04 -0800, Andrew Sackville-West wrote: > On Sat, Dec 23, 2006 at 04:55:00PM +0100, Michelle Konzack wrote: > > Am 2006-12-20 13:41:11, schrieb Greg Folkert: > > > Effectively you have to make sure you get everything. If you are running > > > Ubuntu there are additional item

Re: moving /var

2006-12-23 Thread Greg Folkert
On Sat, 2006-12-23 at 16:55 +0100, Michelle Konzack wrote: > Am 2006-12-20 13:41:11, schrieb Greg Folkert: > > Effectively you have to make sure you get everything. If you are running > > Ubuntu there are additional items you need to make sure are taken care > > of. (Make sure /var/run and /var/loc

Re: moving /var

2006-12-23 Thread Andrew Sackville-West
On Sat, Dec 23, 2006 at 04:55:00PM +0100, Michelle Konzack wrote: > Am 2006-12-20 13:41:11, schrieb Greg Folkert: > > Effectively you have to make sure you get everything. If you are running > > Ubuntu there are additional items you need to make sure are taken care > > of. (Make sure /var/run and /

Re: moving /var

2006-12-23 Thread Michelle Konzack
Am 2006-12-20 15:20:33, schrieb Andrew Sackville-West: > mount proc -t proc /mnt/chroot/proc Ehm, -- mount -t none /proc /mnt/chroot/proc -o bind would work a little bit better and is the right way to go. Thanks, Greetings and nice Day Michelle Konzack Systemadministrator Tama

Re: moving /var

2006-12-23 Thread Michelle Konzack
Am 2006-12-20 13:41:11, schrieb Greg Folkert: > Effectively you have to make sure you get everything. If you are running > Ubuntu there are additional items you need to make sure are taken care > of. (Make sure /var/run and /var/lock are on the root partition for > tmpfs filesystems) /var/run and

Re: moving /var

2006-12-22 Thread s. keeling
celejar <[EMAIL PROTECTED]>: > On 12/21/06, s. keeling <[EMAIL PROTECTED]> wrote: > > > Note mv doesn't work between filesystems. cp -a or tar/untar (or any > > other archiver) is the right way. > > Are you sure this is true? I think I use mv to do that all the time. I stand corrected. It wa

Re: moving /var

2006-12-21 Thread celejar
On 12/21/06, s. keeling <[EMAIL PROTECTED]> wrote: Note mv doesn't work between filesystems. cp -a or tar/untar (or any other archiver) is the right way. Are you sure this is true? I think I use mv to do that all the time. Celejar -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subje

Re: moving /var

2006-12-21 Thread s. keeling
[EMAIL PROTECTED] <[EMAIL PROTECTED]>: > On Wed, Dec 20, 2006 at 01:41:11PM -0500, Greg Folkert wrote: > > > On Wed, 2006-12-20 at 14:36 +, [EMAIL PROTECTED] wrote: > > > I recently tried to move /var to a new partition. Booted from some > > > live cd, moved it and edited /etc/fstab to suit.

Re: moving /var

2006-12-21 Thread richard
On Wed, Dec 20, 2006 at 03:20:33PM -0800, Andrew Sackville-West wrote: > On Wed, Dec 20, 2006 at 10:01:35PM -, [EMAIL PROTECTED] wrote: > > On Wed, Dec 20, 2006 at 01:41:11PM -0500, Greg Folkert wrote: > > > > > On Wed, 2006-12-20 at 14:36 +, [EMAIL PROTECTED] wrote: > > > > I recently tri

Re: moving /var

2006-12-21 Thread Kevin Mark
On Wed, Dec 20, 2006 at 02:36:16PM +, [EMAIL PROTECTED] wrote: > I recently tried to move /var to a new partition. Booted from some > live cd, moved it and edited /etc/fstab to suit. Broke the machine > as it wouldn't boot afterwards (in fact I recollect it booted but with > no keyboard. Any

moving var

2006-12-20 Thread nomar
I'd recommend using rsync for this kind of thing. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Re: moving /var

2006-12-20 Thread Andrew Sackville-West
On Wed, Dec 20, 2006 at 10:01:35PM -, [EMAIL PROTECTED] wrote: > On Wed, Dec 20, 2006 at 01:41:11PM -0500, Greg Folkert wrote: > > > On Wed, 2006-12-20 at 14:36 +, [EMAIL PROTECTED] wrote: > > > I recently tried to move /var to a new partition. Booted from some > > > live cd, moved it and

Re: moving /var

2006-12-20 Thread richard
On Wed, Dec 20, 2006 at 01:41:11PM -0500, Greg Folkert wrote: > On Wed, 2006-12-20 at 14:36 +, [EMAIL PROTECTED] wrote: > > I recently tried to move /var to a new partition. Booted from some > > live cd, moved it and edited /etc/fstab to suit. Broke the machine > > as it wouldn't boot afterw

Re: moving /var

2006-12-20 Thread Greg Folkert
On Wed, 2006-12-20 at 14:36 +, [EMAIL PROTECTED] wrote: > I recently tried to move /var to a new partition. Booted from some > live cd, moved it and edited /etc/fstab to suit. Broke the machine > as it wouldn't boot afterwards (in fact I recollect it booted but with > no keyboard. Anyway it

Re: moving /var

2006-12-20 Thread i'll teach you to turn away.
[EMAIL PROTECTED] wrote: rtpn> I recently tried to move /var to a new partition. Booted from some rtpn> What should I have done? are you moving it because root is getting full? i've always moved /usr without problem - it's larger, anyhow. lish

Re: moving /var

2006-12-20 Thread Roberto C. Sanchez
On Wed, Dec 20, 2006 at 02:36:16PM -, [EMAIL PROTECTED] wrote: > I recently tried to move /var to a new partition. Booted from some > live cd, moved it and edited /etc/fstab to suit. Broke the machine > as it wouldn't boot afterwards (in fact I recollect it booted but with > no keyboard. Any

moving /var

2006-12-20 Thread richard
I recently tried to move /var to a new partition. Booted from some live cd, moved it and edited /etc/fstab to suit. Broke the machine as it wouldn't boot afterwards (in fact I recollect it booted but with no keyboard. Anyway it was unusable.) I thought it might be an initrd problem, and had a ha

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

Re: Moving /var

2001-08-27 Thread Karsten M. Self
on Mon, Aug 27, 2001 at 08:33:04PM -0700, Eric G. Miller (egm2@jps.net) wrote: > On Mon, Aug 27, 2001 at 08:09:15PM -0700, Jason Majors wrote: > > I currently have /var on hdc, but want to move it to sda. I've tried > > mounting > > the new partition as var2, copying the files, changing fstab, the

Re: Moving /var

2001-08-27 Thread Eric G. Miller
On Mon, Aug 27, 2001 at 08:09:15PM -0700, Jason Majors wrote: > I currently have /var on hdc, but want to move it to sda. I've tried mounting > the new partition as var2, copying the files, changing fstab, then rebooting, > but lots of programs complain. I'd guess it has something to do with the st

Moving /var

2001-08-27 Thread Jason Majors
I currently have /var on hdc, but want to move it to sda. I've tried mounting the new partition as var2, copying the files, changing fstab, then rebooting, but lots of programs complain. I'd guess it has something to do with the state of var at the time of the copy, vs at the time of shutdown/boot.

Re: Troubles with moving /var

1999-12-28 Thread John Pearson
On Mon, Dec 20, 1999 at 09:58:51PM -0500, Brian Servis wrote > *- On 20 Dec, Ethan Benson wrote about "Re: Troubles with moving /var" > > On 20/12/99 aphro wrote: > > > >> > >>cp -a doesn't work on more obscure platforms like irix..there is a tar &

Re: Troubles with moving /var

1999-12-21 Thread Paolo Pedaletti
Ciao Alberto Bigazzi, > I actually did it "by hand", by tar-ing /var, copying it under /home and > untaring it there. Then deleting /var and symlinking /home/var to /var. > > But I guess this is something VERY BAD as I ended up with lots of problems > with PERMISSIONS. Now normal users CANN

Re: Troubles with moving /var

1999-12-21 Thread Brian Servis
*- On 20 Dec, Ethan Benson wrote about "Re: Troubles with moving /var" > On 20/12/99 aphro wrote: > >> >>cp -a doesn't work on more obscure platforms like irix..there is a tar >>command..that acts like cp -a i saw it posted in a magazine(Maximum >>Linu

Re: Troubles with moving /var

1999-12-21 Thread Ethan Benson
On 20/12/99 aphro wrote: cp -a doesn't work on more obscure platforms like irix..there is a tar command..that acts like cp -a i saw it posted in a magazine(Maximum Linux) but i forgot what it was, if its linux its safe to use cp -a probably something like (cd / ; tar -cvpf - var) | (cd /home

Re: Troubles with moving /var

1999-12-20 Thread aphro
i moved /var /home /usr with the command cp -a which preserves everything, i did it on 2 main servers and have nbot had a single problem so i bet its a safe way of doing it(the servers have been online since april) cp -a doesn't work on more obscure platforms like irix..there is a tar command..tha

Re: Troubles with moving /var

1999-12-20 Thread Ethan Benson
On 20/12/99 Alberto Bigazzi wrote: I actually did it "by hand", by tar-ing /var, copying it under /home and untaring it there. Then deleting /var and symlinking /home/var to /var. But I guess this is something VERY BAD as I ended up with lots of problems with PERMISSIONS. Now normal users CANNO

Troubles with moving /var

1999-12-20 Thread Alberto Bigazzi
The / partition on my home PC is fairly small and sometimes gets filled up because ov /var, so I've decided to migrate /var somewhere else. I have /usr and /home as separate partitions and would like to leave /usr alone, thus putting /var under /home, which is quite large and nearly unused (

Re: moving /var to another partition??

1999-09-01 Thread kaynjay
On Wed, Sep 01, 1999 at 12:54:31PM -0700, Sean 'Shaleh' Perry wrote: > > On 01-Sep-99 [EMAIL PROTECTED] wrote: [...] > > Question is... which is likely best? Or should I go into mtab and mount th > > new partition at /var/cache/apt/archives/ (if that's possible)? > > > > *slap* > > mtab is a run t

Re: moving /var to another partition??

1999-09-01 Thread Nathan E Norman
On Wed, 1 Sep 1999 [EMAIL PROTECTED] wrote: : Hi, : : I'm setting up to upgrade my system to potato (while I sleep :) and know : that there's not enough room in /var/cache/apt/archives/. I've got another : partition to work with and could either symlink that dir to the new : partition, or

RE: moving /var to another partition??

1999-09-01 Thread Sean 'Shaleh' Perry
On 01-Sep-99 [EMAIL PROTECTED] wrote: > Hi, > > I'm setting up to upgrade my system to potato (while I sleep :) and know > that there's not enough room in /var/cache/apt/archives/. I've got another > partition to work with and could either symlink that dir to the new > partition, or move /var ov

Re: moving /var to another partition??

1999-09-01 Thread William T Wilson
On Wed, 1 Sep 1999 [EMAIL PROTECTED] wrote: > Question is... which is likely best? Or should I go into mtab and mount the > new partition at /var/cache/apt/archives/ (if that's possible)? You're on the right track. The correct solution is: mount -text2 /dev/whatever /var/cache/apt/archives Yo

moving /var to another partition??

1999-09-01 Thread kaynjay
Hi, I'm setting up to upgrade my system to potato (while I sleep :) and know that there's not enough room in /var/cache/apt/archives/. I've got another partition to work with and could either symlink that dir to the new partition, or move /var over (it's on it's own part. now). Question is... wh