Skip to content

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

@scotthu27

Description

@scotthu27

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

  • cert-blocker

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions