You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ lsblk -f
mmcblk0
└─mmcblk0p1 ntfs NTFS 019F72A27CD70D27 14.7G 1% /media/ubuntu/NTFS
$ sudo mount /dev/mmcblk0p1 /mnt
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
Cert-blocker Test Case
cert-blocker
To Reproduce
checkbox-cli run com.canonical.certification::mediacard/sdhc-storage-manual
$ sudo checkbox-support-run_watcher storage mediacard_combo
--------- Testing insertion ---------
INSERT NOW
Timeout: 30 seconds
INFO:usable partition: mmcblk0p1
INFO:Device: ultra high speed SDR50 SDHC
INFO:Address: e624
INFO:Mediacard insertion test passed.
------- Insertion test passed -------
--------- Testing read/write --------
DEBUG:generating a random file
Mounting the USB storage
mmcblk0p1
DEBUG:try to mount usb storage for testing
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
ERROR:mount /dev/mmcblk0p1 on /tmp/tmpncdsflhi failed.
INFO:context manager exit: unmount USB storage
umount: /tmp/tmpncdsflhi: not mounted.
WARNING:umount /tmp/tmpncdsflhi failed.
INFO:Remove temporary folders and files.
Additional context
No response
The text was updated successfully, but these errors were encountered:
…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.
Bug Description
checkbox try to mount SD card, which already auto mounted by system.
FAT32 could be mounted twice, but NTFS not.
FAT:
NTFS:
Cert-blocker Test Case
To Reproduce
checkbox-cli run com.canonical.certification::mediacard/sdhc-storage-manual
Environment
Checkbox Type: Debian
Checkbox Version: 4.2.0~dev127 ~ubuntu24.04.1
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: