From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9ELniV27852 for ; Fri, 14 Oct 2005 17:49:44 -0400 Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.153]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9ELnhSX030257 for ; Fri, 14 Oct 2005 17:49:43 -0400 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e35.co.us.ibm.com (8.12.11/8.12.11) with ESMTP id j9ELkPHG023962 for ; Fri, 14 Oct 2005 17:46:25 -0400 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j9ELnbkF527054 for ; Fri, 14 Oct 2005 15:49:38 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id j9ELnb1V016754 for ; Fri, 14 Oct 2005 15:49:37 -0600 Received: from [9.49.217.1] ([9.49.217.1]) by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j9ELnaVj016702 for ; Fri, 14 Oct 2005 15:49:37 -0600 Subject: Re: [linux-lvm] How to turn LVM off From: Luciano Chavez In-Reply-To: <26F201282709AA4895C203A194DA57DB4ED8EE@slcexch.cyberkineticsinc.com> References: <26F201282709AA4895C203A194DA57DB4ED8EE@slcexch.cyberkineticsinc.com> Date: Fri, 14 Oct 2005 16:50:15 -0500 Message-Id: <1129326615.9593.2.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" To: LVM general discussion and development On Wed, 2005-10-12 at 11:59 -0600, Kirk Korver wrote: > Hello, > > I'm using FC4 as a base for an embedded instrument. When the instrument > goes out the door, it has a 256 MB flash card for the hard drive, and a > Pentium 4M motherboard. Also, there will never be a keyboard, nor a > monitor. > > During development, there is a SATA hard drive with all of FC4 on it, > and it is currently using LVM. > > My task is to prepare a bootable, flash card. Next remove the hard drive > and have the system work. > > Here is what I do: > 1) fdisk /dev/hdc (the flash card is hdc) > 2) In fdisk, create a single large linux partition (don't need any swap > space) and active this partition. > > Create the file system > 3) mke2fs /dev/hdc1 > 4) tune2fs -c 0 /dev/hdc1 > > 5)Copy over the files I need (I'll give a set if you want, but its > enough to make linux happy). > 6)copy over my custom rc.sysinit, since I want to have exact control > over how the system boots > > 7) Install grub. I'll give the details: > grup --no-floppy > device (hd0) /dev/hdc > root (hd0,0) > setup (hd0) > > 8) Grup is happy. And says so > 9) Edit grub.conf so the kernel is at /boot/..... > 10) Edit the fstab to mount /dev/hdc1 on / > > Turn the power off, and remove the SATA hard drive: > > Now the problem > Grub starts, and finds my kernel > The kernel starts. > Redhat nash starts. Then I get the following messages. > Reading all physical volumes. This may take a while... > Aborting - please provide new pathname for what used to be /dev/hdc1 > No volume groups found > Unable to find volume group "VolGroup00" > ERROR: /bin/lvm exited abnormally with value 5 > ext3: No journal on filesystem on hdc1 > Mount: error 22 mounting ext3 > ERROR opening /dev/console!!!!: 2 > error dup2'ing fc of 0 to 0 > error dup2'ing fc of 0 to 1 > error dup2'ing fc of 0 to 2 > Switchroot: mount failed:22 > Kernel panic - not syncing: Attempted to kill init! > > > > I see it is asking about VolGroup00. This is LVM stuff. I don't want LVM > on the card. What is really weird is that all of this is happening > before the rc.sysinit is started. I don't find any command line options > to the kernel to turn LVM off. All of the LVM options are "modules" when > I built my kernel. > > So my question is quite simply, > What do I have to do so that LVM is NOT used?? Any other options? > > --Kirk > > > Kirk Korver Sounds like it's executing the init script that runs vgscan on the initrd. If you don't need lvm then edit the script and remove it. -- Luciano Chavez