Ok guys rescue me again! Had a hd failiure and it turned out that lilo and the boot initrd.gz was on the drive that failed.
On the remaining drive is all my work (the one that failed was the backup) but could not boot it so used the install disk to mount all the partiions, cryptsetup luksOpen, vgscan --mknodes, vgchange -ay and then mount (I have an unencrypted boot partition on this drive too). Then I chroot into the mounted system and made a new initrd.gz with the command
mkinitrd -c -k 126.96.36.199-smp -m ext2 -f ext2 -r /dev/slack13-group/root -C /dev/sda2 -L
sda1 is the unencrypted boot partition.
The boot partition is ext2.
The root parition is reiserfs.
So not sure if my mkinitrd command is correct. Do I need resierfs in there somewhere?
Then did the usual edits to lilo.conf and issue lilo command to install in mbr.
But it will not boot. I get
/boot/initrd.gz: Loading kernel modules from initrd image.
Unlocking LUKS encrypted device /dev/sda2 as luks mapped device 'lukssda2'.
Enter passphrase for /dev/sda2:
5 logical volume(s) in volume group "slack13-group" now active.
mount: mounting /dev/slack13-group/root on /mnt failed: Invalid arguement
ERROR: No /sbin/init found on rootdev (or not mounted) Trouble ahead.
You can try to fix it. Type exit when things are done.
So what did I miss or do wrong?
Any help as always very much appreciated, BashTin.
PS: lilo.conf looks like
boot = /dev/sda
image = /boot/vmlinuz-generic-smp-188.8.131.52-smp
initrd = /boot/initrd.gz
root = /dev/slack13-group/root
label = Slack-Crypt