1 |
On 2012-04-06 03:10:07,"Canek Peláez Valdés" <caneko@×××××.com> wrote: |
2 |
>On Thu, Apr 5, 2012 at 2:03 PM, Michael Mol <mikemol@×××××.com> wrote: |
3 |
>> On Thu, Apr 5, 2012 at 2:50 PM, Canek Peláez Valdés <caneko@×××××.com> wrote: |
4 |
>>> On Thu, Apr 5, 2012 at 1:32 PM, Joost Roeleveld <joost@××××××××.org> wrote: |
5 |
>>>> On Thursday, April 05, 2012 01:10:46 PM Canek Peláez Valdés wrote: |
6 |
>>>>> On Thu, Apr 5, 2012 at 2:47 AM, 张春江 <zhangchunjiangrj@×××.com> wrote: |
7 |
|
8 |
Thank you! The problem have been solved! |
9 |
|
10 |
I'm ashamed to tell you that the reason is my wrong kernel complie option. |
11 |
I knew little about gentoo and kernel complie when I install her, |
12 |
so I choose genkernel and it generated a kernel image and an initramfs. |
13 |
Weeks before, I complied my kernel manually with this option canceled: |
14 |
General setup--> |
15 |
Initial RAM filesystem and RAM disk(initramfs/initrd) support |
16 |
|
17 |
Then my machine can boot both with initramfs and not, so I think the option |
18 |
is not matter and I soon forgot it. |
19 |
|
20 |
Today I suddenly realized it and recomplied my kernel with the option on and |
21 |
the plymouth works! |
22 |
|
23 |
That's also the reason why the dmesg output didn't have any information about dracut. |
24 |
The accessory is my new dmesg output, which have dracut information. |
25 |
|
26 |
On 2012-04-06 18:18:26,"Jorge Martínez López" <jorgeml@×××××.com> wrote: |
27 |
>Hi! |
28 |
> |
29 |
>The video=radeon:... option is not strictly necessary. Actually from |
30 |
>the logs it seems you have a NVIDIA card... |
31 |
|
32 |
You are right, I use NVIDIA card and video=radeon isn't neccessory. |
33 |
If I use "video=radeon:1366x768", which is my screen size, in kernel command line, |
34 |
plymouth will just show fedora's default booting splash: |
35 |
three bars(a deep blue one ,a blue one and a white one) moving forward slowly, |
36 |
no matter what theme you set. |
37 |
|
38 |
If I use "vga=792" instead of "video=radeon:1366x768", every theme can be shown well, |
39 |
and if no screen size specified, no splash at all. |
40 |
|
41 |
>>>>> 2. GRUB cannot read ext4 partitions (GRUB2 can), so you are reading |
42 |
>>>>> them as ext3 (I don't know if this can cause any problems). The reason |
43 |
>>>>> I started to use GRUB2 was because I wanted to use ext4 for my /. |
44 |
>>>> |
45 |
>>>> I don't think ext4 and ext3 use the same disk layout, eg. I don't think that |
46 |
>>>> can work. |
47 |
>>> |
48 |
>>> ext4 is fully backwards compatible with ext3, obviously; otherwise 张春江 |
49 |
>>> would not be able to boot his system. |
50 |
>> |
51 |
>> Not exactly. If you use them, ext4 adds structures and features which |
52 |
>> means the filesystem isn't liked by ext3-only code. I don't remember |
53 |
>> which these are, I just know I tended to accidentally enable them |
54 |
>> while tweaking filesystems with tune2fs. |
55 |
> |
56 |
>tune2fs -O extents,uninit_bg,dir_index |
57 |
> |
58 |
>which, again, obviously 张春江 hasn't set, otherwise either he wouldn't |
59 |
>be able to boot his system, or we had seen the warnings in his logs. |
60 |
> |
61 |
>Just as long as he doesn't use those new features, ext4 is fully |
62 |
>backwards compatible with ext3. |
63 |
|
64 |
I havn't set tune2fs, so in my machine, ext4 can backwards compatible with ext3. |
65 |
|
66 |
>> 1. If you have a separate /boot partition, you should have something like |
67 |
>> |
68 |
>> kernel (hd0,14)/kernel-3.2.1-gentoo-r2 root=/dev/sda10 splash quiet |
69 |
>> video=radeon:1366x768 |
70 |
>> initrd (hd0,14)/initramfs-3.2.1-gentoo-r2.img |
71 |
>> in your grub.cfg. |
72 |
> |
73 |
> Grub starts counting at "0", not at "1". So the partition is marked as |
74 |
> (hd0,13) |
75 |
> The /boot partition has a symlink called boot pointing back to itself. |
76 |
> (hd0,13)/boot = (hd0,13) |
77 |
> |
78 |
> When specifying " root (hd0,13) " Grub will default to that partition. |
79 |
> |
80 |
> Eg. the grub config matches fstab. |
81 |
|
82 |
My grub.conf is ok, I think that there is no need to specific (hd0,13) before /boot |
83 |
In my opinion, "root (hd0,13)" command is before command kernel and initrd, |
84 |
so GRUB will regard (hd0,13) as root fs, and it will looking for kernel and initramfs in |
85 |
hd(0,13)/boot/kernel|initramfs. To test this, I tried to boot with: |
86 |
title Gentoo Linux |
87 |
root (hd0,13) |
88 |
kernel /kernel-3.2.1-gentoo-r2 root=/dev/sda10 quiet splash vga=792 |
89 |
initrd /initramfs-3.2.1-gentoo-r2.img |
90 |
this can boot successful too. |
91 |
|
92 |
Than all of you! |