|
Home > Archive > Linux Debian support > January 2005 > sarge root filesystem on LVM2+reiserfs
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
sarge root filesystem on LVM2+reiserfs
|
|
|
| Hi,
I'm trying to install sarge kernel-2.6.8 with a root filesystem on
LVM2+reiserfs.
On boot I've the following:
pivot_root: No such file or directory
/sbin/init: 426: cannot open dev/console: No such file
Kernel panic: Attemped to kill init!
I created an initrd by putting in the file /etc/mkinitrd/modules:
dm-mod
reiserfs
and with the command:
mkinitrd -o /boot/initrd-2.6.8-2-k7.img 2.6.8-2
I boot with grub:
kernel (hd0,5)/vmlinuz-2.6.8-2-k7 root=/dev/system/slash
initrd (hd0,5)/initrd-2.6.8-2-k7.img
If I boot with the same kernel on an ext3 root filesystem everything is
ok.
I tried to change root=/dev/system/slash to
root=/dev/mapper/system-slash but it didn't work.
What can I do ?
I read somewhere there is a script 'lvm2_createinitrd' to put in
/etc/mkinitrd/scripts/, is this the solution ?
During kernel initialization I don't see any log for a LVM scanning.
Thanks for help.
J.
| |
|
| On Thu, 27 Jan 2005 14:40:50 +0100, jf wrote:
> Hi,
>
> I'm trying to install sarge kernel-2.6.8 with a root filesystem on
> LVM2+reiserfs.
>
> On boot I've the following:
> pivot_root: No such file or directory
> /sbin/init: 426: cannot open dev/console: No such file
> Kernel panic: Attemped to kill init!
>
> I created an initrd by putting in the file /etc/mkinitrd/modules:
> dm-mod
> reiserfs
>
> and with the command:
> mkinitrd -o /boot/initrd-2.6.8-2-k7.img 2.6.8-2
>
> I boot with grub:
> kernel (hd0,5)/vmlinuz-2.6.8-2-k7 root=/dev/system/slash
> initrd (hd0,5)/initrd-2.6.8-2-k7.img
>
> If I boot with the same kernel on an ext3 root filesystem everything is
> ok.
>
> I tried to change root=/dev/system/slash to
> root=/dev/mapper/system-slash but it didn't work.
>
> What can I do ?
> I read somewhere there is a script 'lvm2_createinitrd' to put in
> /etc/mkinitrd/scripts/, is this the solution ?
>
> During kernel initialization I don't see any log for a LVM scanning.
>
> Thanks for help.
> J.
I've been happy using LVM2 + reiserfs, but I avoided it for the root
partition (which is a simple ext3 partition). There are several bits and
pieces that need to be working to get it going, such as the reiserfs
module and the LVM stuff, so I felt it was a lot safer to have these
easily available to any kernel. If you are still at the "trying to
install" stage, I'd suggest making a fixed ext3 partition for root. The
joy of LVM2 + reiserfs is its flexibility - you can make whatever
partitions you want, and resize them on the fly. You don't even need to
umount them or stop accessing them - users notice nothing except a change
in the free space.
|
|
|
|
|