[yocto] How to partition a flash drive (solved)

Paul D. DeRocco pderocco at ix.netcom.com
Tue Apr 9 22:49:12 PDT 2013


> From: Paul D. DeRocco
> 
> What's going wrong is that the code in the MBR created by 
> gparted (and I
> assume by parted) unconditionally uses drive number 0x80 (the 
> first hard
> disk) when it tries to load the zeroth sector from the 
> bootable partition.
> The BIOS, however, is treating this eUSB SSD as a removable drive, and
> calling it drive zero. So it's crashing at the point where 
> the MBR code
> jumps to what is supposed to be the zeroth sector of the partition.

It turns out that the Volume Boot Record code produced by Syslinux is
incompatible with the Master Boot Record code produced by parted and
gparted. However, there is an mbr.bin file in the Syslinux distribution that
works. If you dd this to the first 440 bytes of the MBR (leaving the actual
partition table intact), it boots fine. So, yes, you can indeed run a Yocto
live image from one partition on a flash drive, and have another partition
for persistent data.

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco at ix.netcom.com 




More information about the yocto mailing list