maharmstone / ntfs2btrfs

GNU General Public License v2.0
683 stars 30 forks source link

Invalid file signature error? #4

Open elsorino opened 4 years ago

elsorino commented 4 years ago

What causes this error? I attempted to use this to convert a 2TB hdd but it gave me that error. On arch linux if that matters

lideming commented 4 years ago

Same, also on Arch Linux, when I was trying to convert a Windows 10 OS drive.

Just searched in source and found the line that throws that error: https://github.com/maharmstone/ntfs2btrfs/blob/171e9b92114ca08207afc34ccb190b4a9dfd90fb/src/ntfs.cpp#L75

maharmstone commented 4 years ago

Essentially it means "I've opened something that should be a file but isn't", which isn't very helpful. It looks like the program could do with being tested against more filesystems...

Azure-Orit commented 4 years ago

Same error on a 500gb hdd run on Ubuntu 20.04

ghost commented 4 years ago

Same here, actually, Manjaro. REALLY hoping to try this out on my "VR Only" Windows installation for giggles.

YihaoPeng commented 4 years ago

Same issue on my 2TB SSD. GDB trace:

截图录屏_20200619062201

If running in Windows, the program will exit without any output, but the file system is not converted.

yretenai commented 4 years ago

Sector signature is 0, the entire block buffer is 0. Could be an empty block or a corrupt block? I have this error as well, CHKDSK says the disk is fine. Might be an issue relating to fragmented disks / SSDs and empty blocks.

Program exiting without input is an issue relating to stderr flushing, should be fixed with my PR #5

ghost commented 4 years ago

Sector signature is 0, the entire block buffer is 0. Could be an empty block or a corrupt block? I have this error as well, CHKDSK says the disk is fine. Might be an issue relating to fragmented disks / SSDs and empty blocks.

Program exiting without input is an issue relating to stderr flushing, should be fixed with my PR #5

Mine IS on an SSD now that you mention it

TheGlitch76 commented 3 years ago

Reproduced on a 512GB NVME SSD.

TheGlitch76 commented 3 years ago

I've looked into it further, and it appears that the underlying issue is that (as of Windows 10 build 2004) the Windows installer picks a cluster size of 512kb for partitions on an SSD. The README states that Ntfs2Btrfs only supports cluster sizes of 4096kb. It seems that for now a workaround would be to manually create the partition and give it a cluster size of 4096 when installing.

timawesomeness commented 3 years ago

There must be multiple underlying issues causing this error then, because I'm experiencing it on an HDD with 4096 cluster size.

maharmstone commented 3 years ago

Could you give it a go on the latest version please?

@TheGlitch76 - that's news to me, are you sure about that? There's nothing on https://support.microsoft.com/en-gb/help/140365/default-cluster-size-for-ntfs-fat-and-exfat, which says that Windows only chooses sizes other than 4KB on really massive disks. https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fsa/4e3695bd-7574-4f24-a223-b4679c065b63 was updated a week ago, and nothing there either.

ghost commented 3 years ago

Could you give it a go on the latest version please?

@TheGlitch76 - that's news to me, are you sure about that? There's nothing on https://support.microsoft.com/en-gb/help/140365/default-cluster-size-for-ntfs-fat-and-exfat, which says that Windows only chooses sizes other than 4KB on really massive disks. https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fsa/4e3695bd-7574-4f24-a223-b4679c065b63 was updated a week ago, and nothing there either.

I now get "Error seeking to ffffffffd781c000" when pointing it at my Windows partition.

TheGlitch76 commented 3 years ago

Could you give it a go on the latest version please?

@TheGlitch76 - that's news to me, are you sure about that? There's nothing on https://support.microsoft.com/en-gb/help/140365/default-cluster-size-for-ntfs-fat-and-exfat, which says that Windows only chooses sizes other than 4KB on really massive disks. https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-fsa/4e3695bd-7574-4f24-a223-b4679c065b63 was updated a week ago, and nothing there either.

hrm, I was probably measuring something other than what I thought (found it with linux commands). Either way, it's getting past that now, but still failing. Here's a log, but I think the issue may be that the drive is nearly full. I'll have to do some reorganizing of my partitions and try again with more space.

maharmstone commented 3 years ago

Have you tried doing as it says - running chkdsk and trying again?

TheGlitch76 commented 3 years ago

Yes, running chkdsk showed no errors, and a fresh install with sufficient space is giving the same issue.

maharmstone commented 3 years ago

Is this still an issue on today's version?

alucryd commented 3 years ago

Is this still an issue on today's version?

Yes sir, on version 20210105: Invalid file signature (00000000, expected 454c4946)

Edit: This was tested on arch linux, I'm happy to provide any useful additional information.

embedvr commented 1 year ago

I am getting this issue on my 8TB hdd on Windows 10 (21H2) Invalid file signature (00000000, expected 454c4946).

Edit: Got it again on Fedora 36, same drive.