Partition no longer showing and files no longer available [on hold] - linux

The situation:
I had a VirtualBox instance of Linux Mate installed
Everything was fine and working as expected
I had drives (on the same virtual partition) showing
The all of a sudden the drives stopped showing up - I though it was no big deal as the data should still be there and that it was just an issue with the OS, thus if necessary a reinstall of the OS might resolve the issue
But, having created another virtual drive it looks like no files exist (have not messed with the original virtual drive file which has the issue)
Does anyone know
whether there is a way to get my files back, they've disappeared off the face of the earth as has the drive that used to be mounted.
I doubt this is a simple - mount instruction issue
The files that used to be access are showing when I open programs that once opened those files - e.g. the old mapping path are shown, but obviously clicking the file no longer opens the files - I'm assuming this is because starting pointers to where those files should be are broken ... the drive used to show under devices as outlined below:
Linux Drive Listing
Has anyone else experienced such as issue before
Shouldn't make a huge difference i would have thought as the files were on the sale file partition rather than on shared drives - but, I am working on a Mac, also as mentioned earlier have been using the system for months and it was working fine with any problems.
Any help would be appreciated.


Eliminating “File changed on disk” warning in emacs on VirtualBox

I am running Windows 10 with VirtualBox (5.0.10). I have Ubuntu 14.04 installed as a guest OS which accesses the host OS via a vboxfs share.
When editing a file saved on the host (Windows) OS via this share, emacs continually gives me a warning that the file I am currently editing has been changed on disk (File.txt changed on disk; really edit the buffer?). And a similar warning is given when trying to save.
This only happens when editing a file that is saved on the host OS, and I can't link it to any other software / process (for example, anti-virus software). It appears to be related to differences in the timestamps of the file on the 2 OS's, though I do have NTP turned on in Ubuntu, and the error occurs even immediately after the 2 OS's were rebooted (thus I assume the times are as identical as they will ever be). It occurs every time after the first save.
This question was asked, and work-arounds provided, in this Stackoverflow question. However, the work-arounds given there don't satisfactorily handle the problem because they effectively just turn off the the safe guard of checking whether a file has been modified on disk outside the editor.
The real problem seems to lie with the timestamp issue. Does anyone know how to fix this issue?

AVD not running

Today when I was doing my project using android studio, a blue screen suddenly appears and system get restarted automatically. And now when I tried to run my app using emulator, the AVD is not running and I get an error as below. Anyone faced this before ? How do I fix this?
ProcessNotCreatedException: Unexpected error while launching AVD:
Cannot run program
CreateProcess error=216, This version of %1 is not compatible with the
version of Windows you're running. Check your computer's system
information to see whether you need a x86 (32-bit) or x64 (64-bit)
version of the program, and then contact the software publisher
Wnen I click the Android Device Monitor, nothing happen also...
You have a computer problem not related to AVD
ProcessNotCreatedException :Exception thrown when attempting to retrieve the result of a task that aborted by throwing an exception.
Because of their usefulness and ubiquity, EXE files are commonly used
as a method of delivery for virus / malware infection. Often, viruses
will be disguised as a benign EXE file (such as emulator.exe) and
distributed through SPAM email or malicious websites, which can then
infect your computer when executed (eg. when you double-click the EXE
file). In addition, viruses can infect, replace, or corrupt existing
EXE files, which can then lead to error messages when
related programs are executed. Thus, any executable files that you
download to your PC should be scanned for viruses before opening -
even if you think it is from a reputable source.
Read SO Answer .
What should you do
FORMAT Your System
Install Android Studio (Set Latest Version With Proper JDK Path)Note that you need to have JDK 6 or higher installed.
You can use Intel x86 Emulator Accelerator (HAXM installer) or Genymotion .
Found the following solution.
Go to the following directory in your computer:
Inside this directory you will find all files and directories with the definition and content of your avd machines-
Now do the basic troubleshooting steps:
-check if the avd directory exists and if it contains a file with the name "sdcard.img".
-if the file exists, try to rename it (to check if its locked) and then go to eclipse and ask to create a new sd card.
-if it fails, try to create manualy a file with that name to check premissions.
good luck

Restoring Windows

I have been trying to get Ubuntu to work on my laptop for the last few days. I have been extremely unsuccessful in doing so.
My laptop came pre installed with Windows 8. My laptop
All I want to do at this point is to get Windows back.
I have an exact copy of all the files that were on my Windows partition before I tried to remove everything and install Ubuntu using the installer (which failed).
I have tried using my other Windows computer to create a recovery USB and using it to reset my laptop, but it gives me an error saying a required partition is missing.
I can no longer even use an Ubuntu USB as it will not boot from it.
One thing that I think is key is that at one point when I used the Ubuntu USB to check disc for errors, it said 2 files had errors. I used GParted to try to get rid of what Ubuntu partitions were installed and came across three left. One was a long name that started with "/dev/" (about the size of my ssd, 128GB), and the other two were "/dev/sda/" and "/dev/sdb/", which were about 45 GB each. I removed all partitions from the large one and the two small ones had errors saying that GParted did not recognize the name or something. Somehow, through me messing things up, the big one disappeared.
When I boot my computer in Legacy mode, it shows a quick menu saying press ctrl+i to edit and it shows 2 things that I think are what the "/dev/sda" and "/dev/sdb" are. Pressing ctrl+i takes you to an intel RAID system editor. You can create a RAID system or delete one, but only the option to create one is available for me.
How can I recover Windows?
First, I would see if anything under Recovery Volume Options has any tools to restore Windows 8 for you.
If that turns out not to be useful, then I would recommend reinstalling Windows 8 from scratch. If you don't already have reinstallation media, you may be able to get set up with these instructions. Note however that you will need access to another, working Windows computer to follow them.
Finally, a tip for the future: I recommend doing a full-disk image backup with something like the free Clonezilla before performing operations like this. That way, you can get your hard drive back to the exact state it was in before if something goes wrong.

Does COPY-PASTE transfer ALL subfolders and files? [closed]

I will be more specific.
Many days ago, I tried to dual boot my Windows 7 and Linux (Kali), so just in case something didnt go well, I created an image (VHD file) of my System through the Action Center. As a noob I didn't install Linux successfully.My Hard disk corrupted, I could not boot in Windows (BSOD and restart).HOW did it corrupt? Probably because something didnt go well when I tried to install Linux...
After some time I managed to install Linux properly, but because Windows still would not boot, I decided to format and erase everything. The only way was to use my Backup. I used my Windows installation/repair CD to restore this backup (image of Windows).Here is where its getting crazy --> After recovery finished, I realised I had made a backup when the problem was there already(I was experimenting with Linux installation before I do the backup), so again I could not boot in Windows(BSOD)...I was back at the beggining.
But when I installed new clean Windows again, I attached the VHD file and got access to my old hard disk(now virtual).I think this the only way to restore my old files. HOW? With COPY-PASTE. I copy-pasted everything from Program Files to Users. But is this enough? I mean some of my programs can't run(errors etc.).Why? Maybe copy-paste does not transfer all the files? Maybe there are permissions problems? Can I really recover a whole system just by copy-pasting?
As you can understand, I generally seek an answer for the whole problem I described and not necessarily for the Copy-Pasting.
So any answer that will help me with this very complicated problem, is very appreciated.
The installations of programs are not limited to files. Programs can install dependencies, such as Microsoft Visual C++, that are not part of the program but part of Windows, and will go in the system folder. Windows has also a master database know as Registry, where programs will create entries related to its configurations, file associations etc. not to mention data in C:\ProgramData that is also important.
Long story short, you cannot copy a program folder and expect it to work. Some programs will manage to work, but most big softwares won't. You have to install them properly.

does the memory space of windows and linux overlap for some folders when both operating systems are installed?

I have both linux and windows installed on my pc. when I make some programs in lex and yacc (when working on linux)and store all the files in a folder ,they are corrupted If I use windows for some time. for example 3 days back after storing all the files( xyz.l , a.out ) I switched to windows for some other work after rebooting my pc. after 3 days when I again open that folder(while using linux) a.out was converted into an image and when I double clicked on it, an image opened. the image was same which I downloaded 2 days back while working on windows but I stored in some other folder. so does the memory space used for storage for linux and windows overlap? if not what could be the reasons? It has happened 2 times. and really I have to recode all my programs . I am not able to understand why?
It is not supposed to overlap.This sounds like a configuration problem , where windows and linux are configured to mount the same partition.
Check the file /etc/fstab (under linux) and find out whether this is true.You can try making files in various places and observe if they can be found on the other os.
I don't know how your partitioning looks like, but I guess that it is set up in a way that both OS have read/write access to all partitions, or at least windows has read/write access to the Linux partition.
Is your linux partition a FAT32 partition? You should set it to read only in windows, but I'm not sure how to do this.
Do you use hibernate on the windows side? Windows can get confused if data changes while it is asleep, and this might be the cause of the problems.