public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: thegeezer <thegeezer@thegeezer.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] looking a way to create a flash drive from scratch
Date: Fri, 21 Feb 2014 13:36:22 +0000	[thread overview]
Message-ID: <53075656.1000508@thegeezer.net> (raw)
In-Reply-To: <CAHH9eM4RXtWc-q1EfBMOJ8OCL10BNTF0DBEwagfCXHYS6HymwA@mail.gmail.com>

On 02/21/2014 01:13 PM, Francisco Ares wrote:
> Hi,
>
> I need to create a bootable flash stick, preferably using already
> working Gentoo system (or at least most of it), which was tailored for
> an embedded system.
>
> Already googled around, but I would like to know if anyone has already
> succeeded on this.
>
> Thanks
> Francisco

what I do is this:

1. make your usb stick an PV of your existing LVM volumegroup
2. create a small boot LV
3. install grub2 into the boot LV and onto the boot sector of the usb stick
4. insert stick into live running system
5. lvm convert running system LV into a mirror with one part of the
mirror on the stick. if it's already a mirror make it a 3way etc
6. when done, split the mirror
7. rename the usb into a different volumegroup, called backup for
example, and rename the LV to something sensible
8. configure grub on the usb to boot gentoo from the volume group
backup, root partition
9. eject the usb stick and plug into your other device
10. boot from the usb stick
11. repeat the mirror steps this time going onto the SD/hard drive of
the new device

LVM ftw


  parent reply	other threads:[~2014-02-21 13:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-21 13:13 [gentoo-user] looking a way to create a flash drive from scratch Francisco Ares
2014-02-21 13:34 ` Nick Cameo
2014-02-21 13:36 ` thegeezer [this message]
2014-02-21 14:30   ` Francisco Ares

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=53075656.1000508@thegeezer.net \
    --to=thegeezer@thegeezer.net \
    --cc=gentoo-user@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox