canonical / checkbox

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.
https://checkbox.readthedocs.io
GNU General Public License v3.0
33 stars 49 forks source link

mediacard/sdhc-storage-manual case fail with NTFS #1587

Open scotthu27 opened 1 week ago

scotthu27 commented 1 week ago

Bug Description

checkbox try to mount SD card, which already auto mounted by system. FAT32 could be mounted twice, but NTFS not.

FAT:

$ lsblk -f mmcblk0
└─mmcblk0p1 vfat FAT32 3634-6530 14.5G 2% /tmp/tmpwejknovw /media/ubuntu/3634-6530

NTFS:

$ 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

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

$ 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

syncronize-issues-to-jira[bot] commented 1 week ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1648.

This message was autogenerated

scotthu27 commented 1 week ago

journalctl.log