1 |
On Fri, Oct 10, 2008 at 10:33 PM, David Wei <davidwei@×××××××××××.cn> wrote: |
2 |
> Sorry, I forgot that file . |
3 |
> the .config is in the attachment this time. |
4 |
> Thank you . |
5 |
> |
6 |
> On Fri, 10 Oct 2008 10:05:36 -0400 |
7 |
> "Andrey Vul" <andrey.vul@×××××.com> wrote: |
8 |
> |
9 |
>> 2008/10/10 David Wei <davidwei@×××××××××××.cn>: |
10 |
>> > Hi, |
11 |
>> > I am trying kexec with "kernel panic reboot" cause i have to manage my server remotely. |
12 |
>> > 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: |
13 |
>> > "VFS: Unable to mount root fs via NFS,trying floppy |
14 |
>> > Insert root floppy and Press Enter." |
15 |
>> > And the system hungup there waiting for my Enter. |
16 |
>> > 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. |
17 |
>> > Thank you in advance. |
18 |
>> I'm guessing that this is due to the floppy being compiled into the |
19 |
>> emergency kernel. |
20 |
>> In any case, can you post your .config for the emergency kernel? |
21 |
>> |
22 |
|
23 |
Nothing in the .config looks suspicious. |
24 |
It looks like it's inevitable that kernel patching will be needed, at |
25 |
least, using the preprocessor to "hide" the floppy code. |
26 |
Try this (it comments out floppy support which happens after NFS support): |
27 |
comment_floppy.patch |
28 |
--- init/do_mounts.c 2008-04-16 22:49:44.000000000 -0400 |
29 |
+++ init/do_mounts2.c 2008-10-10 23:03:06.867876561 -0400 |
30 |
@@ -308,7 +308,8 @@ |
31 |
ROOT_DEV = Root_FD0; |
32 |
} |
33 |
#endif |
34 |
-#ifdef CONFIG_BLK_DEV_FD |
35 |
+/* #ifdef CONFIG_BLK_DEV_FD */ |
36 |
+#if 0 |
37 |
if (MAJOR(ROOT_DEV) == FLOPPY_MAJOR) { |
38 |
/* rd_doload is 2 for a dual initrd/ramload setup */ |
39 |
if (rd_doload==2) { |
40 |
|
41 |
cd to your /usr/src/linux-... and run patch -p0 < comment_floppy.patch |
42 |
It should fix the _specific_ issue. It might not fix the root cause, however. |
43 |
|
44 |
-- |
45 |
Andrey Vul |
46 |
|
47 |
A: Because it messes up the order in which people normally read text. |
48 |
Q: Why is top-posting such a bad thing? |
49 |
A: Top-posting. |
50 |
Q: What is the most annoying thing in e-mail? |