Results 1 to 6 of 6

Thread: WARNING "encrypt home folder" basically cuts your hard drive space in half.

  1. #1
    Join Date
    Aug 2009
    Beans
    296
    Distro
    Ubuntu 12.04 Precise Pangolin

    WARNING "encrypt home folder" basically cuts your hard drive space in half.

    I'm just learning about this, but I figure I'd start warning people because it wasn't clear to me. I'm a general computer user, not some computer science expert. I'm sure many other new users might not be experts in computer science.

    When you first install ubuntu you have an option to "encrypt home folder". Checking this will cause your home folder to grow at twice the normal rate. Again, this is common knowledge to some users, but not new general users, which ubuntu is meant for.

    I'm still trying to figure out how to undo the mistake with out reformatting the whole drive, but that's unlikely. I think reformatting might be the only real solution.

    I've asked for help and the response was:

    "LOL

    This is normal behavior for Ecryptfs."



    Then I got a link to the manual regarding installing and general use of this encryption system. This was from a high level user and he didn't even know how to deal with removing the encrypted/backup folder. I'm guessing removing it is not a really well known thing.

    (edit: that high level user commented again with more info. Basically there is no solution other than reformatting your computer)

    Again this is just an FYI to my fellow Ubuntu users. Stay safe! Take care!
    Last edited by Isaacgallegos; July 31st, 2011 at 02:54 AM.

  2. #2
    Join Date
    Jul 2011
    Beans
    201

    Lightbulb Re: WARNING "encrypt home folder" basically cuts your hard drive space in half.

    Quote Originally Posted by Isaacgallegos View Post
    I'm just learning about this, but I figure I'd start warning people because it wasn't clear to me. I'm a general computer user, not some computer science expert. I'm sure many other new users might not be experts in computer science.

    When you first install ubuntu you have an option to "encrypt home folder". Checking this will cause your home folder to grow at twice the normal rate. Again, this is common knowledge to some users, but not new general users, which ubuntu is meant for.
    <snipped>
    Thanks for posting this. I had no idea... I've got a solution, which I'll be putting into use later tonight on a couple of encrypted home folders. You see, there IS a way to deal with an encrypted home folder, other than wiping out your entire installation. If I understand the option I said "yes" to correctly, what's being encrypted is strictly the user profile's home directory. I think that doing the following will be a minimum-damage solution:

    1) Login as admin. Create a new user with the same security profile as the one which was encrypted. This time, not selecting encryption.
    2) Logout & log back in as the encrypted user. If you have a flash drive, copy all the information you want to save onto the flash drive. The goal here is to get it out of the system temporarily for safekeeping. Floppies or Ubuntu One would work, too.
    3) Logout & log back in as admin. Wipe out the encrypted user profile, selecting the option to delete all files.
    4) Logout & log back in as the new unencrypted user profile. Copy the data you'd set aside into the new user profile's home directory.

    Tah-dah! Done.
    .
    "That's my motto - a place for everything, and everything all over the place!"
    -- From an old comic I once saw.--

  3. #3
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: WARNING "encrypt home folder" basically cuts your hard drive space in half.

    Actually I'm absolutely sure you've misundrestood the situation, and the developer's answer as well.

    Since directories encrypted with encryptfs are mounted as virtual filesystems, many disk space monitoring tools will show the space of both the actual, encrypted files, and the mounted virtual filesystem. However only the encrypted files actually exist on your hard drive and take space there.

    The developer more than likely just tried to tell you that it's normal that the used disc space is reported twice. Not that it would actually use twice the disc space.

    Instead of using any graphical tool, like the Disk Usage Analyzer (which definitely has a bug with virtual file systems), try running "df -h" in a terminal to check your used & available disc space.
    Last edited by mcduck; August 13th, 2011 at 08:00 AM.

  4. #4
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: WARNING "encrypt home folder" basically cuts your hard drive space in half.

    Quote Originally Posted by mcduck View Post
    Actually I'm absolutely sure you've misundrestood the situation, and the developer's answer as well.

    Since directories encrypted with encryptfs are mounted as virtual filesystems, many disk space monitoring tools will show the space of both the actual, encrypted files, and the mounted virtual filesystem. However only the encrypted files actually exist on your hard drive and take space there.
    I'd agree with this assessment; there are a lot of threads where people get confused about reported disk space because they've got other disks and other partitions mounted. These add to the reported capacity and reported use; however, people tend not to notice the higher reported capacity. Everything in the filesystem is being counted - mounted disks included, because they are mounted inside the filesystem.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  5. #5
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: WARNING "encrypt home folder" basically cuts your hard drive space in half.

    encrypted files might have a bit larger capacity (due to the encryption) but this doesn't mean they are twice as big. so as mentioned, it's just the way they are reported to the system.
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Full disk backup (newer kernel -> suitable for newer PC): Clonezilla
    User friendly full disk backup: Rescuezilla

  6. #6
    Join Date
    Jul 2011
    Beans
    201

    Re: WARNING "encrypt home folder" basically cuts your hard drive space in half.

    Quote Originally Posted by mcduck View Post
    Actually I'm absolutely sure you've misundrestood the situation, and the developer's answer as well.

    Since directories encrypted with encryptfs are mounted as virtual filesystems, many disk space monitoring tools will show the space of both the actual, encrypted files, and the mounted virtual filesystem. However only the encrypted files actually exist on your hard drive and take space there.

    The developer more than likely just tried to tell you that it's normal that the used disc space is reported twice. Not that it would actually use twice the disc space.

    Instead of using any graphical tool, like the Disk Usage Analyzer (which definitely has a bug with virtual file systems), try running "df -h" in a terminal to check your used & available disc space.
    Ahhh... I see. Thanks for clarifying this. Luckily, I didn't get around to applying my "solution" on any encryted profiles last night. Now, I can see that it's not necessary. So, you're saying that
    Code:
    df -h
    will ignore the virtual file system?
    .
    "That's my motto - a place for everything, and everything all over the place!"
    -- From an old comic I once saw.--

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •