Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I thought to keep my Lenny nice and clean, I'll create a separate partition for /tmp In which I created a folder for my downloads and temporary files. Files ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    32

    [SOLVED] my folder in /tmp keeps dissappearing


    Hi,

    I thought to keep my Lenny nice and clean, I'll create a separate partition for /tmp
    In which I created a folder for my downloads and temporary files.
    Files that usually I keep for a short period of time, then delete them.

    Only I got this problem:
    Every time I restart the pc, that folder is gone.

    How do I make it stay there after rebooting?

    Thanks.

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    The /tmp folder is kind of a reserved directory for the system. Anybody may write to it, but it is cleared by the system on reboot, as intended by the inventor. So you should create the folder somewhere else if you wish to save it over reboots.

    That said, you can probably locate the command emptying the directory somewhere in the startup-scripts in /etc/rc.S.
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,195
    Most modern distros implement /tmp as a ramdisk (tmpfs), which is why it disappears. If you feel brave, you could edit the relevant line in /etc/fstab so that an actual disk partition gets mounted there.
    "I'm just a little old lady; don't try to dazzle me with jargon!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •