> For the complete documentation index, see [llms.txt](https://bananapi.gitbook.io/bpi-m2-ultra-open-source-single-board-computer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bananapi.gitbook.io/bpi-m2-ultra-open-source-single-board-computer/bpi-m2ultrasourcecodeongithub/how-to-boot-from-emmc-with-sd-data.md).

# how to boot from emmc with SD data

**How to boot from emmc with SD data**

STEP 1. boot from SD

1a. bpi-copy xxx.img.zip #burn to emmc ;

1b. bpi-bootsel BPI\_M2U\_720P-emmc.img.gz /dev/mmcblk1 #auto download from github and burn to emmc;

1c. bpi-bootsel BPI-cleanboot-8k.img.gz /dev/mmcblk0 #auto download from github and burn to SD;

STEP 2. boot from emmc

2a. poweroff

2b, remove SD card

2c. poweron

2d. insert SD card

2e. fdisk /dev/mmcblk1 and mkfs -t ext4 /dev/mmcblk1p1
