# Flash Ubuntu image to SATA drive

**URL:** <https://community.solid-run.com/t/flash-ubuntu-image-to-sata-drive/396>\
**Category:** NXP LX2160\
**Created:** [July 21, 2022, 9:38pm UTC](https://community.solid-run.com/t/flash-ubuntu-image-to-sata-drive/396 "2022-07-21T21:38:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@joes](https://community.solid-run.com/u/joes)\
**Post date:** [July 21, 2022, 9:38pm UTC](https://community.solid-run.com/t/flash-ubuntu-image-to-sata-drive/396/1 "2022-07-21T21:38:44Z")

</div>

I would like to flash an image based on the lx2160a\_build distribution to a SATA drive. I’m a bit confused by the documentation and I’m wondering if I’m not understanding the instructions.

From the document:  
[https://solidrun.atlassian.net/wiki/spaces/developer/pages/197494345/LX2160A+Software](https://solidrun.atlassian.net/wiki/spaces/developer/pages/197494345/LX2160A+Software)

It says to run these commands from u-boot to flash to the SATA drive:

#load mmc 0:1 0xa4000000 ubuntu-core.img  
#nvme scan  
#nvme write 0xa4000000 0 0xd2000

This doesn’t work and I feel that that I should be using “sata” instead of “nvme”. However, there is no u-boot “sata” command.

Am I missing something?

---

<div class="post-metadata">

**Author:** ![jnettlet](https://dub1.discourse-cdn.com/flex005/user_avatar/community.solid-run.com/jnettlet/32/62_2.png) [@jnettlet](https://community.solid-run.com/u/jnettlet)\
**Post date:** [July 22, 2022, 6:24am UTC](https://community.solid-run.com/t/flash-ubuntu-image-to-sata-drive/396/2 "2022-07-22T06:24:49Z")

</div>

the nvme command is specific to nvme storage. In u-boot to access sata drives you use the `scsi` command

---

<div class="post-metadata">

**Author:** ![joes](https://avatars.discourse-cdn.com/v4/letter/j/7ba0ec/32.png) [@joes](https://community.solid-run.com/u/joes)\
**Post date:** [July 22, 2022, 11:52pm UTC](https://community.solid-run.com/t/flash-ubuntu-image-to-sata-drive/396/3 "2022-07-22T23:52:45Z")

</div>

Thanks. I’ll do that. I was thinking sata and not scsi.

The software doc could use an update to reflect this information.
