You are not logged in.

#1 2011-06-10 17:26:20

fourreux
Member
Registered: 2008-03-12
Posts: 56

[solved] kernel downgrade not working

Hello

I did a pacman -Syu today and there was a kernel upgrade, I didn't pay much antention to. Now I cannot boot into my system any more ...

My system is encrypted. It boots until the password. I enter it an it tells me that the /dev/mapper/vgroup-root is not found. "ERROR: unable to determine major/minor number of root device /dev/mapper/vgroup-root" and I'm being dropped into recovery shell ramfs.

What I tried so far:

I booted into Arch Live netinstall CD (2010.05) and did the following commands:

#cryptsetup luksOpen /dev/sda2 maintain
#vgchange -ay
#mount -t ext4 /dev/mapper/vgroup-root /mnt
#mount /dev/sda1 /mnt/boot
#mount -t proc none /mnt/proc
#mount -t sysfs none /mnt/sys
#mount --bind /dev /mnt/dev

#chroot /mnt
#grep -v rootfs /proc/mounts > /etc/mtab
#pacman - U /var/cache/pacman/pkg/kernel26-2.6.38.7-1.pkg.tar.gz
#exit

#reboot

But no success so far. Actually I'm not sure, if I'm doing this right.

Where can I seeif my changes take effect? After the grub menu the screen passes by very quickly and I got no chance to see wether the kernel was changed or not. I guess it would be displayed at that quick moment ...

Last edited by fourreux (2011-06-11 14:57:17)

Offline

#2 2011-06-10 17:31:31

smartass
Member
From: Prague, Czech Republic
Registered: 2011-02-25
Posts: 60

Re: [solved] kernel downgrade not working

just checking, don't be offended:

you didn't type a <space> between the '-' and 'U' in that command, and this from above was only a miss-type, right?

#pacman - U /var/cache/pacman/pkg/kernel26-2.6.38.7-1.pkg.tar.gz

KISS my Arch, Willy Gates!

Offline

#3 2011-06-10 17:35:29

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: [solved] kernel downgrade not working

Yeah, I did that right and it's just a typo. The command did all the things it normally does with SUCCESS.

Offline

#4 2011-06-10 19:24:54

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: [solved] kernel downgrade not working

I now tried to edit mkinitcpio.conf with no result ...

I followed the steps above and in the chroot environment removed "autodetect" from the HOOKS in /etc/mkinitcpio.conf. Then I reinstalled the 38.8-1 kernel via pacman -U ...

As mentioned: same result as before ... Do I need to do a "mkinitcpio -p kernel26"?

I might be on a wrong track here ...

Offline

#5 2011-06-11 11:51:21

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: [solved] kernel downgrade not working

Next try: downgrading udev from 171-2 to 171-1 ... didn't change anything.

pacman -U /var/cache/pacman/pkg/udev-171-1-i686.pkg.tar.xz'

More infos from what is done ... from the screen before it's dropped to ramfs:

[...]
:: Running Hook [keymap]
:: Loading Keymap...done
:: Running Hook [lvm2]
[...] device-mapper: uevent: version 1.0.3
[...] device-mapper: ioctl: 4.19.1-ioctl [...]
Activating logical volumes...
Couldn't find device with uuid XXXXXXXXX
Refusing activation of partial LV root. Use --partial override
Refusing activation of partial LV swap. Use --partial override
Refusing activation of partial LV home. Use --partial override
1 Logical volume(s) in volume group "vgroup" now active
:: Running Hook [encrypt]
Waiting 10 seconds for device /dev/sda2 ...
Root device ´/dev/mapper/vgroup-root´ doesn't exist. Attempting to create it.
ERROR: Unable to determine major/minor number of root device ?/dev/mapper/vgroup-root?.
You are being dropped to a recovery shell
[...]

Could it be that I need one of the following modules?!

The following modules are no longer unconditionally loaded:
pcspkr irtty-sir analog lp ppdev ide-generic
Add them to MODULES in rc.conf if you need them.

Last edited by fourreux (2011-06-11 12:03:10)

Offline

#6 2011-06-11 14:55:28

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: [solved] kernel downgrade not working

Well, here I am, back inside of Arch ... What exactly it was, that made the trick ... I cannot say. (Maybe someone else can)

I think that it was the following:

I switched the HOOKS order in mkinitcpio and put encrypt before lvm2, as suggested here. The thing though is, that it worked well before with the "wrong" order.

The next thing is, that I changed that order and nothing happened. Only the "mkinitcpio -p kernel26" seemed to make the difference. The "pacman -U kernel..." wasn't enough!

Maybe the removal of HOOK autodetect was important too ....

Well there's still a mess on my computer but this problem here is solved (hopefully permanently).

Offline

Board footer

Powered by FluxBB