From: Francis SOUYRI <francis.souyri@wanadoo.fr>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] LVM rootfs and cramfs as ramdisk
Date: Thu Jan 30 18:01:01 2003 [thread overview]
Message-ID: <3E39BCA9.3020103@wanadoo.fr> (raw)
In-Reply-To: <E18dzcw-0003aS-00@gw.pe1mhp.ampr.org>
Hi Jan,
You need "/etc" in rw for this you can mount "/etc" in the "linuxrc"
script using a tmpfs filesystem like this:
/#!/bin/sh
...
mount -t tmpfs none /etc
mount -t proc none /proc
echo "Scanning for Volume Groups..."
/sbin/vgscan
echo "Activating Volume Groups"
/sbin/vgchange -a y
...
umount /proc
umount /etc
/
I used "romfs" for the "initrd" ramdisk.
Best regards.
Francis
Jan H. van Gils wrote:
> Hi,
>
>First some thinks I found out.
>
>When you create with lvmcreate_initrd the /boot/initrd-lvm-<kernel> file
>the file is an ext2 filesystem. On a debian distro that wil give you problems
>because the kernel expects a cramfs as ramdisk file.
>
>Here is a work around I found :
>
>mount the /boot/initrd-lvm-<kernel> file
>mount -t ext2 -o loop /boot/initrd-lvm-<kernel> /mnt
>
>copy the file to temporary working directory
>cd /mnt; find . -print | cpio -udmp /var/tmp/lvm
>
>dismount the /mnt file system and mount the kernel original
>mount -t cramfs -o loop /boot/initrd.img-<kernel>
>cd /mnt; find . -print | cpio -udmp /var/tmp/lvm
>
>now create the new cramfs initrd file
>cd /var/tmp; mkcramfs lvm/ initrd.cramfs
>make sure the owner and group member are root <chown -R root:root initrd.cramfs)
>
>To be sure you can check the initrd.cramfs with cramfsck -v initrd.cramfs.
>
>Now I am wondering about one thing ? cramfs is a readonly filesystem
>when the system boot it executes a vgscan and that creates a
>"/etc/lvmtab" and "/etc/lvmtab.d" successfully created".
>
>But because the cramfs is readonly, wil this not be an impossibility,
>and is the cramfs ramdisk file not possible at all !!
>
>Please responce on this subject.
>
>Greetz, Jan
>
>
>
>
next prev parent reply other threads:[~2003-01-30 18:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-29 15:21 [linux-lvm] LVM rootfs and cramfs as ramdisk Jan H. van Gils
2003-01-30 18:01 ` Francis SOUYRI [this message]
2003-02-01 15:37 ` Jan H. van Gils
2003-02-04 0:02 ` Francis SOUYRI
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=3E39BCA9.3020103@wanadoo.fr \
--to=francis.souyri@wanadoo.fr \
--cc=linux-lvm@sistina.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