LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-06-2022, 03:01 AM   #1
kakis
LQ Newbie
 
Registered: Jun 2022
Posts: 3

Rep: Reputation: 0
How to merge root filesystem with a super-partition? [SOLVED]


I'm having issues where my root FS on my fedora machine only has 15 GB of disk space.
lsblk yields the following:

Code:
[uesr@fedora ~]$ lsblk
NAME                                     MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
zram0                                    252:0    0     8G  0 disk  [SWAP]
nvme0n1                                  259:0    0 476.9G  0 disk
├─nvme0n1p1                              259:1    0   600M  0 part  /boot/efi
├─nvme0n1p2                              259:2    0     1G  0 part  /boot
└─nvme0n1p3                              259:3    0 475.4G  0 part
  └─luks-5af04d49-0592-4272-a1f4-91fa9e7d40b3
                                         253:0    0 475.3G  0 crypt
    └─fedora_fedora-root                 253:1    0    15G  0 lvm   /
It seems like my luks encrypted partition is not the root partition but rather a sub-partition that is named fedora_fedora-root is. I believe I just followed the recommended partitioning when setting up fedora, but I am not sure.

Is there some way for me to merge the fedora_fedora-root into the luks-5af04d49-0592-4272-a1f4-91fa9e7d40b3 partition? Do I have to reinstall?

Last edited by kakis; 06-06-2022 at 06:37 AM.
 
Old 06-06-2022, 03:27 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
No need for anything so esoteric - this is exactly what LVM was designed to fix.
First up, edit that post and change the [quote] tags to [code]. Then let us see the following - in [code] tags.
Code:
pv
vgs
lvs
 
Old 06-06-2022, 03:46 AM   #3
kakis
LQ Newbie
 
Registered: Jun 2022
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
No need for anything so esoteric - this is exactly what LVM was designed to fix.
First up, edit that post and change the quote tags to [code]. Then let us see the following - in [code] tags.
Code:
pv
vgs
lvs
Code:
[user@fedora ~]$ sudo vgs
  VG            #PV #LV #SN Attr   VSize    VFree
  fedora_fedora   1   1   0 wz--n- <475.34g <460.34g
Code:
[user@fedora ~]$ sudo lvs
  LV   VG            Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root fedora_fedora -wi-ao---- 15.00g
The
Code:
pv
command is not really doing anything for me, it just loads forever, not sure how to use it in the context you gave.

Last edited by kakis; 06-06-2022 at 03:49 AM.
 
Old 06-06-2022, 04:39 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Sorry, my bad; should have been "pvs", not "pv" ....
The vg has all that space, which is what you want - pick a size for the root, and use something like this
Code:
sudo lvextend -r -L 30G /dev/fedora_fedora/root
 
Old 06-06-2022, 06:37 AM   #5
kakis
LQ Newbie
 
Registered: Jun 2022
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Sorry, my bad; should have been "pvs", not "pv" ....
The vg has all that space, which is what you want - pick a size for the root, and use something like this
Code:
sudo lvextend -r -L 30G /dev/fedora_fedora/root
Wonderful this seems to be the solution! Thank you!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Git 2.33 Released with New Optional Merge Strategy Named ‘merge-ort’ LXer Syndicated Linux News 0 08-19-2021 09:43 PM
Merge many files in to one big file. like 20 file merge in one big file Jmor Linux - Newbie 2 10-29-2008 09:41 PM
LXer: kgdb, To Merge Or Not To Merge LXer Syndicated Linux News 0 02-05-2008 06:10 PM
LXer: KHTML Vs Webkit: To Merge or Not To Merge LXer Syndicated Linux News 0 10-27-2007 06:41 AM
convert and merge a fat32 to ext3 and then merge w/ another ext3? nkoplm Linux - General 3 03-23-2006 10:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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