* [gentoo-user] looking a way to create a flash drive from scratch
@ 2014-02-21 13:13 Francisco Ares
2014-02-21 13:34 ` Nick Cameo
2014-02-21 13:36 ` thegeezer
0 siblings, 2 replies; 4+ messages in thread
From: Francisco Ares @ 2014-02-21 13:13 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 271 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 355 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] looking a way to create a flash drive from scratch
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
1 sibling, 0 replies; 4+ messages in thread
From: Nick Cameo @ 2014-02-21 13:34 UTC (permalink / raw
To: gentoo-user
Gentoo minimal and unetbootin:
http://programminglinuxblog.blogspot.ca/2011/02/gentoo-on-usb-stick.html#!/2011/02/gentoo-on-usb-stick.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] looking a way to create a flash drive from scratch
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
2014-02-21 14:30 ` Francisco Ares
1 sibling, 1 reply; 4+ messages in thread
From: thegeezer @ 2014-02-21 13:36 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] looking a way to create a flash drive from scratch
2014-02-21 13:36 ` thegeezer
@ 2014-02-21 14:30 ` Francisco Ares
0 siblings, 0 replies; 4+ messages in thread
From: Francisco Ares @ 2014-02-21 14:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]
Thanks, gonna try it
Francisco
2014-02-21 10:36 GMT-03:00 thegeezer <thegeezer@thegeezer.net>:
> 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
>
>
[-- Attachment #2: Type: text/html, Size: 1783 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-02-21 14:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-02-21 14:30 ` Francisco Ares
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox