Gentoo Archives: gentoo-user

From: Willie Wong <wwong@××××××××××××××.EDU>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] CD boot - dmesg buffer depth option?
Date: Tue, 06 Jul 2010 09:42:53
Message-Id: 20100706094242.GA15859@math.princeton.edu
In Reply to: Re: [gentoo-user] CD boot - dmesg buffer depth option? by Mark Knecht
1 On Mon, Jul 05, 2010 at 02:17:26PM -0700, Mark Knecht wrote:
2 > On Mon, Jul 5, 2010 at 12:11 PM, Willie Wong <wwong@××××××××××××××.edu> wrote:
3 > > On Mon, Jul 05, 2010 at 09:16:14AM -0700, Mark Knecht wrote:
4 > >> I'm trying to capture the full boot log when booting from the Gentoo
5 > >> install CD but it seems the buffer isn't deep enough to get the whole
6 > >> thing. Is there by chance a command line option that will increase the
7 > >> depth of what's captured by dmesg so that I can get all the way back
8 > >> to the beginning?
9 > >
10 > > pass the following parameter to the kernel on GRUB/LILO:
11 > >
12 > > log_buf_len=n
13 > >
14 > > where n is a power of two. By default it is 16384. You can change it
15 > > to 131072 (= 2^17) to get a much larger kernel log ring buffer. If you
16 > > put in something that is not a power of two, the kernel will ignore
17 > > the option.
18 > >
19 > Thanks for the ideas. I've been trying them but so far no luck.
20 >
21 > In my normal booting kernel (on the system hard drive) I did push
22 > the length up to 18. With that setting dmesg prints all the way back
23 > to the beginning. However booting the Live CD I hit F1, it shows the
24 > kernels, so I type
25 >
26 > gentoo log_buf_len=18
27 >
28
29 18 is not a power of two.
30
31 Why didn't you just try 131072, like I suggested? In maths notation,
32
33 n = 2^k
34
35 for some natural number k. 18 fails that miserably. :)
36
37 Cheers,
38
39 W
40 --
41 Willie W. Wong wwong@××××××××××××××.edu
42 Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire
43 et vice versa ~~~ I. Newton