Suddenly I deleted my NTFS partition from the Disk in Ubuntu and later I created a new partition of the same name from the one I deleted before.  Now I have some files in there I'm missing.   I want to retrieve my data before formatting this partition. What can I do to achieve this. I tested Testdisk, but it won't help.
About two weeks ago I had a problem with my PC that my brother wrote a question about at .  I still haven't solved the problem, so my PC is unusable now.  Now I think that it would be simpler to re-install both Win7 &amp; Ubuntu than repair them, but there're some data on their partitions. I want to recover this data.  These partitions are not mountable for some reason. I don't know why.  sudo fdisk -l about the problematic partitions:     Device    Boot      Start         End      Blocks   Id  System /dev/sda1            2048     147912703    73955328   83 Linux /dev/sdb2            206848   174079999    86936576    7  HPFS/NTFS/exFAT   And in GParted:      And the error of the mount command:  Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   And the exact same message for /dev/sda1  How can I recover my data from those HDDs?  EDIT     I have tried to specify the type of the drive:  $ sudo mount -t ext4 /dev/sda1 /olddisk mount: wrong fs type, bad option, bad superblock on /dev/sda1,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so $ sudo mount -t ntfs /dev/sdb2 /olddisk NTFS signature is missing. Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   EDIT     sudo ntfsfix /dev/sdb2 returns:  Mounting volume... NTFS signature is missing. FAILED Attempting to correct errors... NTFS signature is missing. FAILED Failed to startup volume: Invalid argument NTFS signature is missing. Trying the alternate boot sector Unrecoverable error Volume is corrupt. You should run chkdsk.
How do I get a Cron like scheduler in Python? I'm looking for a library in Python which will provide at and cron like functionality.  I'd quite like have a pure Python solution, rather than relying on tools installed on the box; this way I run on machines with no cron.  For those unfamiliar with cron: you can schedule tasks based upon an expression like:    0 2 * * 7 /usr/bin/run-backup # run the backups at 0200 on Every Sunday  0 9-17/2 * * 1-5 /usr/bin/purge-temps # run the purge temps command, every 2 hours between 9am and 5pm on Mondays to Fridays.   The cron time expression syntax is less important, but I would like to have something with this sort of flexibility.   If there isn't something that does this for me out-the-box, any suggestions for the building blocks to make something like this would be gratefully received.  Edit I'm not interested in launching processes, just "jobs" also written in Python - python functions. By necessity I think this would be a different thread, but not in a different process.  To this end, I'm looking for the expressivity of the cron time expression, but in Python.   Cron has been around for years, but I'm trying to be as portable as possible. I cannot rely on its presence. What was L's real name? I watched through Death Note once, and I never remember hearing L's name, even after he died.  What was L's real name, or did he never have one (it was never said)? Find the limit of $\lim\limits_{(x,y)\to (0,0)} \frac{x^2y^2}{x^2y^2+(x-y)^2}$ Proving orthogonality of vectors in a complex vector space I'm taking a course in Real Analysis and have come across the following question which I initially thought looked quite simple:  Let $X$ be an inner product space over $\mathbb{K}$ ($\mathbb{K} = \mathbb{C}$ or $\mathbb{R}$) Show that x and y are orthogonal if and only if $||\lambda x  + \mu y||^2 = ||\lambda x||^2 + ||\mu y||^2$ for all $\mu, \lambda \in \mathbb{K}$.  I have proven the statement in one direction (starting with orthogonality and ending up with $||\lambda x  + \mu y||^2 = ||\lambda x||^2 + ||\mu y||^2$). However, I seem to be getting stuck trying to go in the other direction. The following is what I have so far:  $||\lambda x  + \mu y||^2 = ||\lambda x||^2 + 2\bar{\lambda}\mu Re&lt;x,y&gt; + ||\mu y||^2$  Then we must have 2$\bar{\lambda}\mu Re&lt;x,y&gt; = 0$ for the desired equality to hold, and so $Re&lt;x,y&gt; = 0$.   However, for orthogonality I want $&lt;x,y&gt; = 0$ and can't see how I can make this next step.  Any help would be greatly appreciated. Omitting "is", like in "I think it strange" What is the grammar behind the construction "I think it strange/necessary that ...", and when can and cannot this apparent omission of the copula be used? Do we always need the "that" clause?  Also, this seems to be only allowed when the object is a pronoun (it in the above example). That is, we don't say "I think this method strange", correct? Can one TeX file output to multiple PDF files? I'd like to be able to create a TeX file that will output multiple PDF files with one compilation.  I'm not even sure if this is possible.  Here is the setup:  I am writing dozens of cover letters for job applications, and wish for them to all look "personalized".  So I defined a function which calls multiple variables, such as the address, name of the institution, open position, etc., and outputs a "personalized" cover letter for each function call.  The problem is that compilation of the TeX file outputs just one file.  Since I will be submitting all of these files online eventually, I would like each letter to be in its own file.  Is there a way to do this at the TeX level? Consider a "wavefunction" $\psi(x)$, which has a Fourier transform $\tilde \psi(p)$  Suppose that we know, for each $x$, $|\psi(x)|^2$, and that we know, for each $p$, $|\tilde \psi(p)|^2$.  Have we enough information to reconstruct the "wavefunction" $\psi(x)$, that is, obtain the phase of the "wavefunction" for all $x$ (up to a global phase, we are only interesting to the relative phases between the $x$)? What's the best and quickest way to detect whether you're running a 32 or 64-bit version of Windows Server from the command line?  (Cygwin is installed) Keep only essential packages How do I force Windows to check for updates? What is the speed of sound in space? Given that space is not a perfect vacuum, what is the speed of sound therein? Google was not very helpful in this regard, as the only answer I found was $300\,{\rm km}\,{\rm s}^{-1}$, from , which is not a source I'd be willing to cite. JSON+Node.js - Unexpected token o Where, how and when I can acquire HM's? This has always been a big want for me. I love using multi-monitor setups but only want a single laptop. Does the 2011 MBP Thunderbolt support chaining multiple monitors together? I know that you can add a monitor and say, a few hard drives, but can you connect it to 2 27" monitors and your flat screen TV (for example)? Thanks! How to set a letter to the margin of the page and position it vertically according to alphabetical order? Validation Error: Value is not valid Let's say I have a document that has many pages and some pages have different formats. For example, most of the pages are fine with \documentclass{article} but there may be pages in the middle that I want to be \documentclass{letter}. I want my letter pages to be numbered inline with the other pages and have them show up in the Table of Contents.   Is it possible to change the class used for an individual or range of pages while still keeping things like page numbering consistent across them?   EDIT I'm trying to create a "welcome to the company" sort of document that has a cover page, table of contents, welcome letter, then various sections of information. I've never tried this in anything other than a word processor where it's easy to set "master pages" or "template pages" for individual pages in the document. So I could use a letterhead template page for the welcome letter part and a standard article-type template for the rest and still have the letter numbered/referenced in the ToC.   So the idea was to take advantage of the classes written, if possible, rather than have to format a single page by hand differently from the rest. Creating Workflow -> Error Read two column CSV as dict with 1st column as key Make the chat link one click away in the new top bar