Ask Your Question

How do I add an empty partition to another disk for more space?

asked 2017-10-06 12:04:24 -0500

everlastingfish gravatar image

I want to merge this partition with the one I have Fedora installed. I used to dual boot Windows 10 and Fedora but it's been a while since I last used Windows so I'm just going to use all the disk space for Fedora. How do I do that?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-10-06 17:20:44 -0500

jmt gravatar image

You can simply add the /dev/sda5 partition to your existing volume group on /dev/sda7.

You can do this as root:

At this point the command pvs should show a single physical volume on partition /dev/sda7

Get to know you LVM structure with the commands vgs and lvs. You should see a single volume group and some logical volumes

First you make the partition /dev/sda5 into a LVM physical volume. Make sure that this is the correct partition and it does not have any data on it and it is not mounted anywhere. Any data on /dev/sda5 will be lost after this command:

pvcreate /dev/sda5

Since the partition is not empty, you might have to --force it: pvcreate --force /dev/sda5

Now you can check that pvs shows two physical volumes, one with a volume groupe on it and one without an associated volume group (/dev/sda5)

Take a note of the volume group name shown by pvs

Now you just add the new physical volume to the existing volume group:

vgextend NAME /dev/sda5

Now use the commands pvs, vgs and lvs to see how the situation has changed.

Now you can extend you existing logical volumes and the file systems on them using these instructions

edit flag offensive delete link more


Your volume group seems to called "fedora" so the command above becomes vgextend fedora /dev/sda5

jmt gravatar imagejmt ( 2017-10-06 17:24:24 -0500 )edit

answered 2017-10-06 21:03:07 -0500

ozeszty gravatar image

Personally I'd purge all of Windows garbage (5 partitions, but not EFI one), maybe unless there was some cool diagnostic utility (doubtful).

If you ever need to reinstall windows, your license is stored in BIOS and on MS servers. Fresh win ISO's are now officially available for download (with recovery you'd install back all of Lenovo bloatware).

Other then growing and/or appending another logical volume (@jmt's answer) you could also move your Linux partitions to the beginning of the disk (where disk should perform better) with e.g. gparted or even start fresh:

  1. save list of installed packages dnf history userinstalled > installed-pkgs,
  2. backup your /home with rsync,
  3. format entire disk, reinstall Fedora, restore /home and reinstall packages.
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-10-06 12:04:24 -0500

Seen: 301 times

Last updated: Oct 06 '17