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

Attempt to unmount target before stopping with error message #24

Merged
merged 3 commits into from
Feb 27, 2021
Merged

Attempt to unmount target before stopping with error message #24

merged 3 commits into from
Feb 27, 2021

Conversation

jacobgkau
Copy link
Contributor

Currently, if any partition on the target device is mounted (in device mode), or if the target partition is mounted (in partition mode), the process stops with an error message telling the user to unmount the target and try again.

This change automatically attempts to unmount the offending partition(s), and if unmounting is successful, allows the process to continue. This is especially useful on distributions where external drives are automatically mounted when connected.

@WaxyMocha
Copy link
Member

Hi, thank you for pull request, could you add yellow warning for user, that we are unmounting the target?

@jacobgkau
Copy link
Contributor Author

@WaxyMocha Sure, I've added a warning message in line with the other yellow warning messages currently present:

unmount-warning

Is this sufficient, or is there supposed to be user confirmation in the GUI? (For reference, other popular USB imaging programs such as Etcher and Popsicle simply unmount the target without any warning, so doing this is not unprecedented.)

@WaxyMocha
Copy link
Member

Yes, I think it will be sufficient 😃, I will test it soon.

@WaxyMocha WaxyMocha merged commit c6966f3 into WoeUSB:master Feb 27, 2021
WaxyMocha added a commit that referenced this pull request Feb 28, 2021
Changes:
 - Close #6, Use new logo created by @ragnilorenzo,
 - Merge #23, Add German translation,
 - Merge #24, Auto unmount source and target,
 - Merge #25, Download efi image instead of html page
 - Add category to desktop shortcut,
 - Many small fixes
@jacobgkau jacobgkau deleted the auto-unmount branch March 1, 2021 17:45
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

Successfully merging this pull request may close these issues.

2 participants