Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid file signature error? #4

Open
elsorino opened this issue May 13, 2020 · 18 comments
Open

Invalid file signature error? #4

elsorino opened this issue May 13, 2020 · 18 comments

Comments

@elsorino
Copy link

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
Copy link

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:

throw runtime_error("Invalid file signature.");

@maharmstone
Copy link
Owner

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
Copy link

Same error on a 500gb hdd run on Ubuntu 20.04

@ghost
Copy link

ghost commented Jun 15, 2020

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

@YihaoPeng
Copy link

YihaoPeng commented Jun 18, 2020

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
Copy link

yretenai commented Jun 29, 2020

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
Copy link

ghost commented Jun 29, 2020

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
Copy link

Reproduced on a 512GB NVME SSD.

@TheGlitch76
Copy link

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
Copy link

timawesomeness commented Oct 6, 2020

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

@maharmstone
Copy link
Owner

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
Copy link

ghost commented Nov 9, 2020

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
Copy link

TheGlitch76 commented Nov 17, 2020

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
Copy link
Owner

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

@TheGlitch76
Copy link

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

@maharmstone
Copy link
Owner

Is this still an issue on today's version?

@alucryd
Copy link

alucryd commented Feb 4, 2021

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
Copy link

embedvr commented Oct 22, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants