ecryptfs confused by drive assignment change (sda->sdb)

Asked by jeltsch

Using Ubuntu 10.10 with a ecryptfs-encrypted home directory I needed to use an old IDE drive with my SATA only motherboard. Thus I plugged in a PCI IDE card and connected the drive. Everything was normal but ecryptfs could not unencrypt my home directory (neither automatically nor manually). It claimed that there is a prohblem with my setup. Via fdisk -l I figured out that the drive assignment of the main drive had changed from sda to sdb and that the IDE drive had received the sda position. Strangely the BIOS doesn't show the IDE drive at all. When unplugging the IDE drive, everything is normal upon reboot. How to go and make ecryptfs work again since I cannot figure out any way to switch the drive assignments?

Question information

Language:
English Edit question
Status:
Answered
For:
eCryptfs Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Serge Hallyn (serge-hallyn) said :
#1

Quoting jeltsch (<email address hidden>):
> New question #151591 on eCryptfs:
> https://answers.launchpad.net/ecryptfs/+question/151591
>
> Using Ubuntu 10.10 with a ecryptfs-encrypted home directory I needed to use an old IDE drive with my SATA only motherboard. Thus I plugged in a PCI IDE card and connected the drive. Everything was normal but ecryptfs could not unencrypt my home directory (neither automatically nor manually). It claimed that there is a prohblem with my setup. Via fdisk -l I figured out that the drive assignment of the main drive had changed from sda to sdb and that the IDE drive had received the sda position. Strangely the BIOS doesn't show the IDE drive at all. When unplugging the IDE drive, everything is normal upon reboot. How to go and make ecryptfs work again since I cannot figure out any way to switch the drive assignments?

ecryptfs mounts (stacks) an already mounted path. So I suspect your
problem is earlier - the partition containing your home directory is not
being mounted. Check /etc/fstab. If it is mounting /home from
/dev/sdaX, change thta to /dev /sdbX. Or better, switch to identifying
it by UUID.

-serge

Can you help with this problem?

Provide an answer of your own, or ask jeltsch for more information if necessary.

To post a message you must log in.