Switched Distributions and messed up partitioning and now only have 75G instead of 1T (Fedora Workstations 32)

Taniks1618

Member
Credits
323
I was going to dual boot with 75G for Fedora and 915G for PopOS but I deiced to go all in on Fedora. I somehow installed Fedora into the 75G Disk and want to know if it is possible to merge these two partitions together and keep my data. (I don't know if this data can help)

Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: WDC WD10JPVX-75J
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 443F5050-E654-4C0F-99B9-A9D4E14BC8D7

Device Start End Sectors Size Type
/dev/sda1 2048 1230847 1228800 600M EFI System
/dev/sda2 1230848 3327999 2097152 1G Linux filesystem
/dev/sda3 3328000 1953523711 1950195712 929.9G Linux LVM

Disk /dev/mapper/fedora_localhost--live-root: 70 GiB, 75161927680 bytes, 146800640 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/mapper/fedora_localhost--live-swap: 7.81 GiB, 8363442176 bytes, 16334848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk /dev/mapper/fedora_localhost--live-home: 852.14 GiB, 914970640384 bytes, 1787052032 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
 


dos2unix

Well-Known Member
Credits
1,042
So it appears here, that /dev/sda is your 931GB drive.
It also looks like you have a LVM partition at /dev/sda3

For a test.. try this.

mount /dev/sda3 /mnt

cd /mnt

ls

Assuming all that works and you can see your "stuff" that you expect to see.
The next step would be to add this to your fstab file so it happens automatically.
 

Taniks1618

Member
Credits
323
So it appears here, that /dev/sda is your 931GB drive.
It also looks like you have a LVM partition at /dev/sda3

For a test.. try this.

mount /dev/sda3 /mnt

cd /mnt

ls

Assuming all that works and you can see your "stuff" that you expect to see.
The next step would be to add this to your fstab file so it happens automatically.
I ran the command as a super user and it said "mount: /mnt: unknown filesystem type 'LVM2_member'."
 

dos2unix

Well-Known Member
Credits
1,042
ahh... was afraid of that. That makes it a little more difficult.

Do you by any chance know the name of the volume group on the sda drive?

If not, does the PopOS Linux still boot up?
 

Taniks1618

Member
Credits
323
ahh... was afraid of that. That makes it a little more difficult.

Do you by any chance know the name of the volume group on the sda drive?

If not, does the PopOS Linux still boot up?
I don't know the volume group and when switching to Fedora I went in Pop and formatted my disk for Fedora.
 

dos2unix

Well-Known Member
Credits
1,042
Lets try this, (I've never done it without exporting it from the old volume group first)
I don't think this will corrupt your disk, I believe at worst, it simply won't import the disk.

First we need output from vgdisplay (in Fedora)
just type...

vgdisplay
 

Taniks1618

Member
Credits
323
Lets try this, (I've never done it without exporting it from the old volume group first)
I don't think this will corrupt your disk, I believe at worst, it simply won't import the disk.

First we need output from vgdisplay (in Fedora)
just type...

vgdisplay
--- Volume group ---
VG Name fedora_localhost-live
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 929.92 GiB
PE Size 4.00 MiB
Total PE 238060
Alloc PE / Size 238060 / 929.92 GiB
Free PE / Size 0 / 0
VG UUID UPhPzJ-ddLG-Lqpc-dGdo-N66v-wpuq-fJMH5M
 

dos2unix

Well-Known Member
Credits
1,042
So the volume group appears to be "fedora_localhost-live"

Let us see if this works.

vgextend fedora_localhost-live /dev/sda3

Hopefully it won't complain about not being exported first
 

Taniks1618

Member
Credits
323
Physical volume '/dev/sda3' is already in volume group 'fedora_localhost-live'
Unable to add physical volume '/dev/sda3' to volume group 'fedora_localhost-live'
/dev/sda3: physical volume not initialized.
 

dos2unix

Well-Known Member
Credits
1,042
Interesting. Didn't expect that. Let us see if it is lying to us.
What is output of pvdisplay.
 

Taniks1618

Member
Credits
323
PV Name /dev/sda3
VG Name fedora_localhost-live
PV Size <929.93 GiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 238060
Free PE 0
Allocated PE 238060
PV UUID 1ss7mo-MrxD-mgm1-5LIK-plvg-eXFO-xDnPr1
 

dos2unix

Well-Known Member
Credits
1,042
That's good, it seems it wasn't lying.

Now what is output of df -h
 

Taniks1618

Member
Credits
323
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 87M 3.8G 3% /dev/shm
tmpfs 3.9G 2.0M 3.9G 1% /run
/dev/mapper/fedora_localhost--live-root 69G 14G 52G 21% /
tmpfs 3.9G 132K 3.9G 1% /tmp
/dev/sda2 976M 251M 658M 28% /boot
/dev/mapper/fedora_localhost--live-home 838G 14G 782G 2% /home
/dev/sda1 599M 21M 579M 4% /boot/efi
tmpfs 785M 15M 771M 2% /run/user/1000
 

dos2unix

Well-Known Member
Credits
1,042
It's already in the volume group. That's good. But it doesn't appear to have a dev-mapper path yet.

Lets try

vgchange -ay fedora_localhost_live

and see if it will add it
 

dos2unix

Well-Known Member
Credits
1,042
oops, my bad

not fedora_localhost_live
fedora_localhost-live (dash instead of under score)
 


Members online


Latest posts

Top