You are completely right: I seem to encounter a completely different problem 
than I expected:
My system setup is the following:
 - /dev/sda is a hard disk (2 partitions) comtaining my encrypted home folder 
and my swap partition.
 - /dev/sdb is a small SSD containing my system (/dev/sdb1) and a folder I want 
to keep backups in just for the case my hard disk breaks.

The memory stick I tried to verify the problem with before I reported
this bug seems to be severely broken - and it clearly is a hardware
fault. Did try your commands with one of my girlfriend's memory stick
and the stick was mounted. Then I unmounted the stick, re-inserted it to
the computer and after typing in the passphrase it worked, either. So I
formatted /dev/sdb2 using luksformat - and got the following results:

udisksctl unlock -b /dev/sdb2
Passphrase: 
Error unlocking /dev/sdb2: 
GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorized: Not authorized to 
perform operation
gunter@lore:~$ sudo udisksctl unlock -b /dev/sdb2
Passphrase: 
Unlocked /dev/sdb2 as /dev/dm-1.

Having your commands as a starting point debugging the problem further
was easy:

1.) The system claims to want a passphrase twice but for mounting my hard disk 
partition it needs both my login passwort and the partition's passphrase. When 
I insert the stick only the passphrase is needed.
2.) After partitioning the stick and formatting its second partition with an 
ext4 filesystem using luksformat (the first partition is unencrypted ext4)  I 
still don't need my password to mount the stick. So the problem doesn't seem to 
be that I formatted the second partition using luksformat.

This means my problem was that for mounting a encrypted hard disk
partition my password is needed as well as the luks passphrase whereas
for a stick only the latter is needed. A week before i wrote the bug
report this wasn't the case.



 not only asking me for the passphrase of the device

** Summary changed:

- Cannot mount encrypted devices
+ Mounting encrypted hard disk partitions now asks for the root password.

** Description changed:

  The default mount point for memory sticks, sd cards etc. has changed
  from /media/<filesystemlabel> to
  /run/<username>/media/<filesystemlabel>. At the same time my encrypted
- media stopped being mounted. I still get prompted for the password,
- though. Once by the gnome-shell and once by a dialog. Did try to format
- a device using luksformat to double-check that both gnome-keyring and I
- don't suffer a password-specific amnesia but even with a known-good
- password I get the same result.
+ hard disk partition (formatted with luksformat) started asking for my
+ login password in order to be mounted.
  
- Encrypted home directories are not affected as should be encrypted
- system partitions.
+ If this is the desired behavior from now on please feel free to close
+ the bug as "invalid".
  
  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: gvfs-bin 1.13.0-0ubuntu3
  ProcVersionSignature: Ubuntu 3.4.0-3.8-generic 3.4.0
  Uname: Linux 3.4.0-3-generic x86_64
  ApportVersion: 2.1.1-0ubuntu1
  Architecture: amd64
  Date: Thu May 31 23:28:22 2012
  EcryptfsInUse: Yes
  SourcePackage: gvfs
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1007149

Title:
  Mounting encrypted hard disk partitions now asks for the root
  password.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1007149/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to