You are not logged in.

#1 2014-06-28 07:36:42

uberscientist
Member
Registered: 2012-01-27
Posts: 84

[SOLVED] Corrupt partition table

A couple days ago I was transferring large files to my 1TB external Seagate USB drive (NTFS).  It was going smooth then on one file it stopped and Thunar gave an error.

When looking at the directory with ls -l the file's attributes were question marks (?)

I was able to access all the other files fine, but was unable to delete or access the corrupt directory.

Now, days later, I am unable to mount the USB drive.

sudo fdisk -l gives this:

Disk /dev/sdc: 931.5 GiB, 1000204885504 bytes, 1953525167 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
Disklabel type: dos
Disk identifier: 0x6e697373
This doesn't look like a partition table. Probably you selected the wrong device.

Device    Boot      Start        End    Blocks  Id System
/dev/sdc1 ?    1936269394 3772285809 918008208  4f QNX4.x 3rd part
/dev/sdc2 ?    1917848077 2462285169 272218546+ 73 Unknown
/dev/sdc3 ?    1818575915 2362751050 272087568  2b Unknown
/dev/sdc4 ?    2844524554 2844579527     27487  61 SpeedStor

Partition table entries are not in disk order.

I run sudo ntfsck /dev/sdc:

$ sudo ntfsck /dev/sdc
file record corrupted at offset 3221225472 (0xc0000000).
Loading $MFT runlist failed. Trying $MFTMirr.
First attribute must be after the header (0).

and it just seems to be stuck there, I've left it running for a few hours...

Is my disk screwed?

*edit*: I got it! Check my other post further down this thread

Last edited by uberscientist (2014-12-16 19:15:57)

Offline

#2 2014-06-28 13:30:40

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Corrupt partition table

uberscientist wrote:

Is my disk screwed?

Possibly.

Try chkdsk'ing the drive from Windows, as it does a much better job of fixing NTFS problems than any linux tools.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2014-06-28 17:23:22

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Corrupt partition table

Apart from doing what slithery said, run a smart scan and see if turns up any errors.

Offline

#4 2014-12-16 19:15:12

uberscientist
Member
Registered: 2012-01-27
Posts: 84

Re: [SOLVED] Corrupt partition table

I fixed it finally!
I had set the drive aside and was sad about it for a while, and decided to give another shot at googling and repair, here's what I did to get it working:

install testdisk: https://www.archlinux.org/packages/extr … /testdisk/

sudo testdisk
[ Create ] (new log file)
selected the corrupted drive
>[Proceed]
>[Intel      ]  ( By default it picked None... I just guessed Intel/PC)
>[Analyse]
>[Quick Search]
>[Continue]
>[Deeper Search]
>Stop (press enter to stop after it finds another entry)
>Down arrow, then right arrow to set it Primary partition (non-bootable for my case)
>[Write    ]

Mount your drive big_smile

Offline

Board footer

Powered by FluxBB