# Force Grub to select eMMC when Flash Drive plugged in

**URL:** <https://hub.mender.io/t/force-grub-to-select-emmc-when-flash-drive-plugged-in/725>\
**Category:** General Discussions\
**Created:** [June 18, 2019, 9:40am UTC](https://hub.mender.io/t/force-grub-to-select-emmc-when-flash-drive-plugged-in/725 "2019-06-18T09:40:17Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![mdavis777](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mdavis777/32/65_2.png) [@mdavis777](https://hub.mender.io/u/mdavis777)\
**Post date:** [September 16, 2019, 2:25pm UTC](https://hub.mender.io/t/force-grub-to-select-emmc-when-flash-drive-plugged-in/725/12 "2019-09-16T14:25:49Z")

</div>

Copy and paste my response from [992](https://hub.mender.io/t/adding-mender-partuuid-causes-an-error-dev-sda1-does-not-contain-a-valid-partuuid-path/992) so people can find it in either place.

I somewhat solved this issue back when I implemented partuuid.  
A small secret about the grub disk order is that it is derived from the BIOS boot priority order (in most cases). So if the disk you have grub on is highest in boot priority there is a good chance it will always be hd0 regardless of new media being added.

Not a perfect solution but it should cover most embedded cases where someone isn’t expecting to boot from a different device.

---

_[View the full topic](https://hub.mender.io/t/force-grub-to-select-emmc-when-flash-drive-plugged-in/725)._
