[linux-lvm] booting on a new root partition

ramsis farhat sismar2002 at yahoo.fr
Fri Aug 4 08:29:53 UTC 2006


hi everybody
Dieter, here is what you asked me
[root at localhost root]# ls -ltr /boot
total 6138
-rw-r--r--      1 root     root        21282      Sep 11  2003       message.ja
-rw-r--r--      1 root     root        23108      Sep 11  2003       message
-rw-r--r--      1 root     root        1236945   Oct  4  2003        vmlinuz-2.4.21-4.EL
-rw-r--r--      1 root     root        570887    Oct  4  2003        System.map-2.4.21-4.EL
-rwxr-xr-x    1 root     root        2900380  Oct  4  2003        vmlinux-2.4.21-4.EL
-rw-r--r--      1 root     root        543         Jul   30 21:30       kernel.h
-rw-r--r--      1 root     root        276990    Jul   30 21:30       initrd-2.4.21-4.EL.img
drwxr-xr-x   2 root     root        1024       Jul   30 21:43        grub
lrwxrwxrwx  1 root     root        22          Jul   30 21:43        System.map -> System.map-2.4.21-4.EL
drwx------     2 root     root        12288     Jul   30 23:26        lost+found
-rw-r--r--      1 root     root        48023      Aug  1 14:50         config-2.4.21-4.EL
-rw-r--r--      1 root     root        1154607  Aug  1 14:50         initrd-lvm-2.4.21-4.EL.gz
 
Her is my grub directory
 
[root at localhost root]# ls -ltr /boot/grub
total 185
-rw-r--r--    1 root     root        11182 Sep 11  2003 splash.xpm.gz
-rw-r--r--    1 root     root       106364 Jul 30 21:43 stage2
-rw-r--r--    1 root     root          512 Jul 30 21:43 stage1
lrwxr-xr-x    1 root     root           11 Jul 30 21:43 menu.lst -> ./grub.conf
-rw-r--r--    1 root     root           82 Jul 30 21:43 device.map
-rw-r--r--    1 root     root         9320 Jul 30 21:43 xfs_stage1_5
-rw-r--r--    1 root     root         6528 Jul 30 21:43 vstafs_stage1_5
-rw-r--r--    1 root     root         9408 Jul 30 21:43 reiserfs_stage1_5
-rw-r--r--    1 root     root         7040 Jul 30 21:43 minix_stage1_5
-rw-r--r--    1 root     root         8448 Jul 30 21:43 jfs_stage1_5
-rw-r--r--    1 root     root         6880 Jul 30 21:43 ffs_stage1_5
-rw-r--r--    1 root     root         7536 Jul 30 21:43 fat_stage1_5
-rw-r--r--    1 root     root         7840 Jul 30 21:43 e2fs_stage1_5
-rw-------    1 root     root          679 Aug  1 14:40 grub.conf

And here my configuration
 
[root at localhost root]# cat  /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/sda2
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux ES (2.4.21-4.EL)
 root (hd0,0)
 kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
 initrd /initrd-2.4.21-4.EL.img
title Ramsis
 root (hd0,0)
 kernel /vmlinuz-2.4.21-4.EL ro root=/dev/vg00/root
 initrd /initrd-lvm-2.4.21-4.EL.gz

 
And I mounted my new root ' mount /dev/vg00/root /mnt/ '
The new /etc/fstab contains : 
 
/dev/vg00/root          /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/sda3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0

But i still think the problrm is coming from the instruction "lvmcreate_initrd" because if I do not use the "-D" flag, the instruction fail, and in the "LVM-HOWTO", it is used without that flag.
If you have any suggestion :)
thank you :)




More information about the linux-lvm mailing list