So what happened is I was creating a partition on my HDD (main one, no external ones) that could be accessed from both Windows and Ubuntu, one I could store files I would use on both in. I had empty space on the Windows partition so I shrunk that to the minimum and then created a partition with what was empty. That went off without a hitch. Now, when I try to mount my Windows partition, this is what I get:  Error mounting /dev/sda1 at /media/ubuntu/Toshiba Satellite A105 S4304: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=999,gid=999,dmask=0077,fmask=0177" "/dev/ sda1" "/media/ubuntu/Toshiba Satellite A105 S4304"' exited with non-zero exit status 13: Failed to load runlist for $MFT/$DATA. highest_vcn = 0x7894, last_vcn - 1 = 0x78ef Failed to load $MFT: Input/output error Failed to mount '/dev/sda1': Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation  for more details.   I looked around and found I should try running this command : sudo ntfsfix /dev/sda1 but I got this:  Mounting volume... Failed to load runlist for $MFT/$DATA. highest_vcn = 0x7894, last_vcn - 1 = 0x78ef Failed to load $MFT: Input/output error FAILED Attempting to correct errors... Failed to load runlist for $MFT/$DATA. highest_vcn = 0x7894, last_vcn - 1 = 0x78ef Failed to load $MFT: Input/output error FAILED Failed to startup volume: Input/output error Checking for self-located MFT segment... OK Failed to load runlist for $MFT/$DATA. highest_vcn = 0x7894, last_vcn - 1 = 0x78ef Failed to load $MFT: Input/output error Volume is corrupt. You should run chkdsk.  EDIT: 9/2/2013 Adding sudo fdisk -l info:  Disk /dev/sda: 100.0 GB, 100030242816 bytes 255 heads, 63 sectors/track, 12161 cylinders, total 195371568 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x5f425f42     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *          63    54028287    27014112+   7  HPFS/NTFS/exFAT /dev/sda2        54028288   117415935    31693824    7  HPFS/NTFS/exFAT /dev/sda3       117417982   195371007    38976513    5  Extended /dev/sda5       193296384   195371007     1037312   82  Linux swap / Solaris /dev/sda6       117417984   193296383    37939200   83  Linux  Partition table entries are not in disk order   What should I do? I don't want to shut down in case it will cause problems. I know that moving partitions can cause problems (accidently deleted GRUB once by simply re-formatting the Ubuntu partition...oops :P), but I didn't think this would. I have the Windows XP disk somewhere, but I'm not totally sure where, I could try and find it. Should I use Rescatux?  Help!
I replaced a buggy Windows Vista installation with Ubuntu. All works fine except that the main HD where I had all my files are now inaccessible. Here is the error message I get:   Error mounting: mount exited with exit code 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output error Failed to read NTFS $Bitmap: Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details   Is it necessarily a hardware problem? If not, is there a way to repair the HD from Ubuntu?
New flagging dialog has a duplicate for duplicate We've changed the flagging format from today(AFAIK) as below,        looks good.  But, when I select it should be closed for another reason...  I can see the same reason duplicate on the top.        What is the need of placing that reason over there? It should not be there. Please remove the dupe. In D&amp;D 5e &quot;&quot; is a condition that can affect a creature during the first round of combat, only until the end of their turn:  [... T]he GM compares the Dexterity (Stealth) checks of anyone Hiding with the passive Wisdom (Perception) score of each creature on the opposing side. Any character or monster that doesn’t notice a threat is surprised at the start of the encounter. If you’re surprised, you can’t move or take an action on your first turn of the combat, and you can’t take a reaction until that turn ends. A member of a group can be surprised even if the other members aren’t. - PHB 189  Does the action that causes the surprise count as part of the round, though? Say Renee, a rogue, achieves a stealth check of 22, easily beating an orc sentry's passive perception. She sneaks directly behind him and stabs him in the back. Surely the orc isn't surprised at all until the dagger hits him (or if Renee misses, she fumbles around behind him or something). What I think it really boils down to in the end is: when is initiative rolled? If (in our example) initiative is rolled before Renee's attack hits (or misses) how can we justify the orc recovering from his surprise before the action that triggered said surprise even occurs, should he roll better than Renee on his initiative? I'd like to go with initiative is rolled immediately following whatever event began the encounter (which could be an attack, but is likely to often be something else wherever surprise isn't intended), but I can't find any documentation to support this stance.  Why Does Anyone Care? There are many reasons you might want someone to be surprised while you're attacking - in this example if Renee is over L3 (and took the Assassin archetype) she'll get 'Assassinate' if the orc is surprised, and 'Death Strike' if she's over L17. That's a lot of potential extra damage!  that if the orc is surprised, Renee will be able to retreat and hide, without having to take the disengage action as her bonus action to avoid an attack of opportunity. Of course, there's no way for her to know whether the orc is surprised or not at that stage, so trying this would be a bit of a gamble... How does one get started with web test automation using Selenium? So I've been testing web based analytical software now for the past 4 years or so with mostly manual techniques. But for 2015, I've set myself the goal of getting setup and start writing automated tests and to introduce automated testing into my company.  I've done a little research and it seems that Selenium is quite big when it comes to writing automated tests, but most of the tutorials I've come across reference the Java language.  Some questions:   Is Java the primary language used for Selenium tests?  Do you recommend it over C# ?  Wat is the process of writing test scripts?  Are there Frameworks that I should use that can make the process even easier? To prove that $f_n(x) = \frac{nx}{1+n^2x^2}$ does not uniformly converge to $f(x) = 0$ on $[0,1]$ My Approach. To prove the given statement it is sufficient to show that $$\exists \epsilon &gt; 0, \exists x \in [0,1], \forall N \in \mathbb{N}, \exists n &gt; N $$ $$ \Rightarrow | f_n(x) - f(x)| &gt; \epsilon$$    Let $\epsilon = \frac{1}{10}, x = \frac{1}{n}, n =N+1$. Hence $| f_n(x) - f(x)| = \frac{1}{2} &gt; \epsilon = \frac{1}{10}$. Hence, we have shown for every $N \in \mathbb{N}$, how to choose $n$ such that $| f_n(x) - f(x)| &gt; \epsilon$. Thus, $f_n(x)$ does not converge uniformly on $[0,1]$.    Is there any logical flaw or wrong steps in my proof. Any help would be appreciated. Why don't we define division by zero as an arbritrary constant such as $j$? Why don't we define $\frac 10$ as $j$ , $\frac 20$ as $2j$ , and so on? I know that by following the rules of math this eventually leads to $1=2$ , but we could make an exception and say that $j$ is the only number such that $0*j \not= 0$ , and put other restrictions necesary so that we don't get contradictions. We do this for $i$ , so why can't we do it here? For example, $i^2$ , is defined as $-1$ , but you could also say $i^2=\sqrt {-1} *\sqrt {-1}=\sqrt {(-1)(-1)}=\sqrt{1}=1$ , but we make an exception for this. Using MSSQL2005, can I truncate a table with a foreign key constraint if I first truncate the child table (the table with the primary key of the FK relationship)?  I know that I can either   Use a DELETE without a where clause and then RESEED the identity (or) Remove the FK, truncate the table, and recreate the FK.   I thought that as long as I truncated the child table before the parent, I'd be okay without doing either of the options above, but I'm getting this error:     Cannot truncate table 'TableName' because it is being referenced by a FOREIGN KEY constraint. Exporting 2D vector graphic from ArcScene to Illustrator How can I export 2d vector graphic from ArcScene so I can edit it with Adobe Illustrator? I've tried changing the options when I export 2D scene as AI file or PDF file, but they always remain as a unique image that does not allow me to edit the lines and polygons. Finding the limit of $\frac{Q(n)}{P(n)}$ where $Q,P$ are polynomials Suppose that $$Q(x)=a_{n}x^{n}+a_{n-1}x^{n-1}+\cdots+a_{1}x+a_{0} $$and $$P(x)=b_{m}x^{m}+b_{m-1}x^{m-1}+\cdots+b_{1}x+b_{0}.$$ How do I find $$\lim_{x\rightarrow\infty}\frac{Q(x)}{P(x)}$$ and what does the sequence $$\frac{Q(k)}{P(k)}$$ converge to?  For example, how would I find what the sequence $$\frac{8k^2+2k-100}{3k^2+2k+1}$$ converges to?  Or what is $$\lim_{x\rightarrow\infty}\frac{3x+5}{-2x+9}?$$   This is being asked in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: . How to insert text into a root-owned file using sudo? If you have a conducting hollow sphere with a uniform charge on its surface, then will the electric field at every point inside the shell be 0. The reason the electric field is 0 at the center is clear from the symmetry of the sphere, but for a point at a certain distance from the center, shouldn't a net electric field exist?  I saw a similar question on the site but it was vaguely explained. How to disable automount in nautilus's preferences I am using Ubuntu 11.10 (64 bits) and I do not want to mount automatically USB thumb drives in my system. I tried the command dconf-editor and gconf-editor but there isn't the icon to disable it in nautilus preferences (apps|nautilus|preferences|media_automount).  Thanks. How to recover a removed file under Linux? By accident, I used rm on a file I didn't want to delete. Is there a way that I can get it back under Linux? Can't transfer purchases from iPhone to iTunes in iOS 9 After upgrading to iOS 9, I can't transfer purchases from my iPhone to iTunes. It happens to just start the process, then it finishes without transferring anything. However, I can still transfer purchases from my iPad with iOS 8.4 like before.   iPhone 5c, iOS 9 iTunes 12.3 MacBook Pro 13" with Retina Display Mid 2014, OS X El Capitan   Apparently, not many people happen to use this "transfer purchases" feature so it didn't get any real attention. I used it a lot, I used to update my apps on my iPhone, transfer them to iTunes and updated my iPad apps using iTunes. Still, I can update my apps using iTunes and update apps on all my devices. I'm using 13.04 for the first time and I am using proxy base server that's why I can't download anything while I use apt-get update then it shows this message  coolmonter@coolmonter-HP-ProBook-4431s:~$ apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   any suggestion I have seen only the first three movies, so I don't know whether the other movies/TV series deal with this question or not. My main point is that in the movies, the terminator that travels back furthest in time is of the worst quality, and the quality increases with the time travel (meaning they travelled from a later time). What is a good explanation for this?  Note: I am not interested in the obvious not-in-universe explanation that they wanted something better and bigger for each new movie. Sci-Fi book female fighter pilot All I remember about the book is that the protagonist was a human female fighter pilot, she has short hair, not sure if it was blond or auburn and she was involved in making peace with the alien race.  The alien race was invading Earth, but because of her they stopped, surrendered and because of her helped Earth improve its technology. I remember that she melded with something and was starting to sort of think like them and lose a bit of her humanity.  It was set in the not too distant future. I believe I read it in the 90s. Why do stars flicker? Why do stars flicker and planets don't? At least this is what I've read online and seen on the night sky. I've heard that it has to do something with the fact that stars emit light and planets reflect it. But I don't get it, isn't this light, just "light"? What happens to the reflected light that it doesn't flicker anymore?  I was thinking that it has to do something with Earth's atmosphere, different temperatures or something (if this has any role at all). What permissions should my website files/folders have on a Linux webserver? 80s/90s book where boy stumbles on game where aliens gamble their planets I don't remember much about it other than the setting. It's about a boy who one night stumbles upon some different alien races playing a game in which their civilizations will end if they lose. He gets involved in the game somehow and is hunted. If $x,y,z\in\mathbb R\setminus \{1\}$ and $xyz=1$, prove that $\frac{x^2}{(x-1)^2}+\frac{y^2}{(y-1)^2}+\frac{z^2}{(z-1)^2}\ge 1$.