Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
$ 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
[X] 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.
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