Gentoo Archives: gentoo-user

From: Jason Dusek <jason.dusek@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] LiveUSB
Date: Tue, 22 Jan 2008 06:25:43
Message-Id: 42784f260801212225k16f8f451lf4ada4b4482e88b0@mail.gmail.com
1 I've recently created LiveUSB sticks from the Gentoo LiveDVD
2 and LiveCD. (I'm trying to put Gentoo on an OQO.) It was
3 pretty easy -- I was able to use ext3 even -- and I thought
4 I'd share how I did that with everyone.
5
6 The three steps are:
7
8 . Format the stick.
9 . Put the Gentoo stuff on there.
10 . Slap on the boot loader and configure it.
11
12 Prepare The Stick
13 -----------------
14
15 For the DVD, you need a big stick -- for the CD, not so much.
16 Let's say the stick is at `/dev/sda`. Using fdisk, create one
17 partition on it, marking it bootable. (That part is explained
18 all over the place.) When that is over, run
19
20 mkfs.ext3 /dev/sda1
21
22 and then put the master boot record on the device:
23
24 cat /usr/lib/syslinux/mbr.bin > /dev/sda
25
26
27 Copy The Gentoo Material
28 ------------------------
29
30 Mount the ISO of your choice -- say it's at `/media/iso` --
31 along with `/dev/sda1` at `/media/usb`. All you have to do is:
32
33 cp -pPR /media/iso/* /media/usb
34
35
36
37 Setup The Bootloader
38 --------------------
39
40 This is where my process differs from the tutorials for
41 Gentoo. I lifted the idea from the Pentoo distribution (now
42 defunct). You install the `extlinux` loader _to the directory_
43 where the bootable stuff -- so it's okay to leave it all in
44 isolinux.
45
46 cd /media
47 cp usb/isolinux/isolinux.cfg usb/isolinux/extlinux.conf
48 extlinux -i usb/isolinux
49
50 There will be a `extlinux.sys` file in there along side the
51 configuration file after you install.
52
53
54
55
56 That's it. I wanted to go with ext3 so I could have links and
57 a large filesystem -- FAT16 won't take more than 2GB -- and
58 I'm glad this was so easy with Gentoo 2007.0! It's too bad
59 the tutorials out there don't make it clear the progress that
60 has been made in the last year. USB booting is great -- I will
61 likely exploit the ease of 'remastering' my image to good
62 effect when installing on my OQO -- and I hope this email
63 helps others out there who are interested in the topic.
64
65 --
66 _jsn
67 --
68 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] LiveUSB "b.n." <brullonulla@×××××.com>