From: "IT3 Stuart B. Tener, USNR-R" <stuart@bh90210.net>
To: linux-lvm@sistina.com
Subject: RE: [linux-lvm] How to boot with LVM?
Date: Thu, 13 Sep 2001 09:43:09 -0700 [thread overview]
Message-ID: <NBBBJHKIOKPKOGOEPEDPOEEKDNAA.stuart@bh90210.net> (raw)
In-Reply-To: <004101c13c4d$cfc929a0$6601a8c0@foobarhouse.com>
Dear Sir:
Thank you, I will download and try it. I am using Mandrake 8.0 (2.4.8-12mdk) and the latest mandrake release of LVM (09.2 I think?).
Very Respectfully,
Stuart Blake Tener, IT3, USNR-R, N3GWG
Beverly Hills, California
VTU 1904G (Volunteer Training Unit)
stuart@bh90210.net
west coast: (310)-358-0202 P.O. Box 16043, Beverly Hills, CA 90209-2043
east coast: (215)-338-6005 P.O. Box 45859, Philadelphia, PA 19149-5859
Telecopier: (419)-715-6073 fax to email gateway via www.efax.com (it's free!)
JOIN THE US NAVY RESERVE, SERVE YOUR COUNTRY, AND BENEFIT FROM IT ALL.
Thursday, September 13, 2001 9:40 AM
-----Original Message-----
From: linux-lvm-admin@sistina.com [mailto:linux-lvm-admin@sistina.com]On Behalf Of Neil Macvicar
Sent: Thursday, September 13, 2001 5:16 AM
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] How to boot with LVM?
If it's any help, I have put my initrd on public ftp at
fruits.foobarhouse.com in the LVM directory. It's served me well for as long
as I've been using LVM'ed root.
I'm currently using LVM 0.9.1beta8.
Regards,
--Neil.
----- Original Message -----
From: "A.R. (Tom) Peters" <tpeters@xs4all.nl>
To: <linux-lvm@sistina.com>
Sent: Thursday, September 13, 2001 8:18 AM
Subject: [linux-lvm] How to boot with LVM?
> I bought a 30 GB HD, and decided to put it under the LVM and put
> ReiserFS on it. I managed to initialize it fine, and it now has a base
> Debian install on it, but I cannot manage to boot from it.
>
> You cannot boot from a LV; therefore I made a small (16 MB) ext2
> partition with a kernel and an initrd. My intended root FS is on a LV,
> and you need to jump through some hoops to get the kernel mount it on /
> : that is documented in the LVM-HOWTO and FAQ that comes with the LVM
> tools. Use of initrd is documented in
> /usr/src/linux/Documents/initrd.txt . Finally, the Bootdisk-HOWTO
> helps.
>
> I use LVM tools 1.0.1-rc2, and a 2.4.10-pre7 kernel, patched with the
> patches of the LVM tools; no .rej there. I compiled the LVM binaries
> with liblvm-10 statically linked, because otherwise the executables in
> the initrd had problems with finding the .so (I think I know what was
> going on, but won't go into that now). Therefore I have to make a
> Ramdisk of 5MB instead of the default 4 MB.
>
> My new HD is /dev/hdd, and is the 3rd HD in the system: this allows me
> to still use my computer to read docs and send you this message. So for
> now I do not want to put a bootloader on the disk because the hardware
> config is going to change: instead I use a boot floppy with GRUB.
>
> LVM has a utility script lvmcreate_initrd to make an initrd suitable to
> prepare for mounting a LV on / .
>
> The system boots with the floppy; the correct kernel is loaded from the
> ext2 partition, as well as the initrd; the LVM tools on the initrd are
> executed and seem to work properly.
>
> PROBLEM: subsequently the kernel panics because it still cannot mount a
> root.
>
> I got a GRUB bootdisk that works. /grub/menu.lst :
> title Linux24
> root (hd2,4)
> kernel /vmlinuz-2.4.10-pre7 root=/dev/SYSDISK/Root ramdisk_size=5120
> # If I specify root=/dev/ram0 then I get a shell on the rudimentary
> initrd system.
> initrd /initrd-lvm-2.4.10-pre7.gz
>
> On initrd:
>
> etc/fstab:
> /dev/ram / ext2 defaults 0 0
> proc /proc proc defaults 0 0
>
> linuxrc:
> #!/bin/sh
> /bin/mount /proc
> /sbin/vgscan
> /sbin/vgchange -a y
> /bin/umount /proc
>
> devices:
> # ls -l dev/SYSDISK/
> total 0
> brw-rw---- 1 root disk 58, 2 Sep 11 19:23 Opt
> brw-rw---- 1 root disk 58, 0 Sep 11 19:23 Root
> brw-rw---- 1 root disk 58, 4 Sep 11 19:23 Scratch
> brw-rw---- 1 root disk 58, 1 Sep 11 19:23 Usr
> brw-rw---- 1 root disk 58, 3 Sep 11 19:23 Var
> crw-r----- 1 root disk 109, 0 Sep 11 19:23 group
>
> Kernel:
> # rdev vmlinuz-2.4.10-pre7
> Root device /dev/ram0 # Root device /dev/SYSDISK/Root
> (-> 0x3a00) does not make a difference
> # rdev -R vmlinuz-2.4.10-pre7
> Root flags 0 # i.e. mount ro
> # rdev -r vmlinuz-2.4.10-pre7
> Ramsize 49152 # i.e. offset=0; bit14=1: load ramdisk; bit15=1:
> # prompt before loading rootfs - this never happens!
>
> What am I supposed to change? The kernel initrd.txt has a long and
> complicated story on using pivot_root to switch rootfs, but apparently
> the LVM linuxrc relies on the deprecated method that does this
> automatically.
>
> Any advice welcome.
>
> --
>
#>!$!%(@^%#%*(&(#@#*$^@^$##*#@&(%)@**$!(&!^(#((#&%!)%*@)(&$($$%(@#)&*!^$)^@*
^@)
>
> Tom "thriving on chaos" Peters
> NL-1062 KD nr 149 tel. +31-204080204
> Amsterdam e-mail tpeters@xs4all.nl
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
next prev parent reply other threads:[~2001-09-13 16:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-13 7:18 [linux-lvm] How to boot with LVM? A.R. (Tom) Peters
2001-09-13 12:15 ` Neil Macvicar
2001-09-13 16:43 ` IT3 Stuart B. Tener, USNR-R [this message]
2001-09-13 21:12 ` Neil Macvicar
2001-09-13 21:08 ` IT3 Stuart B. Tener, USNR-R
2001-09-14 11:56 ` Neil Macvicar
2001-09-14 16:28 ` IT3 Stuart B. Tener, USNR-R
2001-09-14 17:16 ` A.R. (Tom) Peters
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=NBBBJHKIOKPKOGOEPEDPOEEKDNAA.stuart@bh90210.net \
--to=stuart@bh90210.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