Skip to contentSkip to conversation

LVM Root

linux-lvm [email protected] 2 participants 2 messages Jan 20, 2003 – Jan 22, 2003

lore
Share & tools
lore
#0 lore raw

Hi all,
I've been trying to create an LVM root on my system, and have followed the various how-to. I have been successful so far creating my kernel with initrd and LVM (version 2) support, and my initrd image.
I have two partitions on the drive - a 20MB boot partition with the kernel and grub on it - and the second containing my LVM FS.
grub.conf (menu.lst):

title= initrd test
root (hd0,0)
kernel /boot/bzImage root=FE02 ramdisk 8192
initrd /inird.gz

when I boot I get:
<runs vgscan and vgchange -ay successfully (finds LVs)> then...
device-mapper: unknown block ioctl 0x5310
reiserfs: checking trasaction log (device fe:02) ... Warning, log replay starting on readonly filesystem Using r5 hash to sort names
ReiserFS version 3.6.25
VFS: Mounted root reiserfs filesystem) readonly Trying to move old root to /initrd ... failed Unmounting old root
Trying to free ramdisk memory ... okay mount_dev_fs(): unable to mount devfs, err: -2 Freeing unused kernel memory: 120k freed
Warning: unable to open an initial console.

Kernel panic: No init found.  Try passing init= option to kernel.

Any help would be much appreciated!
--Ted

#1 lore raw
Quoted 2 lines · On Mon, Jan 20, 2003 at 08:51:46PM -0500, [email protected] wrote:

VFS: Mounted root reiserfs filesystem) readonly Trying to move old root to /initrd ... failed

try creating a /initrd directory (i suppose this is a pivot_root call which fails).

Quoted 1 line

Unmounting old root

i wonder what is it unmounting since pivot_root failed can you send the /linuxrc code

Quoted 2 lines

Trying to free ramdisk memory ... okay mount_dev_fs(): unable to mount devfs, err: -2

dunno, hope it comes from an error before

Quoted 2 lines

Freeing unused kernel memory: 120k freed
Warning: unable to open an initial console.

yep it could'nt mount dev in the above step

Quoted 1 line
Kernel panic: No init found.  Try passing init= option to kernel.

....

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \