i need to restore my system (based on debian 5 with 2 sata mirrored disk via raid1 linux and lvm2 partitions and lilo as bootloader) because like an idiot i upgraded my system kernel and rebooted withouth launching "lilo" command before..
both kernel (Linux and LinuxOLD) are unusable (i think because apt updated both).
note: Linux is a bigmem kernel and LinuxOLD is normal
So I:
1) booted with the distro "systemrescuecd"
2) reloaded the mirror (mdadm --examine --scan /dev/sda1 /dev/sdb1 >> /etc/mdadm.conf ; mdadm -A -s ; checked /proc/mdstat for device md0 and is present)
3) reloaded the lvm (vgchange lvm0 -a y)
4) mounted the root partition (mount /dev/lvm0/root /mnt/mydisk)
as here, all data is present and readable.
so i tried to chroot into the system to launch lilo:
chroot /mnt/mydisk /bin/bash
but lilo said me that cannot find "/dev/md0", so i cannot update mbr to the new kernel.
(no "md0" or "lvm0" device is present on /dev/)
here some output:
Code: Select all
# lvscan
ACTIVE /dev/lvm0/swap [952.00 MB] inherit
ACTIVE /dev/lvm0/root [145.14 GB] inherit
Code: Select all
# cat /etc/lilo.conf
large-memory
boot=/dev/md0
root=/dev/mapper/lvm0-root
raid-extra-boot=mbr-only
map=/boot/map
delay=20
default=Linux
image=/vmlinuz
label=Linux
read-only
append="quiet"
initrd=/initrd.img
image=/vmlinuz.old
label=LinuxOLD
read-only
optional
append="quiet"
initrd=/initrd.img.old
Code: Select all
# ls /boot
boot.0800
boot.0810
coffee.bmp
config-2.6.26-2-686
config-2.6.26-2-686-bigmem
debian.bmp
debianlilo.bmp
initrd.img-2.6.26-2-686
initrd.img-2.6.26-2-686.bak
initrd.img-2.6.26-2-686-bigmem
map
sarge.bmp
sid.bmp
System.map-2.6.26-2-686
System.map-2.6.26-2-686-bigmem
vmlinuz-2.6.26-2-686
vmlinuz-2.6.26-2-686-bigmem
i appreciate any suggest,
thanks