1 |
Thanks Andrey, that patch works , my test kernel dose not ask for the floppy before the panic. Just by the way,dose that mean I cannot use floppy drive on this box? |
2 |
|
3 |
Thanks again!! |
4 |
|
5 |
On Fri, 10 Oct 2008 23:06:09 -0400 |
6 |
"Andrey Vul" <andrey.vul@×××××.com> wrote: |
7 |
|
8 |
> On Fri, Oct 10, 2008 at 10:33 PM, David Wei <davidwei@×××××××××××.cn> wrote: |
9 |
> > Sorry, I forgot that file . |
10 |
> > the .config is in the attachment this time. |
11 |
> > Thank you . |
12 |
> > |
13 |
> > On Fri, 10 Oct 2008 10:05:36 -0400 |
14 |
> > "Andrey Vul" <andrey.vul@×××××.com> wrote: |
15 |
> > |
16 |
> >> 2008/10/10 David Wei <davidwei@×××××××××××.cn>: |
17 |
> >> > Hi, |
18 |
> >> > I am trying kexec with "kernel panic reboot" cause i have to manage my server remotely. |
19 |
> >> > the "kernel panic reboot" (http://gentoo-wiki.com/TIP_Kernel_Panic_Reboot) has beening working so good so far for the regular kernel panic.However,sometimes when i were missed some file system items,the booking process would ask me: |
20 |
> >> > "VFS: Unable to mount root fs via NFS,trying floppy |
21 |
> >> > Insert root floppy and Press Enter." |
22 |
> >> > And the system hungup there waiting for my Enter. |
23 |
> >> > How can I remove this item from the booting process and panic directly so that it can reboot? Besides,I want to keep the NFS service. |
24 |
> >> > Thank you in advance. |
25 |
> >> I'm guessing that this is due to the floppy being compiled into the |
26 |
> >> emergency kernel. |
27 |
> >> In any case, can you post your .config for the emergency kernel? |
28 |
> >> |
29 |
> |
30 |
> Nothing in the .config looks suspicious. |
31 |
> It looks like it's inevitable that kernel patching will be needed, at |
32 |
> least, using the preprocessor to "hide" the floppy code. |
33 |
> Try this (it comments out floppy support which happens after NFS support): |
34 |
> comment_floppy.patch |
35 |
> --- init/do_mounts.c 2008-04-16 22:49:44.000000000 -0400 |
36 |
> +++ init/do_mounts2.c 2008-10-10 23:03:06.867876561 -0400 |
37 |
> @@ -308,7 +308,8 @@ |
38 |
> ROOT_DEV = Root_FD0; |
39 |
> } |
40 |
> #endif |
41 |
> -#ifdef CONFIG_BLK_DEV_FD |
42 |
> +/* #ifdef CONFIG_BLK_DEV_FD */ |
43 |
> +#if 0 |
44 |
> if (MAJOR(ROOT_DEV) == FLOPPY_MAJOR) { |
45 |
> /* rd_doload is 2 for a dual initrd/ramload setup */ |
46 |
> if (rd_doload==2) { |
47 |
> |
48 |
> cd to your /usr/src/linux-... and run patch -p0 < comment_floppy.patch |
49 |
> It should fix the _specific_ issue. It might not fix the root cause, however. |
50 |
> |
51 |
> -- |
52 |
> Andrey Vul |
53 |
> |
54 |
> A: Because it messes up the order in which people normally read text. |
55 |
> Q: Why is top-posting such a bad thing? |
56 |
> A: Top-posting. |
57 |
> Q: What is the most annoying thing in e-mail? |
58 |
> |
59 |
|
60 |
|
61 |
------------------------------- |
62 |
魏亮 David Wei |
63 |
|
64 |
您可以通过下面的方式和我联系: |
65 |
MSN: inadavid@×××××××.com |
66 |
Gtalk: inadavid@×××××.com |
67 |
Email: davidwei@×××××××××××.cn |