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 argument passed trying to extract an EXT4 image #3

Closed
blackeangel opened this issue May 1, 2024 · 5 comments
Closed

Invalid argument passed trying to extract an EXT4 image #3

blackeangel opened this issue May 1, 2024 · 5 comments

Comments

@blackeangel
Copy link

All times I get error under Windows 10:

e2fstool 1.0.0 (30-Mar-2023)

Opening image file: 

e2fstool: Invalid argument while opening file (./system.img), try to increase your page/swap file.

run this:

e2fstool.exe -c "./config_dir" "./system.img" "./system"

@svoboda18
Copy link
Owner

Sorry for late response, but you should pass -e param for non-sparse images.

@blackeangel
Copy link
Author

Sorry for late response, but you should pass -e param for non-sparse images.

that is, the command for unpacking should be

e2fstool.exe -e -c "./config_dir" "./system.img" "./system"

?????

Please write a detailed user manual for working with your utility.

@svoboda18
Copy link
Owner

yes, did that solve your issue? I'm planning to add automatic image format selection so that you don't have to worry about which params to pass.

@blackeangel
Copy link
Author

yes, did that solve your issue? I'm planning to add automatic image format selection so that you don't have to worry about which params to pass.

No, I didn't try to add the parameter until it was possible.

It would be great!

I'll wait for the update then!

@svoboda18
Copy link
Owner

Till then, e2fstool.exe -ec "./config_dir" "./system.img" "./system" will extract raw ext4 system.img.

@svoboda18 svoboda18 changed the title all times error Invalid argument passed trying to extract an EXT4 image May 15, 2024
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

2 participants