LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-16-2015, 02:52 AM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
Encrypted Volume - How do I reboot remotely?


So I've got a fully encrypted ubuntu-server install. I just did some updates and it's asked me to reboot. Only issue is that I'm hundreds of KM away from it.

Is there a way to reboot it and have it automount the encrypted volume? Can I somehow make the machine execute a script that has the password in it to decrypt and mount the volume and then delete itself?
 
Old 07-16-2015, 03:46 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Long ago I learned how to do that for my RHCSA certificate, then forgot. A prayer to St Google brought me back on track. You have to do some setup with /etc/crypttab; for example see this somewhat dated howto: https://help.ubuntu.com/community/En...anent_Mounting, in particular the section on permanent mounting.
 
1 members found this post helpful.
Old 07-16-2015, 04:18 AM   #3
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Original Poster
Rep: Reputation: 61
Thanks dawg.

Unfortunately, I have a fully encrypted disk. The whole machine cannot boot without a password during bootup. That guide appears to be how to mount an encrypted /home or swap.

:S It's not the end of the world if I have to reboot it from the physical machine during bootup it just means I'll be doing it a lot less.

Last edited by wh33t; 07-16-2015 at 04:19 AM.
 
Old 07-16-2015, 05:21 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Get the crypt support into the initramfs. I've seen blogs for Arch, but I don't know the hook support for Ubuntu.
I assume you already have grub support enabled.
 
1 members found this post helpful.
Old 07-16-2015, 05:27 AM   #5
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Original Poster
Rep: Reputation: 61
Quote:
Originally Posted by syg00 View Post
Get the crypt support into the initramfs. I've seen blogs for Arch, but I don't know the hook support for Ubuntu.
I assume you already have grub support enabled.
I'm a super noob when it comes to Linux. If I google "crypt support initramfs ubuntu" will I be going in the right direction?
 
Old 07-16-2015, 06:01 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Yes, that should find most - I had a quick look and most seemed quite old. Most people seem to follow the Ubuntu standard installs, rather than encrypting root and boot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mount encrypted volume at boot TechJay Linux - Newbie 2 03-06-2013 03:38 AM
Resizable encrypted LVM requiring just one password on boot (encrypted volume group)? Nyyr Linux - Software 9 01-24-2013 05:52 AM
LXer: Remotely Unlock Fully Encrypted Debian Squeeze LXer Syndicated Linux News 0 04-18-2012 01:10 PM
mounting / rescue encrypted volume simonwil Ubuntu 2 11-02-2009 02:58 PM
Encrypted Volume Recovery seta37 Fedora 3 06-22-2009 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration