Hello,
I have notebook with opensuse 12.1, which is installed on encrypted LVM which consists of two parts - / (root) and /home. /boot is installed on not encrypted and not-LVM partition, format ext4. also I had dead windows installation, and I wanted to reinstall it, for playing some games.
my old partitioning:
/dev/sda1 - hidden “system restore” partition (default for almost all notebooks with preinstalled windows), 20 GB
/dev/sda2 - old windows partition, 40 GB
/dev/sda3 - boot partition, ~250 MB
/dev/sda*(all other partitions) - LVM, 400 GB ("/" 150 GB, “/home” 250 GB)
my actions:
-
under opensuse, in the Yast menu, I’ve deleted old windows (/dev/sda2) and system restore (/dev/sda1) partitions and created single partition for new windows installation - 60 GB, formatting as FAT32 and choosing “do not mount” option.
-
I’ve installed windows (thus needed to reinstall GRUB because windows has killed it with own bootloader), selecting that 60 GB partition in the installation menu and formatting it to NTFS.
-
inserted opensuse 12.1 installation disk in order to repair bootloader, rebooted the notebook
-
booted from the disk, chose installation, but haven’t found “repair system” in the installation menu (AFAIR it was there in early 11.x’s), only new install and update. So i’ve selected new installation, but after some preparations, installer showed me an error in the boot loader section:
“Because of the partitioning, the boot loader cannot be installed properly”. -
having googled that error I’ve found such solution - boot into the rescue mode and reinstall grub with:
grub
find /boot/vmlinuz (this showed me the partition named hd0,1)
setup (hd0,1)
reboot
5.1. so I’ve reinstalled grub with these commands and rebooted the notebook.
-
after rebooting, grub said something about “could not load (hd0,2)/message” and showed the text-mode menu, with all my old sections. But all these sections were unbootable - grub was returning an error like “filesystem type unknown, partition type 0x8e …” and something about being unable to boot partition (hd0,2). Then i’ve understood that by merging old system restore (hd0,0 in grub’s numeration) and windows (hd0,1) partitions they became “hd0,0” and old /boot became “hd0,1”, not “hd0,2”. So i’ve took good old Hiren’s BootCD and rebooted the notebook, then booting up from this LiveCD.
-
i’ve selected RIPLinux in Hiren’s menu, then under RIPLinux i’ve mounted my old /boot and edited /boot/grub/menu.lst, changing all hd0.x’s to one partition less:
default 0
timeout 8
# old # gfxmenu (hd0,2)/message
gfxmenu (hd0,1)/message
title Desktop -- openSUSE 12.1 - 3.1.0-1.2
# old # root (hd0,2)
root (hd0,1)
kernel /vmlinuz-3.1.0-1.2-desktop root=/dev/zuzelvm/root splash=verbose showopts vga=0x314
initrd /initrd-3.1.0-1.2-desktop
title Failsafe -- openSUSE 12.1 - 3.1.0-1.2
# old # root (hd0,2)
root (hd0,1)
kernel /vmlinuz-3.1.0-1.2-desktop root=/dev/zuzelvm/root showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x314
initrd /initrd-3.1.0-1.2-desktop
title Windows
# old # rootnoverify (hd0,1)
rootnoverify (hd0,0)
chainloader +1
- then I rebooted and at last grub showed me the graphical-mode menu, but it appeared that the only working section is windows’ chainloader.
when I’m trying to boot both default and failsafe opensuse the boot process goes into infinite loop with messages like this:
waiting for all devices to appear… (cant remember exact phrase)
No volume group found.
Volume group “zuzelvm” not found.
No volume group found.
Volume group “zuzelvm” not found.
No volume group found.
Volume group “zuzelvm” not found.
No volume group found.
Volume group “zuzelvm” not found.
No volume group found.
Volume group “zuzelvm” not found.
No volume group found.
Volume group “zuzelvm” not found.
(infinite loop)
and the only possible way to stop that madness is Ctrl+Alt+SysRq+REISUB.
I’ve googled a bit and found the possible way to fix that problem - boot the system and run:
/sbin/pvscan
/sbin/vgscan -v (to find LVM)
/sbin/vgchange -ay -v (to activate LVM)
/sbin/vgdisplay -v (to find path of LVM)
/sbin/lvchange -ay -v /dev/path/to/LVM
/sbin/mount /dev/path/to/LVM /where/to/mount
but the problem is - I have root filesystem ("/") inside the LVM (note that it is also encrypted). I’ve tried to boot opensuse in the single-mode(I mean with “init=/bin/sh” parameter), but I’m still getting this error about “Volume group “zuzelvm” not found.”
As i think, all partitions have got one less number (i.e. /dev/sda3 became /dev/sda2, /dev/sda5 became /dev/sda4, etc), that’s why the LVM cannot initialize.
So how could I restore my LVM?
I really hope for your help, because now I have absolute unusable system (I mean windows, lol) and one month old backups (I did a lot of work over that month so I don’t want to reinstall opensuse losing all data changes).
Thanks in advance.
Kai
//side questions: how could I format partitions to NTFS under opensuse, and why knotify4 sometimes eats 100% cpu?