[yocto] Problem imaging a hard drive
ron at ron-oakes.us
Mon Nov 28 15:56:12 PST 2016
I was able to resolve the problem with the help of a coworker today, by
booting from the grub command line, then using grub-mkconfig to create a
configuration file, put it in /boot/grub2, then use a .bbappend file to
ensure that it would continue to be included in my image.
On Fri, Nov 25, 2016 at 3:35 PM Ronald Oakes <ron at ron-oakes.us> wrote:
> Well, I partially solved my problem. It turns out I had a CD in the
> computer with an old boot image on it that was loading and causing
> great confusion.
> Now, grub appears to be loading OK, but doesn't look like it has a
> valid configuration to actually boot the image loaded onto the hard
> My commands (based on the link in my first email) were:
> - Format the hard drive using mkfs.ex4 -L <name>
> - Mount it (usually by just unplugging and replugging the USB to SATA
> - Copy the data from the mounted image file using cp -aV
> - Add grub using "grub2-install --recheck
> --boot-directory=/run/media/ron/<label>boot /dev/sdc"
> My educated guess is that either I'm missing something in my
> grub2-install command, or there is something missing in my build or
> build configuration that is causing the grub configuration to not be
> picked up when or where needed..
> Ron Oakes
> On Fri, Nov 25, 2016 at 11:44 AM, Ronald Oakes <ron at ron-oakes.us> wrote:
> > I've been trying to use the directions at
> > to create a boot drive based on my build.
> > However, I keep ending up with my root being at /media/ads/, with two big
> > issues: my static IP address isn't assigned, and my path is messed up
> > leaving my applications not on it by default.
> > The one main difference from the directions is that I'm using
> > instead of grub-install. This is because I'm using a current RedHat
> > for development due to a requirement of my client.
> > I will note that at least one of my added kernel modules is being loaded,
> > since I can see related messages in the console/demesg log.
> > Ron Oakes
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the yocto