Re: Symlinking /tmp to /var...
Hello all, You were right, Brian, and Karsten, /var/tmp is NOT wiped on bootup. Sorry, my fault, didn't remember it exactly. Regards, Daniel On Mon, 16 Oct 2000 kmself@ix.netcom.com wrote: On Mon, Oct 16, 2000 at 10:19:08AM +0200, Daniel Reuter ([EMAIL PROTECTED]) wrote: Hello there, On Sat, 14 Oct 2000 kmself@ix.netcom.com wrote: On Sat, Oct 14, 2000 at 05:45:26AM -0500, Bud Rogers ([EMAIL PROTECTED]) wrote: On Sat, 14 Oct 2000, Miquel van Smoorenburg wrote: Alternatively symlink /tmp to the existing /var/tmp That would have been my suggestion. Anything wrong with that? Check your init scripts. /tmp is wiped on boot. /var/tmp may not be. In a standard installation (i.e. you havn't modified the init-scripts yourself), /var/tmp is wiped. So the symlink way worked for me without the slightest problem. Are you sure? If you've created the symlink and /var/tmp is mounted, you will wipe /var/tmp at boot along with /tmp. If you're running the tmpreaper utility, you'll automatically wipe everything in /tmp not accessed within the past 7 days. /etc/init.d/bootmisc.sh wipes /tmp only, not /var/tmp.
Re: Symlinking /tmp to /var...
Hello there, On Sat, 14 Oct 2000 kmself@ix.netcom.com wrote: On Sat, Oct 14, 2000 at 05:45:26AM -0500, Bud Rogers ([EMAIL PROTECTED]) wrote: On Sat, 14 Oct 2000, Miquel van Smoorenburg wrote: Alternatively symlink /tmp to the existing /var/tmp That would have been my suggestion. Anything wrong with that? Check your init scripts. /tmp is wiped on boot. /var/tmp may not be. In a standard installation (i.e. you havn't modified the init-scripts yourself), /var/tmp is wiped. So the symlink way worked for me without the slightest problem. Regards, Daniel
Re: Symlinking /tmp to /var...
Daniel == Daniel Reuter [EMAIL PROTECTED] writes: Daniel In a standard installation (i.e. you havn't modified the Daniel init-scripts yourself), /var/tmp is wiped. So the symlink Daniel way worked for me without the slightest problem. Regards, Daniel Daniel Are you sure about this? I have files dating back from 1999 on my /var/tmp, but an uptime of only 16 days. However, perhaps /var/tmp really should be wiped on startup. The following init.d file would have to be executed first, though. [557] [snoopy:bam] /etc/rcS.d ls -l S70nviboot lrwxrwxrwx1 root root 17 Feb 10 2000 S70nviboot - ../init.d/nviboot* Also, it might be important that this directory has the correct permissions and ownership: [562] [snoopy:bam] /etc/rcS.d ls -dl /var/tmp/vi.recover drwxrwxrwt2 root root 4096 Oct 16 19:38 /var/tmp/vi.recover/ -- Brian May [EMAIL PROTECTED]
Re: Symlinking /tmp to /var...
On Mon, Oct 16, 2000 at 10:19:08AM +0200, Daniel Reuter ([EMAIL PROTECTED]) wrote: Hello there, On Sat, 14 Oct 2000 kmself@ix.netcom.com wrote: On Sat, Oct 14, 2000 at 05:45:26AM -0500, Bud Rogers ([EMAIL PROTECTED]) wrote: On Sat, 14 Oct 2000, Miquel van Smoorenburg wrote: Alternatively symlink /tmp to the existing /var/tmp That would have been my suggestion. Anything wrong with that? Check your init scripts. /tmp is wiped on boot. /var/tmp may not be. In a standard installation (i.e. you havn't modified the init-scripts yourself), /var/tmp is wiped. So the symlink way worked for me without the slightest problem. Are you sure? If you've created the symlink and /var/tmp is mounted, you will wipe /var/tmp at boot along with /tmp. If you're running the tmpreaper utility, you'll automatically wipe everything in /tmp not accessed within the past 7 days. /etc/init.d/bootmisc.sh wipes /tmp only, not /var/tmp. -- Karsten M. Self kmself@ix.netcom.com http://www.netcom.com/~kmself Evangelist, Opensales, Inc.http://www.opensales.org What part of Gestalt don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/http://www.kuro5hin.org GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0 pgpP7jrw30c7n.pgp Description: PGP signature
Re: Symlinking /tmp to /var...
In article [EMAIL PROTECTED], Ethan Vaughn [EMAIL PROTECTED] wrote: Andreas Hetzmannseder wrote: Dear debian-users, The disk space for my root-partition is 40 MB, while I supplied 80 MB for my /var-partition. I would like to make a symbolic link from /tmp, which resides in the root partition, to /var. This was my plan: 1. Copying /tmp to /var/tmp.root (with /var/tmp.root being created) Try this: cp -a /tmp /var mv /var/tmp /var/tmp.root Don't do this. /var/tmp already exists, and by doing this you'll remove it, potentially breaking a lot of applications Simply do this: # cd /var # mkdir tmp.root # chown root:root tmp.root # chmod 2777 tmp.root # cd / # rm -rf tmp # ln -s /var/tmp.root tmp Alternatively symlink /tmp to the existing /var/tmp Mike.
Re: Symlinking /tmp to /var...
On Sat, 14 Oct 2000, Miquel van Smoorenburg wrote: Alternatively symlink /tmp to the existing /var/tmp That would have been my suggestion. Anything wrong with that? -- Bud Rogers [EMAIL PROTECTED]
Re: Symlinking /tmp to /var...
On Sat, Oct 14, 2000 at 05:45:26AM -0500, Bud Rogers ([EMAIL PROTECTED]) wrote: On Sat, 14 Oct 2000, Miquel van Smoorenburg wrote: Alternatively symlink /tmp to the existing /var/tmp That would have been my suggestion. Anything wrong with that? Check your init scripts. /tmp is wiped on boot. /var/tmp may not be. -- Karsten M. Self kmself@ix.netcom.com http://www.netcom.com/~kmself Evangelist, Opensales, Inc.http://www.opensales.org What part of Gestalt don't you understand? There is no K5 cabal http://gestalt-system.sourceforge.net/http://www.kuro5hin.org GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0 pgpPOdHuwaJzp.pgp Description: PGP signature
Symlinking /tmp to /var...
Dear debian-users, The disk space for my root-partition is 40 MB, while I supplied 80 MB for my /var-partition. I would like to make a symbolic link from /tmp, which resides in the root partition, to /var. This was my plan: 1. Copying /tmp to /var/tmp.root (with /var/tmp.root being created) 2. Deleting /tmp 3. Doing ln -s /var/tmp.root/ /tmp/ Even the first step didn't succeed - it said: Omitting file ... Nothing happened, but then again I might have done something stupid. Please can you show me a way to make sure that my /tmp-files will be going to /var? - My concern is that /tmp might be getting too big for /, thus I would like to have all temporary files to go into /var. Thanks in advance, Andreas.
Re: Symlinking /tmp to /var...
Andreas Hetzmannseder wrote: Dear debian-users, The disk space for my root-partition is 40 MB, while I supplied 80 MB for my /var-partition. I would like to make a symbolic link from /tmp, which resides in the root partition, to /var. This was my plan: 1. Copying /tmp to /var/tmp.root (with /var/tmp.root being created) Try this: cp -a /tmp /var mv /var/tmp /var/tmp.root The reason two steps are needed is because the -a option on the copy will create the directory as named. If you tried cp -a /tmp /var/tmp.root the cp command would try to create /var/tmp.root/tmp. From there you should be able to rm -r /tmp and then ln -s /var/tmp.root /tmp. If the rm doesn't work because of files in use, make sure to kill all processes that might be using the tmp. I would then reboot even though this is not necessary. But I'd do it anyway because booting clears the /tmp directory and I'd like a clean start. Lemme know if that doesn't do the trick... -- Ethan Vaughn aka levithan.net mailto:[EMAIL PROTECTED] RaGe oN oMNiPoTeNT