NTFS partition became unreadable after using Parted Magic
Submitted by Anonymous on Wed, 05/06/2009 - 17:29.
I was attempting to dual boot my parents old computer with xubuntu and XP
So I used parted magic to shrink and move the NTFS partition that contained XP.
WHen it finished it said there was an error but didn't specify, the swap and EXT3 partitions were made correctly and xubuntu installed correctly.
The gparted partition editor in xubuntu says it cannot mount sda1 (the XP ntfs partition) because the file system is damaged or it is empty.
Is there a way for me to fix the partition as my parents no longer have their XP cd or their activation key for it.

Try sudo ntfsfix
Try
sudo ntfsfix /dev/sda1
and post the output.
alan@alan-desktop:~$ sudo
alan@alan-desktop:~$ sudo ntfsfix /dev/sda1
[sudo] password for alan:
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
NTFS volume version is 3.1.
NTFS partition /dev/sda1 was processed successfully.
alan@alan-desktop:~$
Gparted still gives the error:
Failed to mount "20G Volume".
The enclosing drive for the volume is locked.
What happens when you
What happens when you try
mkdir mnt
sudo mount /dev/sda1 mnt
alan@alan-desktop:~$ sudo
alan@alan-desktop:~$ sudo mount /dev/sda1 mnt
Failed to read last sector (78140088): 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/sda1': Invalid argument
The device '/dev/sda1' 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?
alan@alan-desktop:~$
It seems like the filesystem
It seems like the filesystem is damaged. I would try file carving to recover individual files.
What is file carving and how
What is file carving and how do I do it?
See
See this:
https://help.ubuntu.com/community/DataRecovery#Extract%20individual%20files%20from%20recovered%20image
I suggest you start with photorec. You don't need to image your partition since there is no hardware problem. Just be sure you have enough room on the destination drive.
So, change directory to your destination and do this:
cd /media/disk/myrecoveryfolder
sudo photorec /dev/sda1
and follow the prompts on the screen. Be sure to recover data from the whole partition and not just the unallocated blocks.
Good luck.
Thanks, I didn't manage to
Thanks, I didn't manage to recover everything I wanted to but I did retrieve a gig of photos and even a few that I think were deleted a few years ago.