linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] How to turn LVM off
@ 2005-10-12 17:59 Kirk Korver
  2005-10-13 23:11 ` Fredrik Tolf
  2005-10-14 21:50 ` Luciano Chavez
  0 siblings, 2 replies; 4+ messages in thread
From: Kirk Korver @ 2005-10-12 17:59 UTC (permalink / raw)
  To: linux-lvm

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
email: kkorver cyberkineticsinc com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-14 21:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).