All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ronald Oakes <ron@ron-oakes.us>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Problem imaging a hard drive
Date: Fri, 25 Nov 2016 15:35:23 -0700	[thread overview]
Message-ID: <CADh9ykEWV5YZLDUsGWFB0ktp5QzhqQVdU3wCqEA_G3MPF5NwAw@mail.gmail.com> (raw)
In-Reply-To: <CADh9ykHD_4GO+n9hpv-bWn-JCnZaxzS5mTdmC1b1iBQGfRVR3g@mail.gmail.com>

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
drive.

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 adaptor)
- 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@ron-oakes.us> wrote:
> I've been trying to use the directions at
> https://wiki.yoctoproject.org/wiki/How_do_I#Q:_How_do_I_put_Yocto_on_a_hard_drive.3F
> 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 grub2-install
> instead of grub-install. This is because I'm using a current RedHat system
> 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


  reply	other threads:[~2016-11-25 22:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-25 18:44 Problem imaging a hard drive Ronald Oakes
2016-11-25 22:35 ` Ronald Oakes [this message]
2016-11-28 23:56   ` Ronald Oakes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADh9ykEWV5YZLDUsGWFB0ktp5QzhqQVdU3wCqEA_G3MPF5NwAw@mail.gmail.com \
    --to=ron@ron-oakes.us \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.