[wp7702] Mount USB by UUID

Hi,

I use a Mangoh Yellow with a WP7702 chip

Firmware + Legato:

root@swi-mdm9x28-wp:/sys/bus# cm info
Device: WP7702
IMEI: 352653090211897
IMEISV: 5
FSN: 4L936370610310
Firmware Version: SWI9X06Y_02.35.02.00 5208b3 jenkins 2020/06/10 00:30:12
Bootloader Version: SWI9X06Y_02.35.02.00 5208b3 jenkins 2020/06/10 00:30:12
MCU Version: 002.014
PRI Part Number (PN): 9909138
PRI Revision: 001.001
Carrier PRI Name: SIERRA
Carrier PRI Revision: 001.036_001
SKU: 1104405
Last Reset Cause: Reset, User Requested
Resets Count: Expected: 27 Unexpected: 0
root@swi-mdm9x28-wp:/sys/bus# legato version
19.11.3-1-g8c030edad_34a8f46a3d85b53df7cd63949d660283_modified

My problem is that when I try to mount a USB stick by UUID, the system hang

mount UUID=563F-A62E /home/USB/

and if I try to modify /etc/fstab to mount by UUID, the Mangoh does not boot.It’s stuck on the mount phase and it reboots indefinitely.

Has anyone encountered this problem, if so have you found a solution?

Thank you,
Jeremy

Why don’t you mount like this?

mkdir "/tmp/usbflash"
/bin/mount -t auto -o sync /dev/sda1 "/tmp/usbflash"

You can try the following to get the UUID
blkid /dev/sda1

Hi,
the result of the command : blkid /dev/sda1

root@swi-mdm9x28-wp:~# blkid /dev/sda1
/dev/sda1: LABEL=“USBTest” UUID=“563F-A62E” TYPE=“vfat”

If I don’t mount like this, it’s in case there are several USB keys to mount, I have to mount each of them in their directory

but if mount cannot be used with UUID, I find a good workaround :slight_smile:

blkid /dev/sd* | grep My_UUID | sed "s/:.*//

This returns the partition that matches my_UUID
After that I can just use an if condition to mount the partition in its directory

Thank You,
Jeremy