Unix Technical Forum

ln -sf /var/tmp /tmp ??

This is a discussion on ln -sf /var/tmp /tmp ?? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Mario Berger <no_damned_spam@nospam.no> wrote: >> > > Why waste time looking at the rest of the detail... >> > ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #21 (permalink)  
Old 02-19-2008, 04:32 PM
Floyd L. Davidson
 
Posts: n/a
Default Re: ln -sf /var/tmp /tmp ??

Mario Berger <no_damned_spam@nospam.no> wrote:
>> > > Why waste time looking at the rest of the detail...
>> >
>> > because someone might have made a typo?

>> So? He corrected it, and we go on from there...

>
>http://members.tripod.com/~goodwin_2/law.html


"Goodwin's Law"????

That web page has far more than just the wrong word...

--
FloydL. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 02-19-2008, 04:41 PM
Mikhail Zotov
 
Posts: n/a
Default Re: ln -sf /var/tmp /tmp ??

Sylvain Robitaille <syl@alcor.concordia.ca> wrote in message news:<slrncmvss6.6ok8.syl@alcor.concordia.ca>...
> Mikhail Zotov wrote:
>
> > I find it useful to have /tmp on a separate partition (especially
> > in a multi-user environment) since some programs create lots of
> > temporary files. Still, there is also /var/tmp, which is world
> > writable and thus can also overfill the root partition under some
> > circumstances. Surely, one can place /var/tmp on a separate
> > partition, too. But the number of partitions then seems to grow
> > too much (just MHO). The only idea that comes to my mind is to
> >
> > # rmdir /var/tmp
> > # ln -sf /var/tmp /tmp

>
> That will leave you with a dangling symlink: /tmp/tmp
>
> What you *meant* to write was:
>
> rmdir /var/tmp
> ln -s ../tmp /var
>


Yeah, you are right!! Thank you! (I wonder that you are the only
one who noticed my mistake :-))


> (Note that the relative path makes it possible to mount the disk on
> another system, perhaps for maintenance, repair, upgrade, forensics,
> or whatever other reason, and still get the expected result)
>
> > Does anyone know about possible drawbacks of this solution?

>
> None to my knowledge. I've been doing it for years.
>
> Others have pointed out that it's probably more common practice to have
> /tmp symlink to /var/tmp, which I've also done (on non-Linux systems)
> for years, but I prefer the separate /tmp: I don't need to backup /tmp,
> but I do want to backup /var (mail and printer spools, system logs, etc)


And /var/cache/fonts ? ;-)

Anyway, thank you very much for you clear and concise answer.
I think I understand the situation much better now.

Regards,
Mikhail
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 02-19-2008, 04:41 PM
Mikhail Zotov
 
Posts: n/a
Default Re: ln -sf /var/tmp /tmp ??

Joost Kremers <joostkremers@yahoo.com> wrote in message news:<slrncmuvm2.9m.joostkremers@j.kremers4.news.a rnhem.chello.nl>...
> Jeffrey Froman wrote:
> > Seems like a fine idea to me, though I've never tried it myself. I'll point
> > out though that /var/log and /var/spool can fill up as well. My philosophy
> > is that when it makes sense to have /tmp on a separate partition, it makes
> > just as much sense to have /var on one too.

>
> yeah. isn't the more common solution to put /var on a separate partition
> and symlink /tmp to /var/tmp?


Nothing is common in the windoops environment I have here
Still, thanks for the idea! I have implemented it.

Regards,
Mikhail
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 02-19-2008, 04:42 PM
Sylvain Robitaille
 
Posts: n/a
Default Re: ln -sf /var/tmp /tmp ??

Mikhail Zotov wrote:

> Yeah, you are right!! Thank you! (I wonder that you are the only
> one who noticed my mistake :-))


So did I actually, but let's just carry on believing that everyone had
interpretted what you meant, not what you actually wrote. :-)

> Anyway, thank you very much for you clear and concise answer.


You're welcome. I'm glad to have helped.

--
----------------------------------------------------------------------
Sylvain Robitaille syl@alcor.concordia.ca

Systems analyst Concordia University
Instructional & Information Technology Montreal, Quebec, Canada
----------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:26 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com