# \[wp7702\] Mount USB by UUID

**URL:** <https://mangoh.discourse.group/t/wp7702-mount-usb-by-uuid/9837>\
**Category:** mangOH Yellow\
**Created:** [January 20, 2022, 5:09pm UTC](https://mangoh.discourse.group/t/wp7702-mount-usb-by-uuid/9837 "2022-01-20T17:09:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremylaharotte](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jeremylaharotte](https://mangoh.discourse.group/u/jeremylaharotte)\
**Post date:** [January 20, 2022, 5:09pm UTC](https://mangoh.discourse.group/t/wp7702-mount-usb-by-uuid/9837/1 "2022-01-20T17:09:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [January 21, 2022, 5:40am UTC](https://mangoh.discourse.group/t/wp7702-mount-usb-by-uuid/9837/2 "2022-01-21T05:40:07Z")

</div>

Why don’t you mount like this?

```auto
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

---

<div class="post-metadata">

**Author:** ![jeremylaharotte](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jeremylaharotte](https://mangoh.discourse.group/u/jeremylaharotte)\
**Post date:** [January 21, 2022, 10:01am UTC](https://mangoh.discourse.group/t/wp7702-mount-usb-by-uuid/9837/3 "2022-01-21T10:01:01Z")

</div>

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”

> [@jyijyi](#):
>
> Why don’t you mount like this?
> 
> ```auto
> mkdir "/tmp/usbflash"
> /bin/mount -t auto -o sync /dev/sda1 "/tmp/usbflash"
> 
> ```

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 🙂

> 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
