LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-18-2020, 12:31 PM   #1
george8CVB
LQ Newbie
 
Registered: Feb 2020
Posts: 2

Rep: Reputation: Disabled
Buster 10.3 LVM on Luks won't boot


If you guys need all the details I can provide them. I am installing 10.3 on a PARTITION ONLY. LVM on Luks. Same result whether I use luks2 or luks1 volume header.

Example:
cryptsetup luksFormat -c serpent-xts-plain64 -s 512 -h sha512 -i 25000 /dev/sda4

or

cryptsetup luksFormat --type luks1 -c serpent-xts-plain64 -s 512 -h sha512 -i 25000 /dev/sda4

open volume after creation, setup pv's, vg's, lv's, and partitioning with all mount points properly set.

The install goes smooth as silk. I have done partition installs several times with Jessie, Stretch, etc... and my machine bios is Legacy with CSM support. UEFI is turned off but the debian installer still sees it somehow. Hard drive is MBR not GPT. It has always seen UEFI and as mentioned above it boots great on my older Debian partition systems. All of my Debian systems boot from USB for /boot. Some I created directly to USB mount, and on others I moved the /boot file from sda3 over to a flash and edited fstab to make it work, easily.

I cannot get 10.3 to boot after install, and I am beating myself up trying to work through this. I have installed this to sda4 (100 Gig) and tried booting from sda3 (256 meg EXT 2 partition for /boot), and also tried installing with a direct call to a USB (sdb obviously). Nope won't boot.

During the install process with everything setup and down to the point where it is time to Install the bootloader I stop and drop to busybox (Alt F2). Then:


chroot /target /bin/bash
nano /etc/crypttab
"George" /dev/sda4 none luks # George is example name here for Volume

Then save and exit, leave busybox and go back to complete the install to bootloader. I have done this several times with no joy.

When I try to mount Debian I see volume group "George" not found and after sitting for like 15 seconds it drops me down to a shell of some kind. I am pretty confident I am missing something simple here. I know the machine works extremely well booting from flash.

Does anyone see what I appear to be missing? I will need some defined steps as "super geek" comments will further baffle me I think. I really have been trying and I didn't want to resort to asking for help until I beat myself up for awhile.
 
Old 02-19-2020, 11:44 PM   #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
I do know a little bit about partitions, LVM and disk encryption, but I have trouble understanding what you are doing.

Quote:
Originally Posted by george8CVB View Post
I am installing 10.3 on a PARTITION ONLY. LVM on Luks.
Here is a contradiction. You say partition only, then immediately LVM. You can install an OS on a partition only, or on LVM. Not both.

You then say you encrypt /dev/sda4, and:
Quote:
open volume after creation
What do you mean by volume?
Quote:
setup pv's, vg's, lv's, and partitioning with all mount points properly set.
You set up PVs, VGs, LVs on what? And what do you mean by partitioning? Normally, you first have a partition, then you create a PV on it.
Quote:
The install goes smooth as silk.
Sorry but this came as a surprise. You encrypt /dev/sda4, set up some LVM volumes and mount them somewhere, then suddenly you install. Where do you install to?
What do you mean that the install was smooth - according to the rest of your description, it wasn't at all.

The next paragraph doesn't seem to be relevant to your problem, and then:
Quote:
I cannot get 10.3 to boot after install, and I am beating myself up trying to work through this. I have installed this to sda4 (100 Gig) and tried booting from sda3 (256 meg EXT 2 partition for /boot), and also tried installing with a direct call to a USB (sdb obviously).
You installed on /dev/sda4. This means that you removed all the structures you created earlier? What precisely was on /dev/sda4 before the installation, and what storage setup did you create when installing?
I don't know what you mean by "installing with a direct call to a USB".
Quote:
Nope won't boot.
And here is where you would normally provide details of what happens when you try to boot. Any messages on the screen? Any error messages? Just a blank screen? What do you get?
Quote:
During the install process with everything setup and down to the point where it is time to Install the bootloader I stop and drop to busybox (Alt F2). Then:

chroot /target /bin/bash
nano /etc/crypttab
"George" /dev/sda4 none luks # George is example name here for Volume

Then save and exit, leave busybox and go back to complete the install to bootloader. I have done this several times with no joy.
What do you mean by "no joy"? What happens, and what did you expect to happen?
By the way, from the above it seems to me that you are using the encrypted disk as the root disk to which you install Debian.
Quote:
When I try to mount Debian
What do you mean by that?
Quote:
I see volume group "George" not found
I doubt that the mount command issues an error "volume group not found".
What exactly are you doing, and what exactly happens?
Quote:
and after sitting for like 15 seconds it drops me down to a shell of some kind.
By now I am lost. How can the mount command drop you to a shell? Or rather: What did you do to mount Debian?
 
  


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] After having a successful installation of Debian Buster, Lenovo computer refuses to boot into Debian Buster 10.2 PicardDefendingData Debian 4 12-21-2019 07:51 PM
How to set up custom boot backgrounds from boot to login with LVM and LUKS? spudzy Linux - Software 1 10-09-2014 09:03 AM
LUKS LVM with usb token at boot mrmnemo Ubuntu 3 02-26-2011 08:35 AM
[SOLVED] Combining LUKS and LVM... LILO fails to boot STDOUBT Slackware - Installation 4 06-10-2010 09:58 PM
LUKS on RAID or RAID on LUKS? retch Linux - Server 3 05-05-2010 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:37 AM.

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