LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-13-2021, 07:50 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Rep: Reputation: 30
Reinstalling 21.04 on encrypted disk


My OS disk uses LVM and is encrypted. I've recently had an issue with it and want to reinstall Ubuntu without formatting my /home.
In the installer partitioner it shows 2x partitions, a 767MB partition, which is /boot and the rest.
If I mark the 767 MB partition as /boot and try to install it says no root filesystem is defined. If I mark it as / it says that the root partition needs to be at least 6.2GB.
How do I get around this?

Edit:
There doesn't seem to be any option in the partitioner to decrypt anything so I did so in Gnome.
I assigned /boot to the 767MB partition and / to /dev/mapper/vgubuntu-root which I didn't format as it has a size the size of the drive.
Install seemed to go OK but on booting to it I got dropped in a busybox shell. What causes this?
Is there a way to safely format / without risking my data?

Last edited by Mark_667; 06-13-2021 at 09:05 AM. Reason: Tried something-didn't quite work.
 
Old 06-13-2021, 11:41 PM   #2
vmelkon
Member
 
Registered: Feb 2007
Location: Canada
Distribution: Kubuntu 22.04
Posts: 549

Rep: Reputation: 84
Quote:
Originally Posted by Mark_667 View Post
My OS disk uses LVM and is encrypted. I've recently had an issue with it and want to reinstall Ubuntu without formatting my /home.
In the installer partitioner it shows 2x partitions, a 767MB partition, which is /boot and the rest.
If I mark the 767 MB partition as /boot and try to install it says no root filesystem is defined. If I mark it as / it says that the root partition needs to be at least 6.2GB.
How do I get around this?

Edit:
There doesn't seem to be any option in the partitioner to decrypt anything so I did so in Gnome.
I assigned /boot to the 767MB partition and / to /dev/mapper/vgubuntu-root which I didn't format as it has a size the size of the drive.
Install seemed to go OK but on booting to it I got dropped in a busybox shell. What causes this?
Is there a way to safely format / without risking my data?
I guess the /boot partition is something that became necessary with UEFI firmware. Some people call it (UEFI) the BIOS, but that isn't the official name. BIOS is the old system and UEFI is something very different, build differently from the ground up.

The /boot partition tends to be 100 MB from what I have seen. I don't know why yours is so large.
Don't delete it. Don't format it.

You need to create another volume and label it as / which is the equivalent of C:\. You probably want this to occupy most of your HDD. Format it as ext4 or whatever your favorite is.
You need to create another partition and label it as the swap. Maybe make this 100 GB. I think you can even get away with 10 GB if you have plenty of RAM and if you think you don't really need swap.
 
Old 06-14-2021, 04:36 AM   #3
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
I doubt very much the OP needs to create any partitions. One would imagine the prior install had all needed. Pity it appears there isn't already a separate /home, that would make life easier.
Quote:
Originally Posted by Mark_667 View Post
There doesn't seem to be any option in the partitioner to decrypt anything so I did so in Gnome.
I assigned /boot to the 767MB partition and / to /dev/mapper/vgubuntu-root which I didn't format as it has a size the size of the drive.
Install seemed to go OK but on booting to it I got dropped in a busybox shell. What causes this?
Because once you opened the encrypted container and mounted the lv's, the installer just saw those lv's and wouldn't know to include the LUKS (presumably) and LVM support.
Quote:
Is there a way to safely format / without risking my data?
Not if you don't have a sparate /home partition or lv. That's why backups were invented.
 
  


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
LXer: Two Tips to Keep Your Phone's Encrypted Messages Encrypted LXer Syndicated Linux News 0 05-02-2016 11:21 PM
Shrink partition (LVM encrypted PVs + encrypted LVs) gedaj Linux - Newbie 2 05-22-2013 03:44 AM
Resizable encrypted LVM requiring just one password on boot (encrypted volume group)? Nyyr Linux - Software 9 01-24-2013 05:52 AM
[SOLVED] Reinstalling GRUB without Reinstalling my Distro MBA Whore Linux - Newbie 8 03-15-2008 08:39 PM
Reinstalling Lilo using Knoppix CD without reinstalling Knoppix? squall14716 Linux - General 10 11-02-2003 09:46 AM

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

All times are GMT -5. The time now is 06:22 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