Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was having only 15 GB space allocated to LINUX. I wanted to have more space available to linux. So I just re sized one of my ntfs partition using GParted. But after resizing I am not able to open the partition neither in Ubuntu nor in windows. OS: Dual Boot Win7/Ubuntu 10.10 The error message i get is the following: Error mounting: mount exited with exit code 12: Failed to read last sector (395458824): Invalid argument HINTS: Either the volume is a RAID/LDM but it wasn't setup yet, or it was not setup correctly (e.g. by not using mdadm --build ...), or a wrong device is tried to be mounted, or the partition table is corrupt (partition is smaller than NTFS), or the NTFS boot sector is corrupt (NTFS size is not valid). Failed to mount '/dev/sda5': Invalid argument The device '/dev/sda5' 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?

share|improve this question

2 Answers 2

This might do it:

sudo ntfsfix /dev/sdxy

change xy in the above to reflect the partition in question, e.g.:

sudo ntfsfix /dev/sdb1

Example output:

ubuntu@ubuntu:~$ sudo ntfsfix /dev/sdb1
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... FIXED
NTFS volume version is 3.1.
NTFS partition /dev/sdb1 was processed successfully.
share|improve this answer
1  
@dgbutterworth I'm not sure if this the right way to make edits. Why not create an additional answer? It's okay if you it's essentially the same as this answer but does improve the whys and hows. You can access your edit if you click on edit(1) below the answer. –  MadMike Oct 31 at 6:33
    
scratch that, it was just formatting.... –  hbdgaf Oct 31 at 7:24

Boot from windows installation CD and use recovery console to fix that.

share|improve this answer
    
Thanx for reply but I don't know How to use recovery console. any help –  sam Mar 22 '12 at 11:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.