[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Problems with initrd for LVM2 on 2.6.0-test8 and -test9 kernels.. .

On Thu, Oct 30, 2003 at 09:46:52AM -0600, Weber, Geoffrey M. wrote:
My apologies for not providing the information earlier... and for my mistake
in supplying the link to my initrd image.  I have been bookmarking sites
like mad and apparently chose the wrong one...
if you even quit posting in multipart/alternative i'll be an happy man

Here is my linuxrc inside the initrd image (this is the one based off of the
evms initrd I found on the web, since it seemed the most complete).

Please note that I still can't get the "/bin/ash" command to work properly,
though I'm working on it. I did put in the /dev/tty* and /dev/pt* nodes
into the initrd image, but still no luck.

here's the initrd i produce (shell is modified mdk/redhat nash) note that i mount manually the root fs then i pivot_root.

... load modules ...
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo Creating device files
mkdevices /dev
echo Activating md devices
mknod /dev/md1 b 9 1
echo Scanning logical volumes
echo Activating logical volumes
vgchange -ay
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/vg00/lvol1 /sysroot
pivot_root /sysroot /sysroot/initrd
echo Remounting devfs at correct place if necessary
umount /initrd/proc
mkdevices: creates device files based on /proc/partitions (if not devfs)
mdassemble: diet-libc version of mdadm --assemble (cannot build full
mdadm with diet-libc)
handledevfs: is described in the comment above

Here is my menu.lst from grub.  I've been testing with grub just so that I
could enter changes at boot time instead of running "lilo" all over the
you can append options to lilo command lines (just type 'em)

-------- CUT --------

gweber windforce:/tmp/test$ more menu.lst
root    (hd0,3)
splashimage (hd0,0)/grub/images/debian_cooleye-dither.xpm.gz
title   Linux (2.6.0-lvm)
kernel  (hd0,0)/vmlinuz-2.6.0-test9-aa0.2 root=fe00 console=ttys0
initrd  (hd0,0)/initrd-gw.gz
ttys0 ???
i tought serial console was ttyS0,<speed>


Luca Berra -- bluca comedia it
       Communication Media & Services S.r.l.
/ \

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]