[opensuse] Failing cryptsetup and other problems in 13.1 recovery
Hello all, I installed openSUSE 13.1 on a GPT/UEFI system with Windows 8.1 and an encrypted openSUSE 13.1 LVM (/boot: /dev/sda9, LVM: /dev/sda10) and an encrypted /home/myusername filesystem (/dev/sda11, opened via pam_mount). After a while, I found in 'dmesg' logs, that a ext4 filesystem is corrupted. I wanted to clear this situation with the recovery stick and found some problems. I did the following: * booted with openSUSE 13.1 64Bit (openSUSE-13.1-DVD-x86_64.iso written on an USB stick) (I wonder, why the Grub screen from USB stick does not show the function key menus and so I have to use English keyboard layout) * I checked the /boot filesystem (/dev/sda9, ext4 => no errors) * Now I tried to open the encrypted LVM /dev/sda10 with cryptsetup I got this error: Rescue:~ # cryptsetup luksOpen -v /dev/sda10 rootlvm Enter passphrase for /dev/sda10: /dev/mapper/temporary-cryptsetup-1697: mknod for temporary-cryptsetup-1697 failed: Read-only file system Failed to open temporary keystore device. Command failed with code 5: Failed to open temporary keystore device. The root filesystem in recovery itself is not Read-only, but /dev/mapper is read-only. I found a simple way to create an writable /dev/mapper directory: Rescue:~ # mv /dev/mapper /dev/mapper.orig && mkdir /dev/mapper The downside of this simple way is, that "cryptsetup luksClose" does not work. The root filesystem had no errors. But instead the /home/myusername filesystem (/dev/sda11) was corrupted: Rescue:~ # cryptsetup luksOpen -v /dev/sda11 home Rescue:~ # fsck -f -C -t ext4 -D /dev/mapper/home (a lot of errors) This is my /etc/security/pam_mount.conf.xml:. I changed the original YaST entry <volume fstype="crypt" user="myusername" path="/home/myusername.img" fskeypath="/home/myusername.key" fskeycipher="aes-256-cbc" fskeyhash="md5" cipher="aes-cbc-essiv:sha256" options="loop" mountpoint="/home/myusername"/> to <volume fstype="crypt" user="myusername" path="/dev/disk/by-uuid/<some-uuid>" options="loop" mountpoint="/home/myusername"/> My questions: * Is the missing function key menu bug on some systems/displays when booting with the installation DVD/USB media known? I had this on different systems. Any work-arounds? * Why is /dev/mapper read-only in recovery and thus "cryptsetup luksOpen" does not work? * My setup with an encrypted /home/myusername and a custom pam_mount configuration is probably not officially supported, so problems here may not be seen as a bug. Does anyone has a tip for me how to do this setup correctly? Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2013-12-15 21:53, Bjoern Voigt wrote:
I did the following:
* booted with openSUSE 13.1 64Bit (openSUSE-13.1-DVD-x86_64.iso written on an USB stick) (I wonder, why the Grub screen from USB stick does not show the function key menus and so I have to use English keyboard layout)
Try instead:
<http://download.opensuse.org/distribution/13.1/iso/openSUSE-13.1-Rescue-CD-i686.iso>
Choosing different language and keyboard does not work from the boot menu (same language and keyboard does). But, if you "burn" it to a usb stick, after you start the desktop you can configure language and keyboard differently in yast, and the setting sticks across reboots. -- Cheers / Saludos, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar)
<http://download.opensuse.org/distribution/13.1/iso/openSUSE-13.1-Rescue-CD-i686.iso> Choosing different language and keyboard does not work from the boot
Try instead: menu (same language and keyboard does). But, if you "burn" it to a usb stick, after you start the desktop you can configure language and keyboard differently in yast, and the setting sticks across reboots. Thanks. I would prefer the openSUSE-13.1-Rescue-CD-x86_64.iso DVD. But what do you mean with "burn it to a usb stick, after you start
Carlos E. R. wrote: the desktop"? Next time, I would probably boot from the normal installation DVD/USB stick, choose "Installation" instead of "Rescue", configure language, mouse and keyboard in graphical YaST and then switch over with CRTL-Alt-F2 to an open root console to repair my system. I am still try to understand the other issues (failing cryptsetup in recovery, pam_mount's casual umount problems). Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/17/2013 01:23 AM, Bjoern Voigt wrote:
mean with "burn it to a usb stick, after you start the desktop"?
- maybe something like : dd if=openSUSE.iso of=sdc [or whatever your sees the usb stick as] ............. regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/17/2013 01:23 AM, Bjoern Voigt wrote:
mean with "burn it to a usb stick, after you start the desktop"?
- maybe something like :
dd if=openSUSE.iso of=sdc [or whatever your sees the usb stick as]
ellanios82 wrote: thanks. I use the SuSE Studio Image Writer (/usr/bin/imagewriter) for this task. But I thought, that Carlos found a way to save the user defined language and keyboard settings to the recovery USB stick. But it's probably easier to install a small openSUSE 13.1 system on an USB stick, configure it, install updates etc. instead of trying to 'hack' the boot menu or keyboard settings directly on an USB stick (created by openSUSE-13.1-DVD-x86_64.iso with Image Writer, "dd" or whatever). Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/18/2013 12:44 AM, Bjoern Voigt wrote: " But it's probably easier to install a small openSUSE 13.1 system on an USB stick, configure it, install updates etc. ~ " __________________ - seems to work well with Live oS 13.1 on USB stick : with spare space on USB stick one can add stuff as required ............ regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2013-12-17 at 23:44 +0100, Bjoern Voigt wrote:
ellanios82 wrote:
On 12/17/2013 01:23 AM, Bjoern Voigt wrote:
mean with "burn it to a usb stick, after you start the desktop"?
- maybe something like :
dd if=openSUSE.iso of=sdc [or whatever your sees the usb stick as]
Yes.
thanks. I use the SuSE Studio Image Writer (/usr/bin/imagewriter) for this task.
Whatever you are confortable with. :-)
But I thought, that Carlos found a way to save the user defined language and keyboard settings to the recovery USB stick.
It is automatic. The XFCE rescue image, when you have it on a USB stick, is writeable: Number Start (sector) End (sector) Size Code Name 1 4084 12275 4.0 MiB EF00 EFI System 2 12276 1232895 596.0 MiB 8300 Linux filesystem 3 1232896 3917824 1.3 GiB 8300 Linux filesystem The third partition is writeable, and your changes go there. You can even install things. The partition is automatically created the first time you boot the stick.
But it's probably easier to install a small openSUSE 13.1 system on an USB stick, configure it, install updates etc. instead of trying to 'hack' the boot menu or keyboard settings directly on an USB stick (created by openSUSE-13.1-DVD-x86_64.iso with Image Writer, "dd" or whatever).
It is no hack, and it is ready. Just dd or imagewrite it. No install, nothing. Just boot it! TRY! It is small, and contains the tools needed for repair. - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlKxpEUACgkQtTMYHG2NR9VZHACfZyLM/IWbfJrAmWh+Ezqhfm5N PJkAoImB77lQzlIIKjVEQtliVC4yY6nC =i6Qj -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2013-12-17 at 00:23 +0100, Bjoern Voigt wrote:
Carlos E. R. wrote:
<http://download.opensuse.org/distribution/13.1/iso/openSUSE-13.1-Rescue-CD-i686.iso> Choosing different language and keyboard does not work from the boot
Try instead: menu (same language and keyboard does). But, if you "burn" it to a usb stick, after you start the desktop you can configure language and keyboard differently in yast, and the setting sticks across reboots.
Thanks. I would prefer the openSUSE-13.1-Rescue-CD-x86_64.iso DVD.
About the same one, but 64 bits :-)
But what do you mean with "burn it to a usb stick, after you start the desktop"?
No, you removed part of the text and the meaining changes. step 1: "burn" it (using dd, imagewriter, etc). step 2: boot it, get to the desktop, configure language and keyboard.
Next time, I would probably boot from the normal installation DVD/USB stick, choose "Installation" instead of "Rescue", configure language, mouse and keyboard in graphical YaST and then switch over with CRTL-Alt-F2 to an open root console to repair my system.
The XFCE rescue image is much better and even faster to boot. Many more tools, full graphic environment. - -- Cheers, Carlos E. R. (from 12.3 x86_64 "Dartmouth" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlKxoIQACgkQtTMYHG2NR9V9ZACdEGZNCpsYEA/t3i+0cYtfu07G 7oIAn1lkUf8ErzyVK3LSwl4CNMp2HpBi =OwZ2 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
В Sun, 15 Dec 2013 21:53:11 +0100 Bjoern Voigt <bjoernv@arcor.de> пишет:
Hello all,
I installed openSUSE 13.1 on a GPT/UEFI ...
* Is the missing function key menu bug on some systems/displays when booting with the installation DVD/USB media known? I had this on different systems. Any work-arounds?
On UEFI systems grub2 is used for booting. Unfortunately it does not support the same GUI menus as were used with grub/syslinux. It does support keyboard layouts but I'm not sure whether it got sufficient testing. It may be possible to create text-based menus similar to what Super GRUB2 is using. Something for a feature request. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Andrey Borzenkov
-
Bjoern Voigt
-
Carlos E. R.
-
ellanios82