alperakcan / fuse-ext2

Fuse-ext2 is a multi OS FUSE module to mount ext2, ext3 and ext4 file system devices and/or images with read write support.
GNU General Public License v2.0
808 stars 130 forks source link

Getting data back from possibly corrupted drive #85

Open akougblenou opened 5 years ago

akougblenou commented 5 years ago

I know it seems highly unrelated to this app, but I have ntfs drive mounted through fuse-ext2. I am using macOS 10.14.1. I tried running the commands for debugging and got the following:

 ❯ /usr/local/bin/fuse-ext2 -v /dev/disk3 /mnt/point -o debug                        [31-12-18 22:51:17]
fuse-ext2: version:'0.0.7', fuse_version:'27' [main (../../fuse-ext2/fuse-ext2.c:324)]
fuse-ext2: enter [do_probe (../../fuse-ext2/do_probe.c:30)]
fuse-ext2: Error while trying to open /dev/disk3 (rc=13) [do_probe (../../fuse-ext2/do_probe.c:34)]
fuse-ext2: Probe failed [main (../../fuse-ext2/fuse-ext2.c:340)]

The ordeal started because I installed Plex and reference some folders of the ntfs hard drive on it to be scan through. While the process was going on I noticed that the files of my drive were inaccessible, but the drive could still be seen. I tried to run ntfsfix but I think it got it worse.

Here are some of the commands that I ran:

 ❯ sudo ntfsfix /dev/disk3s1                                                         [31-12-18 21:34:41]
'Tipz:' _ ntfsfix /dev/disk3s1
Mounting volume... Incomplete multi-sector transfer: magic: 0x58444e49  size: 4096  usa_ofs: 40  usa_count: 8  data: 5  usn: 985: Input/output error
OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/disk3s1 was processed successfully.

 ❯ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         230.0 GB   disk0s2
   3:       Microsoft Basic Data BOOTCAMP                20.8 GB    disk0s3

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +230.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            203.7 GB   disk1s1
   2:                APFS Volume Preboot                 47.0 MB    disk1s2
   3:                APFS Volume Recovery                512.8 MB   disk1s3
   4:                APFS Volume VM                      3.2 GB     disk1s4

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *2.0 TB     disk2
   1:                  Apple_HFS Kaede                   2.0 TB     disk2s1

/dev/disk3 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *2.0 TB     disk3
   1:               Windows_NTFS Shigeru                 2.0 TB     disk3s1

 ❯ sudo ntfsfix /dev/disk3
'Tipz:' _ ntfsfix /dev/disk3
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
The alternate bootsector is usable
Set sector count to 3906963455 instead of 3906961407
Rewriting the bootsector
The boot sector has been rewritten
ntfs_mst_post_read_fixup_warn: magic: 0xffffffff  size: 1024   usa_ofs: 65535  usa_count: 65535: Invalid argument
Record 0 has no FILE magic (0xffffffff)
Failed to load $MFT: Input/output error
Volume is corrupt. You should run chkdsk.

and since the last one, the name of my drive has disappeared, I cannot do much thing on it. So my question is, can something be done using fuse-ext2 or is it unrelated ? Also is my drive dead now ? Can I still get data back ?

yurikoles commented 5 years ago

@AKFourSeven why you had mounted whole drive via fuse-ext2, there is only one partition with NTFS on it?

I suggest you to try booting some Linux, like Ubuntu and try to fix it.

yurikoles commented 5 years ago

Or even Windows, you don't need to have a license, just download official Win10 ISO from MS, and create a flash drive via BootCamp. Then inside installer press Shift+F10, which will open a CMD window. You may examine your disks via diskpart, then run some chkdsk on your partition.

akougblenou commented 5 years ago

To answer your first question, the lack of experience I guess. I have a Windows at home as well, but when I try accessing the drive on it, it is not seen anymore, like it has disappeared.