Ask Your Question

How to expand partition on Fedora 19

asked 2013-09-18 09:53:07 -0500

scow gravatar image

updated 2013-09-18 22:39:33 -0500

FranciscoD_ gravatar image

At first, I had Windows 7 installed and dual boot it with Fedora 19.

Low disk space on "filesystem root" notification continuously remind me of low space.

Since Windows 7 taking 3 primary partition, out of frustration, I deleted 2 of them, sda 2 and sda 3.

So, what should I do next? Is it ok if I delete the /dev/sda1 partition? I have no plan on reinstalling Microsoft Windows OS but will have 2 other Linux flavor in the near future.

screen shot of my partition using gparted

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2013-09-18 11:59:46 -0500

gaurav9 gravatar image

if you have used LVM as partitioning scheme enter in terminal lvscan to verify if you get some output you will be able to extend your root partition .if don't get any output simple create a new partition with gparted format it as ext4 and permanently mount it in /etc/fstab under mount point as / your fstab entry may look like this
/dev/sdaX / ext4 defaults 1 2
where X is partition no you want add to root partition eg 2 if its sda2

edit flag offensive delete link more


this is my output using sudo lvscan. ACTIVE '/dev/fedora/swap' [3.89 GiB] inherit ACTIVE '/dev/fedora/root' [6.38 GiB] inherit

scow gravatar imagescow ( 2013-09-18 12:35:35 -0500 )edit

easiest way is that I answered previously and recommended way is creating a extended partition and create a lvm in it of desired size follow this guide and mount it under mount pt /

gaurav9 gravatar imagegaurav9 ( 2013-09-19 11:13:54 -0500 )edit

$ sudo apt-get intall lvm2 sudo: apt-get: command not found

scow gravatar imagescow ( 2013-09-19 11:45:01 -0500 )edit

yum install lvm2

gaurav9 gravatar imagegaurav9 ( 2013-09-19 22:33:01 -0500 )edit

how to mount it under pt / ? what is pt? and how to mount the new ext4 partition in /etc/fstab?

scow gravatar imagescow ( 2013-10-07 17:58:32 -0500 )edit

answered 2013-09-19 18:50:08 -0500

dbruno gravatar image

if you use LVM, maybe it help you:

  • First of all, install lvm2 package.
yum install lvm2

The following command extends the logical volume /dev/myvg/homevol to 12 gigabytes.

# lvextend -L12G /dev/myvg/homevol 
lvextend -- extending logical volume "/dev/myvg/homevol" to 12 GB
lvextend -- doing automatic backup of volume group "myvg"
lvextend -- logical volume "/dev/myvg/homevol" successfully extended

The following command adds another gigabyte to the logical volume /dev/myvg/homevol.

# lvextend -L+1G /dev/myvg/homevol
lvextend -- extending logical volume "/dev/myvg/homevol" to 13 GB
lvextend -- doing automatic backup of volume group "myvg"
lvextend -- logical volume "/dev/myvg/homevol" successfully extended

As with the lvcreate command, you can use the -l argument of the lvextend command to specify the number of extents by which to increase the size of the logical volume. You can also use this argument to specify a percentage of the volume group, or a percentage of the remaining free space in the volume group. The following command extends the logical volume called testlv to fill all of the unallocated space in the volume group myvg.

# lvextend -l +100%FREE /dev/myvg/testlv
  Extending logical volume testlv to 68.59 GB
  Logical volume testlv successfully resized

Your partition must be unmounted.

I just copy and paste this from Red Hat Documation, because my karma don't allow me to paste the link here.

Good Luck!

edit flag offensive delete link more


What is my logical volume? or what is my homevol? I figure that since my /dev/sda6 partition is out of space so i should extend it and i hope myvg is volume group. So, i tried lvextend -L50G /dev/sda6/fedora

scow gravatar imagescow ( 2013-10-07 17:54:22 -0500 )edit

To see your logical volume:


In the example above, homevol is just example name, you can configure as you want.

dbruno gravatar imagedbruno ( 2013-10-08 08:39:24 -0500 )edit

sudo pvdisplay show 2 physical volume. PV Name: /dev/sda6, VG Name: fedora, PV Size 10.27 GiB / not usable 2.00 MiB, Allocatable: yes (but full) and PV Name: /dev/sda3, VG Name: fedora, PV Size: 195.31 GiB / not usable 4.00 MiB, Allocatable: yes. sudo lvdisplay show LV Path: /dev/fedora/swap, LV Name: swap, VG Name: fedora, LV Size: 50G and LV Path: /dev/fedora/root, LV Name: root, VG Name: fedora, LV Size: 50G. So what command I need to enter to extend that 10 Gb on /dev/sda6?

scow gravatar imagescow ( 2013-10-11 09:44:40 -0500 )edit

answered 2013-09-19 17:39:37 -0500

body gravatar image

updated 2013-09-19 17:39:58 -0500

@scow app-get wont work at fedora you need to use yum install .... (program name) or you can make a search in software center and download.

edit flag offensive delete link more


hehe... ic. thanks :D

scow gravatar imagescow ( 2013-09-20 16:58:53 -0500 )edit

Question Tools


Asked: 2013-09-18 09:53:07 -0500

Seen: 10,219 times

Last updated: Sep 19 '13