Gentoo Archives: gentoo-user

From: David Relson <relson@×××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Booting Gentoo from USB stick
Date: Fri, 10 Sep 2010 12:13:13
Message-Id: 20100910072901.597f7dec@osage.osagesoftware.com
In Reply to: Re: [gentoo-user] Booting Gentoo from USB stick by "J. Roeleveld"
1 On Fri, 10 Sep 2010 11:05:12 +0200
2 J. Roeleveld wrote:
3
4 > On Friday 10 September 2010 10:43:30 Jake Moe wrote:
5 > > On 10/09/2010 5:27 PM, Maciej Grela wrote:
6 > > > 2010/9/10 Jake Moe<jakesaddress@×××××.com>:
7 > > >> Hello all,
8 > > >>
9 > > >> I've been thinking about creating a Gentoo USB stick for install
10 > > >> and rescue purposes (and, of course, just to see if I could).
11 > > >> I've mostly followed the Gentoo handbook (I used a single 4GB
12 > > >> partition for the whole system, and no swap). I've used
13 > > >> genkernel for the kernel (so I can have a multi-system capable
14 > > >> kernel). I've gotten GRUB installed and working. My problem
15 > > >> comes in after what I believe is the init process:
16 > > >>
17 > > >>
18 > > >> Gentoo Linux; http://www.gentoo.org
19 > > >>
20 > > >> Copyright 1999-2009 Gentoo Foundation; Distributed under the
21 > > >> GPLv2
22 > > >>
23 > > >> Press I to enter interactive boot mode
24 > > >>
25 > > >> * Mounting proc
26 > > >> at /proc ... [
27 > > >>
28 > > >> ok ]
29 > > >>
30 > > >> * Mounting sysfs
31 > > >> at /sys ... [
32 > > >>
33 > > >> ok ]
34 > > >>
35 > > >> *
36 > > >> Mounting /dev ... [
37 > > >>
38 > > >> ok ]
39 > > >>
40 > > >> * Starting
41 > > >> udevd ... [
42 > > >>
43 > > >> ok ]
44 > > >>
45 > > >> * Populating /dev with existing devices through
46 > > >> uevents ... [
47 > > >>
48 > > >> ok ]
49 > > >>
50 > > >> * Waiting for uevents to be
51 > > >> processed ... [
52 > > >>
53 > > >> ok ]
54 > > >>
55 > > >> * Mounting devpts
56 > > >> at /dev/pts ... [
57 > > >>
58 > > >> ok ]
59 > > >>
60 > > >> * Checking root filesystem ...
61 > > >>
62 > > >> fsck.ext2: No such file or directory while trying to
63 > > >> open /dev/sda1 /dev/sda1:
64 > > >> The superblock could not be read or does not describe a correct
65 > > >> ext2 filesystem. If the device is valid and it really contains
66 > > >> an ext2 filesystem (and not swap or ufs or something else), then
67 > > >> the superblock
68 > > >>
69 > > >> is corrupt, and you might try running e2fsck with an alternate
70 > superblock:
71 > > >> e2fsck -b 8193<device>
72 > > >>
73 > > >> * Filesystem couldn't be
74 > > >> fixed :( [
75 > > >>
76 > > >> !! ]
77 > > >> Give root password for maintenance
78 > > >> (or type Control-D to continue):
79 > > >>
80 > > >>
81 > > >> If I give the root password, I can find no /dev/sda1. However,
82 > > >> mount shows /dev/sda1 on /, and there *is* a /sys/block/sda
83 > > >> folders, with a sda1 folder in that as well. It's almost like
84 > > >> it had /dev/sda1, but then lost it somehow.
85 > > >>
86 > > >> Does anyone have any idea what's going on here? Any help would
87 > > >> be appreciated.
88 > > >
89 > > > Have you seen http://www.sysresccd.org/Main_Page ? It's based on
90 > > > Gentoo, you could check what they did to boot from a usb stick.
91 > > >
92 > > > Br,
93 > > > Maciej Grela
94 > >
95 > > Excellent, thanks for that, I hadn't found it in my previous
96 > > searches. I'll have a look there.
97 > >
98 > > Jake Moe
99 >
100 > Had a similar issue a while ago when I was playing around with this
101 > myself.
102 >
103 > Take a look at the linux boot parameters.
104 >
105 > The 'theoretical' part is: You need to let the kernel initialize the
106 > USB-stick before trying to access it. (This can take some time)
107 >
108 > There is a delay-option, just can't remember the proper name off-hand.
109 >
110 > --
111 > Joost
112
113 I've got USB booting working in a syslinux environment. A delay of 12
114 seconds is working for me. The syslinux.cfg stanza I use is:
115
116 LABEL usb
117 KERNEL linux
118 APPEND rootdelay=12 root=/dev/sda2
119
120 HTH,
121
122 David

Replies

Subject Author
Re: [gentoo-user] Booting Gentoo from USB stick YoYo Siska <yoyo@××××××.sk>