From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KoUnz-0000YJ-8V for garchives@archives.gentoo.org; Sat, 11 Oct 2008 03:06:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC9C3E0580; Sat, 11 Oct 2008 03:06:10 +0000 (UTC) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.186]) by pigeon.gentoo.org (Postfix) with ESMTP id AE769E0580 for ; Sat, 11 Oct 2008 03:06:10 +0000 (UTC) Received: by fk-out-0910.google.com with SMTP id 18so735403fks.2 for ; Fri, 10 Oct 2008 20:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=P1aEqgsMXT9LvVfv+W9n9f4Fm6bUBiRtJRrqDxhILQQ=; b=T0Lq56etiDrEJJmUTwSgb6f3TVlh5FpXiT3+KAzP2uzUa5s/9QTDOCAp6MVdI7mKA/ HlgZM92ErqDj5iWXHTwVXdu1bEKMkNeb0cWHR/Il4UWck0LCGLdi41Attk5Q0HhDm90v 3+qjA7igqVW+7NoZbU6LHpF+q+Tp9NZpvOTog= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qaSCy+ZwNhHn4iJmr4r3jIO7kEnEpx2RF76dI5fFzgpyL0TTiExkFrEPkpfgiun4o4 XSC9enhVTwuprFaMfjedJ5KLyeOvac/6OefsWpG9q1pNyIzG+FoOcoZulCxYomrBhHpc w/mYrcBEKSHVa6ekPsqSgduSGLxSSrRsMgbi0= Received: by 10.103.198.20 with SMTP id a20mr1617296muq.56.1223694369245; Fri, 10 Oct 2008 20:06:09 -0700 (PDT) Received: by 10.103.204.9 with HTTP; Fri, 10 Oct 2008 20:06:09 -0700 (PDT) Message-ID: Date: Fri, 10 Oct 2008 23:06:09 -0400 From: "Andrey Vul" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Howto erase the "Insert root floppy and press enter" item before the kernel panic? In-Reply-To: <20081011113336.e42519a1.davidwei@newbread.tj.cn> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081010173408.c7cbe3a3.davidwei@newbread.tj.cn> <20081011113336.e42519a1.davidwei@newbread.tj.cn> X-Archives-Salt: ec9cf15c-8e42-4ee9-adc4-92fb257722de X-Archives-Hash: 1a2fa5574f9ce91d4ee8c197c2f3b9fd On Fri, Oct 10, 2008 at 10:33 PM, David Wei wrote: > Sorry, I forgot that file . > the .config is in the attachment this time. > Thank you . > > On Fri, 10 Oct 2008 10:05:36 -0400 > "Andrey Vul" wrote: > >> 2008/10/10 David Wei : >> > Hi, >> > I am trying kexec with "kernel panic reboot" cause i have to manage my server remotely. >> > 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: >> > "VFS: Unable to mount root fs via NFS,trying floppy >> > Insert root floppy and Press Enter." >> > And the system hungup there waiting for my Enter. >> > 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. >> > Thank you in advance. >> I'm guessing that this is due to the floppy being compiled into the >> emergency kernel. >> In any case, can you post your .config for the emergency kernel? >> Nothing in the .config looks suspicious. It looks like it's inevitable that kernel patching will be needed, at least, using the preprocessor to "hide" the floppy code. Try this (it comments out floppy support which happens after NFS support): comment_floppy.patch --- init/do_mounts.c 2008-04-16 22:49:44.000000000 -0400 +++ init/do_mounts2.c 2008-10-10 23:03:06.867876561 -0400 @@ -308,7 +308,8 @@ ROOT_DEV = Root_FD0; } #endif -#ifdef CONFIG_BLK_DEV_FD +/* #ifdef CONFIG_BLK_DEV_FD */ +#if 0 if (MAJOR(ROOT_DEV) == FLOPPY_MAJOR) { /* rd_doload is 2 for a dual initrd/ramload setup */ if (rd_doload==2) { cd to your /usr/src/linux-... and run patch -p0 < comment_floppy.patch It should fix the _specific_ issue. It might not fix the root cause, however. -- Andrey Vul A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?