Does Hibernate Work on a dm-crypt/LUKS Encrypted Drive?

The world may never know.

Be careful when waking something out of hibernationImage courtesy of vectorolie at FreeDigitalPhotos.net

Be careful when waking something out of hibernation
Image courtesy of vectorolie at FreeDigitalPhotos.net

I previously related on how to install Arch in a VM using VirtualBox and LUKS encryption.  However, I had not yet attempted hibernation mode (“suspend to disk”).  So, I finally had a few moments, and I headed over to the Arch Wiki article on “dm-crypt/Swap encryption”, particularly the section on “LVM on LUKS” and gave it a go.

I noticed that one thing I had not done was put “resume” into the HOOKS section of mkinitcpio.conf, so I did that and reran the mkinitcpio command.  I then rebooted for full effect, opened some windows and did a hibernate.

Upon opening it back up, VirtualBox (not Arch) gave a weird error message that it had shut down the VM.  Basically, I could abort or debug, but of course I have no idea what I would be trying to debug.

So, the question is: Does hibernate even work under VirtualBox?  I looked around without a satisfactory answer, but I came away with the conclusion that since many others seem to be having the problem, it probably isn’t supported.

Bummer.

OK, but these instructions in the Arch Wiki were really for GRUB, and I am using GRUB on my host Ubuntu machine, so what can go wrong?

I amuse myself sometimes.

I changed the GRUB line as per the wiki, and then I attempted to edit mkinitcpio.conf file, but it did not exist.  In fact, it appears that Ubuntu does not use mkinitcpio at all.  OK, but if I understand correctly, it does not really need it, so I updated grub, rebooted and ran pm-hibernate to give it a test.

Not enough memory.  Arrrggghhh!  It appears that the default Ubuntu configuration really does not give it enough memory for something like this.

Which, when you think of it, is quite silly, but especially so on a laptop.  After all, the major reason for encryption for most, IMO, will be if the laptop is lost or stolen (something much easier to do than it is with a desktop) and prevent ID thieves from gathering a lot of personal data.

So, I don’t know if hibernate works on encrypted drives, and it isn’t likely anyone doing a default Ubuntu install will either.  This, IMO, gives another good reason to move away from Ubuntu, but it is still a little discouraging since many people who will use Ubuntu won’t necessarily want to move to something like Arch to fix such a problem.

It isn’t just Ubuntu, either, when you think of it.  When will particiularly laptop and tablet manufacturers start thinking more about securing personal data?  Recent revelations about how much Apple’s iPhones leak out even are not comforting.  We need to press these OS and device makers to take this sort of thing more seriously.

I haven’t given up on this yet, but it is not without some interesting blockages.

Dropbox Tries on Transparency in Government Requests For Information

Sledge_Hammer_trust_me_i_know_what_im_doing.png

According to the Older But Geeky blog, “Dropbox Received 268 User Data Request From Law Enforcement, Fewer From NSA“.  It seems that most of the requested information is metadata and not actual documents, BTW.  Apparently, Dropbox is making a go of becoming more transparent, at least as much as current law allows it.

Even making that statement makes me wonder where our country is going.  Not only are we being disallowed due process, but even the process itself is secretive and more appropriate for dicatorships rather than a democracy.

Of course, my direct beef with them is not sharing data with law enforcement but the fact that they can see my data at all.  It used to be that their user agreement said they “cannot” see your data, but that was later clarified that they are not “allowed” to see your data.  I’m not sure I would have so eagerly signed up with them knowing that for the purposes I signed up with them, which originally included some legal documents and financial receipts.

 

Geek Friday: Installing CentOS

centos-logo.jpg

I briefly mentioned that I was setting up a VM of Arch to do some testing, but it turns out that it isn’t all that representative of the final environment I want to test.  I was trying to kill two birds with one stone, but it looks like only one of the birds will actually be hit with doing it that way.  So, I found myself trying to install CentOS (in a VM, of course).

Why iWon’t Wear iWear Including the Apple (i)Watch

There is beauty, and then there is hype.

White_AppleWatch_with_Screen.png
Quick mockup based upon Apple Keynote 10 Sept 2014
By Justin14 under CCA-SA

First of all, I want to be clear that I have an iPhone.  I like the iPad.  I get it that the Apple ecosystem has a lot of advantages, and that is highlighted by the mess that Microsoft has made of the Wndows Store and their grudging promise to clean up their act.  I even get it that the iPhone is overall a thing of elegance and beauty.  Having said that, I cannot see wearing the Apple Watch (interestingly, not “iWatch”, thus breaking with tradition).

Project Management for Non-Project Managers

"Website Planning"Image courtesy of tiramisustudio at FreeDigitalPhotos.net

“Website Planning”
Image courtesy of tiramisustudio at FreeDigitalPhotos.net

I’ve never met anyone who graduated college with the intention of becoming a project manager. Usually, someone will start out as an engineer or line worker and work their way up through project or technical lead to become a project manager. It usually comes down to one day the person is handed their very first project to manage. What does that person do now?

Geek Friday: Installing Arch Linux in a VirtualBox VM With LVM Containers on LUKS Encryption

Simplified diagram of running LVM on dm-crypt

Simplified diagram of running LVM on dm-crypt

This was like drinking from a firehose.  I’m thinking of moving on from Ubuntu, but I really want encryption that, if possible, can hibernate and restart on my laptop.  I wanted to test it out, so I need to set it up in a virtual machine (VM).  Oh, and I’m interested in Arch Linux, which doesn’t exactly hold your hand during the install.

So, Is Munich Happy With Linux or Not? Are They Reverting Back to Windows?

Linux + Munich = Limux

Linux + Munich = Limux

While it is hard to pin down the exact date (since they apparently don’t advertise the date on some of their articles, for shame!), TechRepublic around November last year posted the article “How Munich rejected Steve Ballmer and kicked Microsoft out of the city“.  This got the attention of a few, especially those who have pondered just whether or not they get their money’s worth from Microsoft over the long haul.  That got rumors flying, and last month TechRepublic had to post a follow-up article “Ditching Linux for Windows? The truth isn’t that simple, says Munich“.

What Do All These Screens Do to Your Health?

Morguefile free photoby mantasmagorical

Morguefile free photo
by mantasmagorical

I think we’ve all heard about how all the screens we have can lead to insomnia and general sleep deprivation.  However, is there a greater danger than this?  How about contributing to diabetes?  Obesity?  Heart disease?

Weekend Special: Microsoft Ships Another Defective Patch KB293651 and Hides Important Uninstall Information

You had nothing better planned for Labor Day weekend, right?

Firebugs_by_Rones_2_bugs.png

The way I see it, there isn’t any other explanation for this other than Microsoft engineers rushing something out the door before the Labor Day weekend so they can barbeque combined with some idiotic marketers that determined that image was more important than hiding relevant troubleshooting information. Seriously, it is time to sharply question whether or not running Microsoft products is a more stable solution.

I’m not joking.

Geek Friday: Text to Speech (TTS) and Speech to Text Applications for Ubuntu

200px-Oxygen480-apps-preferences-desktop-text-to-speech.svg_.png
Image from Wikimedia Commons, used under GNU LGPL

I was looking at a couple of things last week, and it turns out both are implemented in Ubuntu, but only sort of.

Website Apps