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

mkinitrd + lvm2 help

I'm having problems creating an mkinitrd image where I want the /
directory to be lvm2.

o  Using stock 2.6.7-k7-smp w/ udev
o  Volume group named "vg" created from /dev/md1
o  Logical volume "root" on "vg"
   => result: a lvm2 device called "/dev/vg/root"
o  Mounted /dev/vg/root on /mnt and copied over my current / partition
o  Tried to create an initrd image using /dev/vg/root as / and I get
the following:

portland:~# chroot /mnt mkinitrd -o /boot/initrd.img-2.6.7-1-k7-smp-LVM
/usr/sbin/mkinitrd: neither /dev/fd or /proc/self/fd exists!
Try mounting the proc filesystem: mount -tproc none /proc
portland:~# chroot /mnt mount -tproc none /proc
portland:~# chroot /mnt mkinitrd -o /boot/initrd.img-2.6.7-1-k7-smp-LVM
/usr/sbin/mkinitrd: device /dev/vg/root is not a block device

I'm stuck now -- any ideas? Help much appreciated.



p.s. I know /boot should not be on the lvm2 device; my plan was to move
/boot to it's own partition, /dev/md0 (setup as RAID 1), as soon as I
had the initrd image.

Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.

Reply to: