[opensuse] OpenSUSE 12.1 not mounting encrypted /home
I've just installed openSUSE 12.1 on my Dell Inspiron 1525 laptop, alongside an existing 11.4 installation. In other words, each system has its own / (root) partition, but they should both mount the same /home partition, which is encrypted. 12.1 is on /dev/sda3, 11.4 is on /dev/sda6, both formatted with ext4. 11.4 asks me to enter the password for the encrypted partition halfway through the boot process, and is then able to mount it under /home. 12.1 never asks for the password, until the system is fully loaded and I am logged in. Then, during the session, a notifier message pops up saying that device id something_or_other requires a password. The 12.1 grub menu allows me to choose the 11.4 system to boot, but selecting this option takes me to the 11.4 grub menu first, from where I select the system I want to boot, eg 11.4 desktop, 11.4 failsafe or Windows, but it doesn't know about 12.1. What do I need to change to access my encrypted partition in 12.1 and mount it under /home? BTW, I've checked the 12.1 /etc/fstab and the /dev/mapper entry for the encrypted partition has automagically changed the 'noauto' option to 'nofail', as suggested in the Release notes. Bob -- Bob Williams System: Linux 2.6.37.6-0.9-desktop Distro: openSUSE 11.4 (x86_64) with KDE Development Platform: 4.7.4 (4.7.4) Uptime: 06:00am up 2 days 17:31, 3 users, load average: 0.02, 0.10, 0.40 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 14/01/12 15:12, Bob Williams wrote:
I've just installed openSUSE 12.1 on my Dell Inspiron 1525 laptop, alongside an existing 11.4 installation. In other words, each system has its own / (root) partition, but they should both mount the same /home partition, which is encrypted. 12.1 is on /dev/sda3, 11.4 is on /dev/sda6, both formatted with ext4.
11.4 asks me to enter the password for the encrypted partition halfway through the boot process, and is then able to mount it under /home.
12.1 never asks for the password, until the system is fully loaded and I am logged in. Then, during the session, a notifier message pops up saying that device id something_or_other requires a password.
The 12.1 grub menu allows me to choose the 11.4 system to boot, but selecting this option takes me to the 11.4 grub menu first, from where I select the system I want to boot, eg 11.4 desktop, 11.4 failsafe or Windows, but it doesn't know about 12.1.
What do I need to change to access my encrypted partition in 12.1 and mount it under /home?
BTW, I've checked the 12.1 /etc/fstab and the /dev/mapper entry for the encrypted partition has automagically changed the 'noauto' option to 'nofail', as suggested in the Release notes.
Bob
I've made the relevant entries in /etc/crypttab and /etc/fstab match in both the 12.1 system and the 11.4 system. I can now login to the 12.1 system, and the encrypted partition is now mounted under /home, BUT I have to guess when to type in the decryption password as the screen goes blank during the 12.1 boot sequence, between selecting it from the grub boot menu and the user login prompt appearing. So, the question now is, how can I make the boot sequence (dmesg output) visible on the screen, so that I know when it is asking for the password? Bob -- Bob Williams System: Linux 2.6.37.6-0.9-desktop Distro: openSUSE 11.4 (x86_64) with KDE Development Platform: 4.7.4 (4.7.4) Uptime: 06:00am up 3 days 17:31, 4 users, load average: 0.80, 0.61, 0.60 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 15/01/12 15:10, Bob Williams wrote:
On 14/01/12 15:12, Bob Williams wrote:
[snip]
What do I need to change to access my encrypted partition in 12.1 and mount it under /home?
[snip]
Bob
I've made the relevant entries in /etc/crypttab and /etc/fstab match in both the 12.1 system and the 11.4 system.
I can now login to the 12.1 system, and the encrypted partition is now mounted under /home, BUT I have to guess when to type in the decryption password as the screen goes blank during the 12.1 boot sequence, between selecting it from the grub boot menu and the user login prompt appearing.
So, the question now is, how can I make the boot sequence (dmesg output) visible on the screen, so that I know when it is asking for the password?
Bob
This page http://www.freedesktop.org/wiki/Software/systemd/PasswordAgents seems to be referring to my problem, but I don't understand it :( Bob -- Bob Williams Sent from my laptop -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/15/2012 10:55 AM, Bob Williams pecked at the keyboard and wrote:
On 15/01/12 15:10, Bob Williams wrote:
On 14/01/12 15:12, Bob Williams wrote:
[snip]
What do I need to change to access my encrypted partition in 12.1 and mount it under /home?
[snip]
Bob
I've made the relevant entries in /etc/crypttab and /etc/fstab match in both the 12.1 system and the 11.4 system.
I can now login to the 12.1 system, and the encrypted partition is now mounted under /home, BUT I have to guess when to type in the decryption password as the screen goes blank during the 12.1 boot sequence, between selecting it from the grub boot menu and the user login prompt appearing.
So, the question now is, how can I make the boot sequence (dmesg output) visible on the screen, so that I know when it is asking for the password?
Bob
Simply hit escape after making your selection from the boot menu. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/15/2012 12:39 PM, Ken Schneider - openSUSE pecked at the keyboard and wrote:
On 01/15/2012 10:55 AM, Bob Williams pecked at the keyboard and wrote:
On 15/01/12 15:10, Bob Williams wrote:
On 14/01/12 15:12, Bob Williams wrote:
[snip]
What do I need to change to access my encrypted partition in 12.1 and mount it under /home?
[snip]
Bob
I've made the relevant entries in /etc/crypttab and /etc/fstab match in both the 12.1 system and the 11.4 system.
I can now login to the 12.1 system, and the encrypted partition is now mounted under /home, BUT I have to guess when to type in the decryption password as the screen goes blank during the 12.1 boot sequence, between selecting it from the grub boot menu and the user login prompt appearing.
So, the question now is, how can I make the boot sequence (dmesg output) visible on the screen, so that I know when it is asking for the password?
Bob
Simply hit escape after making your selection from the boot menu.
Or for a permanent change edit /boot/grub/menu.lst and remove the splash=silent option or change it to splash=verbose and put it after the showopts parameter. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 15/01/12 17:45, Ken Schneider - openSUSE wrote:
On 01/15/2012 12:39 PM, Ken Schneider - openSUSE pecked at the keyboard and wrote:
On 01/15/2012 10:55 AM, Bob Williams pecked at the keyboard and wrote:
On 15/01/12 15:10, Bob Williams wrote:
On 14/01/12 15:12, Bob Williams wrote:
[snip]
What do I need to change to access my encrypted partition in 12.1 and mount it under /home?
[snip]
Bob
I've made the relevant entries in /etc/crypttab and /etc/fstab match in both the 12.1 system and the 11.4 system.
I can now login to the 12.1 system, and the encrypted partition is now mounted under /home, BUT I have to guess when to type in the decryption password as the screen goes blank during the 12.1 boot sequence, between selecting it from the grub boot menu and the user login prompt appearing.
So, the question now is, how can I make the boot sequence (dmesg output) visible on the screen, so that I know when it is asking for the password?
Bob
Simply hit escape after making your selection from the boot menu.
Sorry, Ken, I should have said that I'd already tried the escape route ;) and it hadn't worked.
Or for a permanent change edit /boot/grub/menu.lst and remove the splash=silent option or change it to splash=verbose and put it after the showopts parameter.
Unfortunately, this didn't work either, but thanks for the suggestion. When I say the screen goes black, it's actually still illuminated/backlit, but with a black colour, IYSWIM. It's similar to the appearance when the screen switches to power saving mode. After selecting the system to boot, I see the first few lines of the boot messages, then it goes black (as above), then I may see the green openSUSE screen with the wavy line, then back to black again. Bob -- Bob Williams System: Linux 2.6.37.6-0.9-desktop Distro: openSUSE 11.4 (x86_64) with KDE Development Platform: 4.7.4 (4.7.4) Uptime: 06:00am up 3 days 17:31, 4 users, load average: 0.80, 0.61, 0.60 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Samstag, 14. Januar 2012 schrieb Bob Williams:
I've just installed openSUSE 12.1 on my Dell Inspiron 1525 laptop, alongside an existing 11.4 installation. In other words, each system has its own / (root) partition, but they should both mount the same /home partition, which is encrypted. 12.1 is on /dev/sda3, 11.4 is on /dev/sda6, both formatted with ext4. [...]
For testing purposes I use a similar setup. However, I did not try to use my common encrypted home for both installations, yet. But I successfully updated several times this way from older versions. So, I fear I will have the same problems like you in the near future!
The 12.1 grub menu allows me to choose the 11.4 system to boot, but selecting this option takes me to the 11.4 grub menu first, from where I select the system I want to boot, eg 11.4 desktop, 11.4 failsafe or Windows, but it doesn't know about 12.1.
I think this is another story: grub is installed to the root partition and this partition is marked as active. The generic MBR code just boots the active partition, that is, sda3 with 12.1. The 12.1 installer detected your 11.4 installation and added a grub menu entry that simply boots from sda6 the same way the old MBR did when sda6 with 11.4 was marked as active. If you want to go back to 11.4 without having to go through the 12.1 grub, you have to mark sda6 active again. However, before doing that, please make sure that my assumptions hold true and you can recover to the current setup. That is, you remember which partition is active now and you know how to boot from a CD or USB and change back the active partition from there.
What do I need to change to access my encrypted partition in 12.1 and mount it under /home? [...]
I strongly discourage you from using your home with 11.4 after you have used it with 12.1! Make an encrypted backup of your 11.4 home before you use it with 12.1 in case you want to go back. Gruß Jan -- Of all the things I've lost, I miss my mind the most. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Sun, 15 Jan 2012 20:49:17 +0100
Jan Ritzerfeld
Am Samstag, 14. Januar 2012 schrieb Bob Williams:
I've just installed openSUSE 12.1 on my Dell Inspiron 1525 laptop, alongside an existing 11.4 installation. In other words, each system has its own / (root) partition, but they should both mount the same /home partition, which is encrypted. 12.1 is on /dev/sda3, 11.4 is on /dev/sda6, both formatted with ext4. [...]
For testing purposes I use a similar setup. However, I did not try to use my common encrypted home for both installations, yet. But I successfully updated several times this way from older versions. So, I fear I will have the same problems like you in the near future!
The 12.1 grub menu allows me to choose the 11.4 system to boot, but selecting this option takes me to the 11.4 grub menu first, from where I select the system I want to boot, eg 11.4 desktop, 11.4 failsafe or Windows, but it doesn't know about 12.1.
I think this is another story: grub is installed to the root partition and this partition is marked as active. The generic MBR code just boots the active partition, that is, sda3 with 12.1. The 12.1 installer detected your 11.4 installation and added a grub menu entry that simply boots from sda6 the same way the old MBR did when sda6 with 11.4 was marked as active. If you want to go back to 11.4 without having to go through the 12.1 grub, you have to mark sda6 active again. However, before doing that, please make sure that my assumptions hold true and you can recover to the current setup. That is, you remember which partition is active now and you know how to boot from a CD or USB and change back the active partition from there.
What do I need to change to access my encrypted partition in 12.1 and mount it under /home? [...]
I strongly discourage you from using your home with 11.4 after you have used it with 12.1! Make an encrypted backup of your 11.4 home before you use it with 12.1 in case you want to go back.
Gruß Jan
Hi Bob; One way to eliminate the problems with a common /home is not to have them common but rather to have a separate partition that only stores common DATA, not configurations and the like. You could put folders like Documents, Music, Mail, etc. in a partition called say /common with symlinks from each separate /home to those folders. One of the most obvious problems with a common /home is that different distros (or even different versions of a distro) may well have different versions pf programs with differences in their configuration files. When run in different distros or versions the results may be unexpected or even catastrophic. Tom -- Tom Taylor - retired penguin openSUSE 11.4 x86_64 openSUSE 12.1 KDE 4.6.00, FF 4.0 KDE 4.7.2, FF 8.0 claws-mail 3.7.9 registered linux user 263467 linxt-At-comcast-DoT-net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 16/01/12 02:35, Thomas Taylor wrote:
On Sun, 15 Jan 2012 20:49:17 +0100 Jan Ritzerfeld
wrote: Am Samstag, 14. Januar 2012 schrieb Bob Williams:
I've just installed openSUSE 12.1 on my Dell Inspiron 1525 laptop, alongside an existing 11.4 installation. In other words, each system has its own / (root) partition, but they should both mount the same /home partition, which is encrypted. 12.1 is on /dev/sda3, 11.4 is on /dev/sda6, both formatted with ext4. [...]
For testing purposes I use a similar setup. However, I did not try to use my common encrypted home for both installations, yet. But I successfully updated several times this way from older versions. So, I fear I will have the same problems like you in the near future!
The 12.1 grub menu allows me to choose the 11.4 system to boot, but selecting this option takes me to the 11.4 grub menu first, from where I select the system I want to boot, eg 11.4 desktop, 11.4 failsafe or Windows, but it doesn't know about 12.1.
I think this is another story: grub is installed to the root partition and this partition is marked as active. The generic MBR code just boots the active partition, that is, sda3 with 12.1. The 12.1 installer detected your 11.4 installation and added a grub menu entry that simply boots from sda6 the same way the old MBR did when sda6 with 11.4 was marked as active. If you want to go back to 11.4 without having to go through the 12.1 grub, you have to mark sda6 active again. However, before doing that, please make sure that my assumptions hold true and you can recover to the current setup. That is, you remember which partition is active now and you know how to boot from a CD or USB and change back the active partition from there.
What do I need to change to access my encrypted partition in 12.1 and mount it under /home? [...]
I strongly discourage you from using your home with 11.4 after you have used it with 12.1! Make an encrypted backup of your 11.4 home before you use it with 12.1 in case you want to go back.
Gruß Jan
Hi Bob; One way to eliminate the problems with a common /home is not to have them common but rather to have a separate partition that only stores common DATA, not configurations and the like. You could put folders like Documents, Music, Mail, etc. in a partition called say /common with symlinks from each separate /home to those folders.
One of the most obvious problems with a common /home is that different distros (or even different versions of a distro) may well have different versions pf programs with differences in their configuration files. When run in different distros or versions the results may be unexpected or even catastrophic.
Tom
Many thanks, Jan and Tom, for pointing this out. I will probably not use 11.4 any more on this machine. The idea was to have it available in case the 12.1 installation failed. I see that this sort of strategy requires careful planning. Bob -- Bob Williams System: Linux 2.6.37.6-0.9-desktop Distro: openSUSE 11.4 (x86_64) with KDE Development Platform: 4.7.4 (4.7.4) Uptime: 06:00am up 4 days 17:31, 4 users, load average: 0.19, 0.21, 0.30 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Bob Williams
-
Jan Ritzerfeld
-
Ken Schneider - openSUSE
-
Thomas Taylor