LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-28-2018, 07:55 PM   #16
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015

As far as /tmp keeping certain files and others not, when the machine boots up it makes certain files in /tmp, which are the same as every other boot up. So, it might look like the same files are there, but they're different files with the same name in that they were deleted on shutdown and remade on boot up.
 
Old 03-28-2018, 10:12 PM   #17
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,770

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
Quote:
Originally Posted by NotNow View Post
I just used gsku nautilus to look at them, they all just have empty tmp folders in them.
Are you doing this while running on the OS that is using this root filesystem? Doing that makes it very likely that by now the disk blocks formerly used by those deleted files will have been overwritten. When those files were deleted, the space they were using was marked "free" and available for use, and the space allocator tends to use the free space queue on a "last in, first out" basis (making use of the space at hand rather than going out and searching for new space). That's not strictly true since there is also a preference for keeping a directory and its files in the same or nearby block groups, but /tmp is a pretty busy place, so blocks there tend to get re-used pretty rapidly.
 
Old 03-28-2018, 10:22 PM   #18
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
In short, post #2 & post #16 pretty much sum it up.
NEVER use /tmp for stuff you actually want preserved ... It's the *nix equiv of a re-usable scratch pad

Kind of like this http://dilbert.com/search_results?terms=Etch+A+Sketch

Last edited by chrism01; 03-28-2018 at 10:28 PM.
 
Old 03-29-2018, 06:11 AM   #19
Mike_Walsh
Member
 
Registered: Jul 2017
Location: King's Lynn, UK
Distribution: Nowt but Puppies....
Posts: 660

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
Quote:
Originally Posted by chrism01 View Post
In short, post #2 & post #16 pretty much sum it up.
NEVER use /tmp for stuff you actually want preserved ... It's the *nix equiv of a re-usable scratch pad

Kind of like this http://dilbert.com/search_results?terms=Etch+A+Sketch
I agree with Chris.

There is an accepted 'hierarchy', and methodology to the Linux file-system (this is why it's so much more logical, and makes much more sense when you understand it, than Windows' rather haphazard way of doing things.)

The /tmp directory works the same on every Linux distro out there; even on 'Puppy', which I use - and which is considered 'peculiar' by the standards of the large, mainstream distros! - in that it is a 'temporary' directory, not intended for long-term storage of files.

Theoretically, there are certain directories which make more sense for storing this kind of thing. In practice, any directory can be used; you could even create your own, custom-named directory under '/', so long as you edit the paths to suit, and point to the directory in question. As things stand, for this kind of thing, /opt would be a good choice. (More or less means 'optional', for items which don't really fit comfortably into the standard categories).

Quote:
As far as /tmp keeping certain files and others not, when the machine boots up it makes certain files in /tmp, which are the same as every other boot up. So, it might look like the same files are there, but they're different files with the same name in that they were deleted on shutdown and remade on boot up.
This is especially true with Puppy, which runs totally in RAM, and which copies the file-system into a temporary RAMdisk for the duration of each session from a 'read-only' compressed package.

('Payment' is neither wanted nor required. All on this forum are here to learn/share/'help out', and in general to accumulate our common pool of knowledge.....because we enjoy doing so!)


Mike.

Last edited by Mike_Walsh; 03-29-2018 at 07:15 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unpackaged version of LibreOffice? ProtossPn Linux - Software 3 12-11-2013 08:08 AM
[SOLVED] RPMBUILD unpackaged files listed clcbluemont Linux - Software 2 05-01-2012 10:39 AM
Ok.. my problem wasn't solved.... but at least I got my important files back... Ntvu Linux - Newbie 6 06-21-2008 07:17 PM
ReiserFS crashed over night - ALL files gone Yalla-One Linux - Hardware 14 07-18-2005 06:18 AM
Kernel upgrade to 2.6 Problem - Reward for Helping E Pierce Linux - Software 4 07-28-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration