Install OS on encrypted hard drive?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
trope
Level 3
Level 3
Posts: 194
Joined: Tue Feb 19, 2013 1:10 pm

Install OS on encrypted hard drive?

Post by trope » Thu Nov 15, 2018 1:58 pm

I have a 750 GB HDD hard drive that was fully encrypted using linux mint. I bought a new laptop that can only take a single HD. Can I replace its hard drive with the 750 GB encrypted drive, and then install linux mint on it?

In other words I would boot from a CD and decrypt the drive from within linux mint. At that point would I be able to create a new partition on that drive (plenty of free space), and the big question is when I reboot, does the OS have to load before the drive is decrypted? I know there is a way to set up a flag while in Mint so that during the boot, I am asked for a password to unencrypt it, but would that happen before or after the OS tries to load?

The reason I am trying to do the above is that I have all my data on the 750 GB hard drive (the prior laptop, which had too many errors and finally cannot get into the OS, had an SSD where the OS was installed and the data partition on the HDD).

User avatar
chazb
Level 4
Level 4
Posts: 259
Joined: Wed Nov 30, 2016 2:56 am
Location: Oklahoma

Re: Install OS on encrypted hard drive?

Post by chazb » Fri Nov 16, 2018 4:03 am

Have you considered using a "live" cd or USB stick, that is functional OS on separate media, to do the decryption? If you install the OS you may destroy everything on the hard drive.

User avatar
catweazel
Level 17
Level 17
Posts: 7770
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Install OS on encrypted hard drive?

Post by catweazel » Fri Nov 16, 2018 4:04 am

chazb wrote:
Fri Nov 16, 2018 4:03 am
Have you considered using a "live" cd or USB stick, that is functional OS on separate media, to do the decryption? If you install the OS you may destroy everything on the hard drive.
"I would boot from a CD..."
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

trope
Level 3
Level 3
Posts: 194
Joined: Tue Feb 19, 2013 1:10 pm

Re: Install OS on encrypted hard drive?

Post by trope » Fri Nov 16, 2018 1:00 pm

To answer my own question, it is probably possible, but not for a novice. On my old system (with 2 HDs), the encrypted drive, although I set up a flag in the GNOME Disks utility to have it decrypted during startup, it was not automatically recognized even when I logged into linux mint.

Post Reply

Return to “Newbie Questions”