linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Luciano Chavez <lnx1138@us.ibm.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] How to turn LVM off
Date: Fri, 14 Oct 2005 16:50:15 -0500	[thread overview]
Message-ID: <1129326615.9593.2.camel@localhost> (raw)
In-Reply-To: <26F201282709AA4895C203A194DA57DB4ED8EE@slcexch.cyberkineticsinc.com>

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 <lnx1138@us.ibm.com>

      parent reply	other threads:[~2005-10-14 21:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-12 17:59 [linux-lvm] How to turn LVM off Kirk Korver
2005-10-13 23:11 ` Fredrik Tolf
2005-10-14 20:46   ` David Johnston
2005-10-14 21:50 ` Luciano Chavez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1129326615.9593.2.camel@localhost \
    --to=lnx1138@us.ibm.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).