Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't unmount eCryptfs folder on Ubuntu Server 10.04

Status
Not open for further replies.

NewtownGuy

Technical User
Jul 27, 2007
146
US
I installed ecryptfs and encrypted /root/name1/name2. Somehow, I have multiple instances of it and can't unmount any of them. Also, I can't log in as root anymore (yes, I setup a root login.)

When I execute sudo umount /root/name1/name2, the system hangs up. Earlier, it said I had multiple instances of the file system.

There is nothing in /etc/fstab about ecryptfs.

Here is /etc/mtab (cleansed):

/dev/sda1 / ext3 rw,relatime,errors=remount-ro 0 0
proc /proc proc rw 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
none /dev/shm tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
/root/.Private /root/Private ecryptfs ecryptfs_sig=7ba7cd24acdf5bec,ecryptfs_fnek_sig=a35dd75849479788,ecryptfs_cipher=aes,ecryptfs_key_bytes=16 0 0
/root/Personal /root/Personal ecryptfs rw,ecryptfs_sig=efe28d17b9935d45,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs 0 0
/root/ms_encrypted/rep /root/name1/name2 ecryptfs rw,ecryptfs_sig=4a2f23d7f3af633e,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs 0 0
/root/name1/name2 /root/name1/name2 rw,ecryptfs_sig=4a2f23d7f3af633e,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs 0 0
/root/ms_encrypted/rep /root/name1/name2 ecryptfs rw,ecryptfs_sig=4a2f23d7f3af633e,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs 0 0

How do I fix this ?

By the way, I want the mounting of the ecryptfs file system to persist after I log out. However, I want to mount it via a remote script after the system boots.

Thank you in advance.

--



 
to: Noway2

Thank you but it did not help. The link addresses encryption problems of a removable USB drive.

Something on my system is mounting too many instances of eCryptfs, and I think that is the root of the problem. I did not add any scripts to mount it. I say "root" with a double-meaning because I was logged in as root when I set up the eCryptfs file systems, so whenever I log in as root, the file system gets set up, and if it persists after I log out, then EVERY time I log in I will get another one even though it is already active.

If this is true, how do I disable it ?

--

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top