Ask Your Question

Revision history [back]

For safety's sake, you probably want to back up /home and everything before trying this, but … caveat emptor

The filesystem you mount on /home exists on the LVM Logical Volume home, which is in the Volume Group fedora which is on a Physical Volume sda6. You could have multiple LV's in a VG, and a VG can span multiple PV's. A FS doesn't necessarily have to fill its LV (although to not do so is just wasteful, to no gain). In this case, it seems like you want all four to line up.

Boot from a LiveCD (or USB) and open Gnome Disks to confirm the free space, et al. You could probably also do this by safely shutting down to single-user maintenance mode, el al, but running from Live is easier. From the Live boot, install (to the live image) the program gparted. (At least as of Fedora 22, it seems that the normal Disks program doesn't have support for resizing an LVM PV.) From Terminal: sudo dnf -y install gparted && sudo gparted

  • Note, the password for sudo on Fedora Live is empty — just tap Return.

In gparted, you should be able to resize the PV into the unallocated space. Right-click the partition, choose Resize/Move, and reduce “Free space following (MiB):” as much as you'd like.

In the past, when co-existing with Windows, it was wise to “align to Cylinders,” but I have heard that this is no longer necessary with GPT partition tables. You might wish to do so, to be on the safe side. (It just limits the increments by which you can adjust the size.)

Note that the action will be queued up, and you'll have to click the “go” button in the toolbar to apply the changes. Just expanding the PV/VG/LV/FS shouldn't take too terribly long, but naturally, make sure you have mains power and a charged battery/UPS, to be safe, because losing power then would hurt, badly. (Personally, I also turn off power saving in “Settings” and don't run anything else while that's happening, to avoid some random system hang/crash from ruining things, but that's somewhat paranoid.)

If you find that the unallocated space on your disc is not adjacent to the existing partition, you'll instead need to

  • create a new partition in the unallocated space as a PV
  • extend the VG onto that PV (vgextend)
  • resize the LV, and the filesystem on the LV, to take advantage of the newly-created space (lvresize -r)

If that's the case, the instructions are the same as for having a separate disc; the PV's in your case might be sda6 and sda7 rather than, say, sdb1 and sdc1, but the process is the same.