1 |
On Tue, Jul 6, 2010 at 2:45 AM, Willie Wong <wwong@××××××××××××××.edu> wrote: |
2 |
> On Mon, Jul 05, 2010 at 02:17:26PM -0700, Mark Knecht wrote: |
3 |
>> On Mon, Jul 5, 2010 at 12:11 PM, Willie Wong <wwong@××××××××××××××.edu> wrote: |
4 |
>> > On Mon, Jul 05, 2010 at 09:16:14AM -0700, Mark Knecht wrote: |
5 |
>> >> I'm trying to capture the full boot log when booting from the Gentoo |
6 |
>> >> install CD but it seems the buffer isn't deep enough to get the whole |
7 |
>> >> thing. Is there by chance a command line option that will increase the |
8 |
>> >> depth of what's captured by dmesg so that I can get all the way back |
9 |
>> >> to the beginning? |
10 |
>> > |
11 |
>> > pass the following parameter to the kernel on GRUB/LILO: |
12 |
>> > |
13 |
>> > log_buf_len=n |
14 |
>> > |
15 |
>> > where n is a power of two. By default it is 16384. You can change it |
16 |
>> > to 131072 (= 2^17) to get a much larger kernel log ring buffer. If you |
17 |
>> > put in something that is not a power of two, the kernel will ignore |
18 |
>> > the option. |
19 |
>> > |
20 |
>> In my normal booting kernel (on the system hard drive) I did push |
21 |
>> the length up to 18. With that setting dmesg prints all the way back |
22 |
>> to the beginning. However booting the Live CD I hit F1, it shows the |
23 |
>> kernels, so I type |
24 |
>> |
25 |
> |
26 |
> to add to the confusion is probably the fact that the in-kernel |
27 |
> configuration parameter is a bit-shift number, and the boot-time |
28 |
> cmdline parameter is actually 2 to that power. So the in-kernel |
29 |
> configuration parameter should be k (=18 in your case), and the |
30 |
> boot-time parameter should be 2^k (=262144). |
31 |
|
32 |
Which is exactly why I chose 18 and not 262144. My bad. |
33 |
|
34 |
I switched to 262144 and now I'm getting all the dmesg data back to |
35 |
the very beginning. |
36 |
|
37 |
Thanks! |
38 |
|
39 |
Cheers, |
40 |
Mark |