LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 06:46 AM   #1
NotNow
LQ Newbie
 
Registered: Mar 2018
Location: London
Distribution: Ubuntu
Posts: 8

Rep: Reputation: Disabled
HELP!! Files seem to have unpackaged/moved themselves over-night?! Need help ASAP, will pay reward if problem solved!!


Hello everyone and thanks for taking the time to read this! I'm quite a noob with Linux and computers in general (but am trying to get better). I hope I get my problem across well enough & that Ive posted this in the right forum. Anyway, my problem is as such..

Been getting into crypto recently, been investing in a bunch of coins and over the last couple of weeks have been moving everything onto hardware wallets & cold storage to sit on for a while. Two days ago I was buying the last 2 crypto assets that I wanted in my portfolio - SHIP & TOMO

For those unfamiliar, both tokens are only available atm on a pretty small, illiquid exchange called IDEX. I didnt have an account with IDEX before (because too small & illiquid) but decided to get one specifically for these 2 assets.

Fast forwarding a little bit to get into the problem a bit quicker, to access your IDEX account (in the way I set it up with Keystore File) you have to open it with a JSON.file(which you download from them) + your password.

I do all this and everything is fine, the file automatically saves itself in 'Computer > tmp > mozilla_mark > UTC_..' (UTC.. being the file in question that unlocks they account). So I log on, place my orders and log off, thinking I will come back in 1-2 days to see if my orders have filled, and if so, move them onto respective hardware wallets.

2 days later is today and when I go to log in and find my 'UTC...' file, it has disappeared?!?! the folder only goes as far as 'Computer > tmp >' now, and in its place for the other folders/files, are completely random ones Ive never seen before, varying in size & nonsense.

I feel physically sick and am so scared, please if anyone can help me figure out:

A) why the files moved/changed themselves like this?
B) how can I reverse it?
C) how can I prevent it happening again?

I understand this may not be a specific Linux problem though IDK what else it could be, I've never had happen this before and am new to Linux since 2 weeks so hoping its just a easily fixed system fault!

Like I said above, really urgently need some help on this, its a very large amount of money (for me) at risk of being lost forever because of this stupid file and will happily pay any1 who manages to help a reward fee, payable in BTC/LTC/XMR or FIAT

If someone does read this and wants to try and help but I have missed out any info that might be useful please let me know and I will try and clarify a bit better!

thanks so much anyone who read

Mark
Attached Thumbnails
Click image for larger version

Name:	tmp.jpg
Views:	17
Size:	69.0 KB
ID:	27318  

Last edited by NotNow; 03-28-2018 at 12:01 PM. Reason: added attachment to show the new random files that replaced the missing one
 
Old 03-28-2018, 06:55 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I would advise you to contact IDEX.

/tmp is, as its name implies, a temporary directory. You should never rely on anything that is there staying there, especially after a reboot when many systems automatically delete the files in it.
 
Old 03-28-2018, 07:05 AM   #3
NotNow
LQ Newbie
 
Registered: Mar 2018
Location: London
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
I would advise you to contact IDEX.

/tmp is, as its name implies, a temporary directory. You should never rely on anything that is there staying there, especially after a reboot when many systems automatically delete the files in it.
OK, Now I know that I will be careful in the future. I have already contacted IDEX and am awaiting a reply, but I very much doubt they will be able to help with anything.

If everything in the 'tmp' file gets deleted, how come other programs that I had downloaded but not used were not altered or deleted in the same way?? There is nothing in the recycle bin either, is there any way to do a a window-esque style system restore to 2days ago?

Or surely there must be some way to retrieve the deleted file?? I find it hard to believe a laptop will permanently delete 1 specific file while leaving others, and then on top of that, making it all irreversable. especcially when there wasnt a large delayed timeframe too (

any other ideas??

thank you for your reply anyway!
 
Old 03-28-2018, 07:16 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
If you installed a program like TimeShift, or have made a system backup/image/snapshot then you can roll back. If not, no.

You could try the file undeleters TestDisk and Photorec to see what you can find, but in that case I would advise you to use your system at the bare minimum, to lessen the chance of the deleted files' data being over-written, or, even better, make a complete backup of your disk/partition and then work on that data offline.
 
Old 03-28-2018, 07:26 AM   #5
NotNow
LQ Newbie
 
Registered: Mar 2018
Location: London
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
I dont have any of the things you mentioned in your first line, no, and I don't know what you even said in the second one, I have only been using Linux 2 weeks and cannot stress enough how hopelessly retarded I am with technology, so when posting this in 'newbies' I would appreciate if you (or any future posters) could dumb-it-down as much as possible or just ELI5..

but unfortunately Im getting an increasing feeling of dread and that what your actually telling me is that its all completely gone and irreversible, correct?

I still dont understand WHY though? why was this specific file de-packaged, moved around & deleted, but others stayed exactly as they were, no changes?
 
Old 03-28-2018, 08:00 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
To install TestDisk, enter the following command in the terminal:

Code:
apt install testdisk
Then, follow the instructions here:

https://www.cgsecurity.org/wiki/Test..._file_for_ext2
 
Old 03-28-2018, 08:06 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
the file automatically saves itself in 'Computer > tmp > mozilla_mark > UTC_..
That would be an unusual location for a download unless they had instructions telling you to move it after download?

First thing, stop using the computer. Timeshift is software which performs a function similar to the windows recovery where you can set a complete backup to a previous state. Never used it myself but that is my understanding. Doesn't help in your case as it is too late. Might be useful in the future .

The file/data is generally not deleted. An analogy would be to a book with an index, rather than deleting an entire chapter, it deletes the reference in the index. To get more detailed on how this works would require someone more knowledgeablt than myself.

Stop using the computer, the more you use it the less likely you will be able to recover anything. If you have a Live CD/usb, use that. There is a program called extundelete which is available from a download link at the site below which also includes documentation on its usage. Might be a little complicated for your knowledge?

http://extundelete.sourceforge.net/

TestDisk and Photorec can be downloaded to a Linux system and run from there. Their site is below with a link to Step-By-Step instructions.

https://www.cgsecurity.org/wiki/TestDisk
 
1 members found this post helpful.
Old 03-28-2018, 08:41 AM   #8
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,778

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
What version of Ubuntu are you running? In recent versions, /tmp is a tmpfs kept in RAM, not on the disk, and disappears when the system is shut down or rebooted.

Open up a terminal window and type "df /tmp". If the filesystem type is "tmpfs", then the files you saved there were never written to persistent storage.

Last edited by rknichols; 03-28-2018 at 08:44 AM.
 
1 members found this post helpful.
Old 03-28-2018, 08:55 AM   #9
NotNow
LQ Newbie
 
Registered: Mar 2018
Location: London
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
Am using Ubuntu 16.04.4.LTS

This is what comes up when I type cmd 'df /tmp' - Im not too sure what it means, good or no?

mark@mark-ThinkPad-T400:~$ df /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/ubuntu--vg-root 222088868 6116460 204667860 3% /
mark@mark-ThinkPad-T400:~$
 
Old 03-28-2018, 09:00 AM   #10
NotNow
LQ Newbie
 
Registered: Mar 2018
Location: London
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
I would advise you to contact IDEX.

/tmp is, as its name implies, a temporary directory. You should never rely on anything that is there staying there, especially after a reboot when many systems automatically delete the files in it.
Quote:
Originally Posted by yancek View Post
That would be an unusual location for a download unless they had instructions telling you to move it after download? I have only been using Linux 2 weeks, but so far all my downloads automatically go there, is that a problem?

First thing, stop using the computer. Timeshift is software which performs a function similar to the windows recovery where you can set a complete backup to a previous state. Never used it myself but that is my understanding. Doesn't help in your case as it is too late. Might be useful in the future .

The file/data is generally not deleted. An analogy would be to a book with an index, rather than deleting an entire chapter, it deletes the reference in the index. To get more detailed on how this works would require someone more knowledgeablt than myself. Useful analogy!

Stop using the computer, the more you use it the less likely you will be able to recover anything. If you have a Live CD/usb, use that. There is a program called extundelete which is available from a download link at the site below which also includes documentation on its usage. Might be a little complicated for your knowledge? IDK what you mean by Live cd/usb, probably a bit over my head but Ill have a look for sure and come back/let you know how I found it.

http://extundelete.sourceforge.net/

TestDisk and Photorec can be downloaded to a Linux system and run from there. Their site is below with a link to Step-By-Step instructions.

https://www.cgsecurity.org/wiki/TestDisk
- currently trying these steps, very complicated for me so may take a while, but am exploring this & all options as best I can, Thanks for the response!

Last edited by NotNow; 03-28-2018 at 11:26 AM. Reason: Replies are written directly after your sentences, my mistake!! it doesnt read very well
 
Old 03-28-2018, 09:16 AM   #11
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,778

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by NotNow View Post
mark@mark-ThinkPad-T400:~$ df /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/ubuntu--vg-root 222088868 6116460 204667860 3% /
That's good! It means that /tmp is just a directory in your root filesystem. The data was stored on the disk, so there is an opportunity for recovery. But it is imperative that you stop using the system now. The next step should be to save an image of that root filesystem to external media, preferably two copies so that you can work on one without fear of accidentally damaging it.
 
2 members found this post helpful.
Old 03-28-2018, 11:22 AM   #12
NotNow
LQ Newbie
 
Registered: Mar 2018
Location: London
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
That's good! It means that /tmp is just a directory in your root filesystem. The data was stored on the disk, so there is an opportunity for recovery. But it is imperative that you stop using the system now. The next step should be to save an image of that root filesystem to external media, preferably two copies so that you can work on one without fear of accidentally damaging it.
great!! how do i do that?
 
Old 03-28-2018, 11:56 AM   #13
NotNow
LQ Newbie
 
Registered: Mar 2018
Location: London
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
Ive attached a screenshot btw of the random files that replaced the missing 'UTC' file, I am open to the idea it might have been automatically deleted somehow, but that doest explain the random occurence of these now new files, is it possible they got mistakenly depackaged or split somehow and if so could there could be a reversal?

- didnt realise it would display the attachment itself, hope that didnt sound rude!
Attached Thumbnails
Click image for larger version

Name:	tmp.jpg
Views:	16
Size:	69.0 KB
ID:	27317  

Last edited by NotNow; 03-28-2018 at 11:58 AM. Reason: didnt want message to come accross rude
 
Old 03-28-2018, 12:24 PM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
The standard location for downloading on most Linux systems (browsers) is the user Downloads directory. You can set that in your browser. Not sure which browser you are using but, if it is Firefox, you can click Edit then Preferences and scroll down to the section which allows you to select where to download. If you are using a different browser, you will certainly have that option but you'll have to look for it.

The image you posted of your /tmp directory looks standard. I have similar directories on the Ubuntu 16.04 I have installed. You see the lock icon because you are trying to access as a normal user so you need to do it as root. To open with root privileges from Ubuntu use gksu nautilus. If gksu is not installed, use sudo nautilus. The second method is discouraged by Ubuntu although I've never had a problem. You can then view the various directories and their contents.

You could use the dd command to create an image of the partition. I've never used LVM so am not sure how you would do that.

Another possibility is clonezilla, see the site below.

http://clonezilla.org/
 
Old 03-28-2018, 12:41 PM   #15
NotNow
LQ Newbie
 
Registered: Mar 2018
Location: London
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
The standard location for downloading on most Linux systems (browsers) is the user Downloads directory. You can set that in your browser. Not sure which browser you are using but, if it is Firefox, you can click Edit then Preferences and scroll down to the section which allows you to select where to download. If you are using a different browser, you will certainly have that option but you'll have to look for it.

The image you posted of your /tmp directory looks standard. I have similar directories on the Ubuntu 16.04 I have installed. You see the lock icon because you are trying to access as a normal user so you need to do it as root. To open with root privileges from Ubuntu use gksu nautilus. If gksu is not installed, use sudo nautilus. The second method is discouraged by Ubuntu although I've never had a problem. You can then view the various directories and their contents.

You could use the dd command to create an image of the partition. I've never used LVM so am not sure how you would do that.

Another possibility is clonezilla, see the site below.

http://clonezilla.org/
I just used gsku nautilus to look at them, they all just have empty tmp folders in them. But NONE of them were there before!! the only thing in that folder was the UTC key and 3 other items (which I deleted earlier today) the laptop had been off since then, so I still dont understand WHY this has happened, why this SPECIFIC folder has been either de-packaged/deleted?
 
  


Reply



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 11:13 AM.

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