Linux LVM users
 help / color / mirror / Atom feed
From: "Andy Baillie" <andyb@creative-realms.net>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Debian 3.0, kernel 2.4.18 booting with a LVM root fs LVM  doesn't work
Date: Thu Sep 26 09:18:48 2002	[thread overview]
Message-ID: <32978.192.168.240.41.1033049145.squirrel@creative-realms.net> (raw)
In-Reply-To: <3D9301EF.8421C344@cti-paysloire.cnamts.fr>

> "Heinz J . Mauelshagen" wrote:
>
>> On Thu, Sep 26, 2002 at 01:30:48PM +0200, LEBRETON Philippe wrote:
>> > "Heinz J . Mauelshagen" wrote:
>> >
>> > > On Thu, Sep 26, 2002 at 12:19:54PM +0200, LEBRETON Philippe wrote:
>> > > > hello,
>> > > >
>> > > > My configuration is :
>> > > >
>> <SNIP>
>> >
>> > yes my initrd is read-only but hox i can made initrd read-write?
>>
>> boot parameter "rw" or "read-write" in lilo.conf.
>>
>> >
>> >
>> > _______________________________________________
>> > linux-lvm mailing list
>> > linux-lvm@sistina.com
>> > http://lists.sistina.com/mailman/listinfo/linux-lvm
>> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>> --
>>
>> Regards,
>> Heinz    -- The LVM Guy --
>>
>> *** Software bugs are stupid.
>>     Nevertheless it needs not so stupid people to solve them ***
>>
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->>
>> Heinz Mauelshagen                                 Sistina Software
>> Inc. Senior Consultant/Developer                       Am Sonnenhang
>> 11
>>                                                   56242 Marienrachdorf
>>                                                   Germany
>> Mauelshagen@Sistina.com                           +49 2626 141200
>>                                                        FAX 924446
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@sistina.com
>> http://lists.sistina.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
> i change my lilo.conf :
> image=/boot/vmlinuz-2.2.18-smp
>        label=LinuxLVM
>        initrd=/boot/initrd-lvm.img
>        root=/dev/rootvg/root
>        read-write
>        ramdisk=8192
>
> The problem is the same.
> The read-write parameter is for /dev/rootvg/root not for the RAM Disk?
> And mount, vgscan can't to the RAM Disk.
> I can't mount my root filesystem because LVM is not initialize (vgscan,
> vgchange not working in RAM Disk)
>
the problem is not the root filesystem but probably the initrd filesystem.
Are you a debian user, if so the default kernel make procedures give you a
cram filesystem which is only ever read-only. The default kernel build if
Iremember rightly doesn't even have ext2 built into the kernel but loads it
as a module when running through the initrd boot process.
To get round this you will have to ensure a writable fs is built into the
kernel (not a module) and then mount the initrd image on a loopback device
then repeat with an ext2 filesystem created using mke2fs, copy from the
first loopback to the second, unmount both and compress the ext2 fs
version and copy this back to your /boot partition.
I did it a couple of times then accepted that until various changes are
made to the debian kernel build process you won't have default debian
systems able to boot into root on lvm setups. and went back to a normal
root device.
Regards
Andy


-- 
                   ---~~~===~~~---
http://www.landsofstone.org    http://194.159.1.90
telnet:mud.landsofstone.org:4801  212.46.65.2:4801
                   ---~~~===~~~---

  reply	other threads:[~2002-09-26  9:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26  5:20 [linux-lvm] Debian 3.0, kernel 2.4.18 booting with a LVM root fs LVM doesn't work LEBRETON Philippe
2002-09-26  5:58 ` Heinz J . Mauelshagen
2002-09-26  6:35   ` LEBRETON Philippe
2002-09-26  6:51     ` Heinz J . Mauelshagen
2002-09-26  7:57       ` LEBRETON Philippe
2002-09-26  9:18         ` Andy Baillie [this message]
2002-09-27  9:35           ` LEBRETON Philippe
2002-09-26  9:36       ` LEBRETON Philippe

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=32978.192.168.240.41.1033049145.squirrel@creative-realms.net \
    --to=andyb@creative-realms.net \
    --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