Installing Linux on encrypted drive

Archived topics about LMDE 1 and LMDE 2
Locked
User avatar
Pepas
Level 2
Level 2
Posts: 56
Joined: Mon Jan 24, 2011 10:18 am
Contact:

Installing Linux on encrypted drive

Post by Pepas »

Dear people,

The script that can be used to install Mint on a fully (or partly..!) LUKS encrypted harddrive has been updated and tested with Linux Mint 17.3. From the README:

lmdescrypt
version 0.77

This script installs Linux Mint Debian Edition i686 or amd64, version 201403, or Linux Mint Debian Edition version 2 (201504) or regular Linux Mint 17.1 or 17.2 or 17.3 to be:
Fully luks encrypted, with lvm2 volumes of root, swap and (optionally) data.


Github page: https://github.com/pepa65/lmdescrypt

See forum topic: http://forums.linuxmint.com/viewtopic.p ... 9&t=132520
Shortlink to download the script: http://j.mp/lmdescrypt
Questions? Email [url]email:solusos@passchier.net[/url] or post an Issue on the github page.

INSTRUCTIONS

1. Boot the Live environment
2. Open a Terminal (Menu, Terminal) and enter:

Code: Select all

wget j.mp/lmdescrypt
chmod +x lmdescrypt
3. If needed, adapt the SETTINGS section:

Code: Select all

nano lmdescrypt
4. Partition the drive, for instance (taking up all space):

Code: Select all

5.sudo fdisk /dev/sda
Within fdisk, enter the following:

Code: Select all

 o [Enter]
 n [Enter]
 [Enter]
 [Enter]
 [Enter]
 +500M [Enter]
 n [Enter]
 [Enter]
 [Enter]
 [Enter]
 [Enter]
 w [Enter]
This is making a 500 MB boot partition, and giving the rest to the encrypted lvm2.
5. Start the script:

Code: Select all

sudo ./lmdescrypt
6. Answer the questions as they come up:
password for encryption (twice the same)
password for decryption (same again)
Then after a wait for all the preparations to have happened, and supply:
password for user, and some irrelevant info
about the keyboard
about the timezone
Installing into a pre-existing environment
Using a pre-existing boot-partition, LUKS partition and LVM Logical Volumes is entirely supported. The options are to USE (or not), to CREATE (or not), and to FORMAT (or not) these devices.

And that's it!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “LMDE Archive”