-
Notifications
You must be signed in to change notification settings - Fork 51
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
Umount the device first during mount_usb_storage() (#1587) (BugFix) #1599
Conversation
5b0861c
to
fc89419
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I've just left a small comment there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the comments more readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fernando79513 Thank you for the suggestion. Please check if it is okay.
I've just seen that the first commit is not signed properly. Please sign the first commit and rebase this branch so all the comments are signed. |
d15a489
to
0cea9ca
Compare
…l#1587) To prevent the inserted storage from failing to mount twice, first ensure it is unmounted. Because the OS will auto-mount the inserted storage, the existing subprocess.call(["mount", device_to_mount, FOLDER_TO_MOUNT]) command will cause an error if the format of inserted storage is NTFS. Perform an umount on device_to_mount (e.g., for the media card in canonical#1587, it would be umount /dev/mmcblk0p1) before attempting to mount it again to avoid this issue.
0cea9ca
to
60fad04
Compare
update the comment correctly
Correct the blank line
60fad04
to
1fca8a1
Compare
Hi @fernando79513 , |
Description
To prevent the inserted storage from failing to mount twice, first ensure it is unmounted.
Because the OS will auto-mount the inserted storage, the existing
subprocess.call(["mount", device_to_mount, FOLDER_TO_MOUNT])
command will cause an error if the format of inserted storage is NTFS.Perform an
umount
ondevice_to_mount
(e.g., for the media card in #1587, it would beumount /dev/mmcblk0p1
) before attempting to mount it again to avoid this issue.Resolved issues
Fix (#1587)
Documentation
Tests
checkbox-cli run com.canonical.certification::mediacard/sdhc-storage-manual
With the above change, it shows:
Without the change, it shows: