Ask Your Question

Resize Windows 8 and F20 /home partition

asked 2014-07-11 00:11:25 -0500

abadrinath gravatar image

updated 2014-07-16 09:11:32 -0500

NickTux gravatar image

Hi guys!

As you probably can notice, I am not using Win8 as much as F20. So, I want to extend my /home/ partition and reduce space on the C:\ partition. However, I am not aware of how to do that without destroying the C:\ partition as a whole. Any advice or tips? Also, it would help not to use a LiveCD or USB.


Outputs of useful commands:

fdisk -l:

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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
Disklabel type: gpt
Disk identifier: D7F9AFA6-F54C-48DF-B986-F2D279A78FE1

Device            Start          End   Size Type
/dev/sda1          2048      2050047  1000M Windows recovery environment
/dev/sda2       2050048      2582527   260M EFI System
/dev/sda3       2582528      4630527  1000M unknown
/dev/sda4       4630528      4892671   128M Microsoft reserved
/dev/sda5       4892672    949948415 450.7G Microsoft basic data
/dev/sda6    1876580352   1929009151    25G Microsoft basic data
/dev/sda7    1929009152   1953523711  11.7G Windows recovery environment
/dev/sda8     949948416    960188415   4.9G EFI System
/dev/sda9     960188416    980668415   9.8G Microsoft basic data
/dev/sda10    980668416   1185468415  97.7G Microsoft basic data
/dev/sda11   1185468416   1226428415  19.5G Microsoft basic data
/dev/sda12   1226428416   1251004415  11.7G Linux swap
/dev/sda13   1251004416   1876580351 298.3G Microsoft basic data

parted -l:

Model: ATA WDC WD10JPCX-24U (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  1050MB  1049MB  ntfs            Basic data partition          hidden, diag
 2      1050MB  1322MB  273MB   fat32           EFI system partition          boot, hidden
 3      1322MB  2371MB  1049MB  fat32           Basic data partition          hidden
 4      2371MB  2505MB  134MB                   Microsoft reserved partition  msftres
 5      2505MB  486GB   484GB   ntfs            Basic data partition
 8      486GB   492GB   5243MB  fat32           EFI System Partition          boot
 9      492GB   502GB   10.5GB  ext4
10      502GB   607GB   105GB   ext4
11      607GB   628GB   21.0GB  ext4
12      628GB   641GB   12.6GB  linux-swap(v1)
13      641GB   961GB   320GB   ext4
 6      961GB   988GB   26.8GB  ntfs            Basic data partition
 7      988GB   1000GB  12.6GB  ntfs            Basic data partition          hidden, diag


sda       8:0    0 931.5G  0 disk 
├─sda1    8:1    0  1000M  0 part 
├─sda2    8:2    0   260M  0 part 
├─sda3    8:3    0  1000M  0 part 
├─sda4    8:4    0   128M  0 part 
├─sda5    8:5    0 450.7G  0 part 
├─sda6    8:6    0    25G  0 part 
├─sda7    8:7    0  11.7G  0 part 
├─sda8    8:8    0   4.9G  0 part /boot/efi
├─sda9    8:9    0   9.8G  0 part /boot
├─sda10   8:10   0  97.7G  0 part /
├─sda11   8:11   0  19.5G  0 part /var
├─sda12   8:12   0  11.7G  0 part [SWAP]
└─sda13   8:13   0 298.3G  0 part /home
sr0      11:0    1  1024M  0 rom

Will provide any more commands/logs if needed.

image description

Picture full size links :

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2014-07-19 02:38:40 -0500

updated 2014-07-19 11:39:13 -0500

To use your discontiguous partitions /dev/sdaN and /dev/sda13 to back a single filesystem, do:

(resizing the ntfs partition and creating a new one in the empty space is left as an exercise for the reader)

systemctl isolate #get out of graphical mode so you aren't using /home - log in as root

rsync -vrpPX /home/ /path/to/ext4_usb_backup/ #copies files, preserves permissions

umount /home #we are destroying the data here

pvcreate /dev/sdaN #format for lvm use

pvcreate /dev/sda13 #format for lvm use

vgcreate hello_vg /dev/sdaN /dev/sda13 #create volume group

lvcreate hello_vg/hello-home --size 500G #create logical volume

mkfs.ext4 /dev/hello_vg/hello-home #create a filesystem

mount /dev/hello_vg/hello-home /home #mount the filesystem

rsync -vrpP /path/to/ext4_usb_backup/ /home/ #restore backup

blkid /dev/hello_vg/hello-home #Get the filesystem uuid

nano /etc/fstab #put your new UUID in for the /home mountpoint

systemctl isolate #resume your clicky operations (adding

edit flag offensive delete link more


@randomuser - I have traditional partitioning; is that a problem? Also, do I have to use LVM, and will this mess up the system (change the start sector of /boot/efi)? Last, will both partitions be mounted at /home? All this looks a little risky to me. Sorry for taking so much of your time :(

abadrinath gravatar imageabadrinath ( 2014-07-19 06:10:22 -0500 )edit

I'd add -X to that rsync command to preserve extended attributes (should keep selinux security contexts). The rsync command that anaconda uses to install Fedora is 'rsync -pogAXtlHrDx', or just use what anaconda uses.

Ahmad Samir gravatar imageAhmad Samir ( 2014-07-19 10:33:14 -0500 )edit

My installation logs don't show anaconda using rsync, but good call on -X. Updated.

randomuser gravatar imagerandomuser ( 2014-07-19 11:38:42 -0500 )edit

@hello - for your questions: I don't understand the concern about 'traditional partitioning'. I can tell you aren't already using LVM, that's why I gave you the instructions.

Yes, you have to use LVM to take advantage of LVM's features.

No, there are no steps listed that change the start of the EFI partition. You'll need to change the end of /dev/sda5 but I didn't cover that.

No, both partitions aren't mounted at /home. The logical volume is mounted at /home, and the partitions supply blocks for the logical volume.

randomuser gravatar imagerandomuser ( 2014-07-19 11:42:41 -0500 )edit

@randomuser - Sorry for wasting your time, but will the total space of /home be 500GB?

abadrinath gravatar imageabadrinath ( 2014-07-19 21:06:37 -0500 )edit

answered 2014-07-12 05:06:20 -0500

NickTux gravatar image

I assume here that the C:\ partition is /dev/sda5 , because of the size (450.7G) . If you want to decrease the size of this partition, you can do it easily with gparted. Install gparted , it's an easy to use and powerful GUI tool for managing partitions/disks..etc.


as you said you want to increase the size of Fedora's /home/ (your /home) partition, you must use a Live media in order to do this. You cannot manipulate mounted partitions and when you are logged into Fedora the /home/ partition is mounted. So, you have to use a Live media (CD/DVD/USB) boot from there, and the /home partition will be unmounted, thus you can manipulate it with gparted.

Gparted is not included at live media, so install it there as well.

Pay attention now

Gparted has a feature where it can preview all the operations before you actually apply them. This is very handy and you can see what you will do, before actually do it.

  • Resize /dev/sda5
  • Delete the partition that will result from the resizing and leave it unallocated
  • See if you can merge this unallocated space, means to expand the /dev/sda13 partition, which is your /home
  • If and only if you can do all these actions without problems, then hit the apply button
edit flag offensive delete link more


@NikTh- Thanks for the answer, but would help if you give step by step insructions how to move the unallocated space next to /home without changing the start sector of /boot/efi.

abadrinath gravatar imageabadrinath ( 2014-07-12 22:40:50 -0500 )edit

@NikTh - help?!?

abadrinath gravatar imageabadrinath ( 2014-07-15 02:25:21 -0500 )edit

@hello, please upload a picture from gparted. Thanks.

NickTux gravatar imageNickTux ( 2014-07-15 03:09:37 -0500 )edit

@NikTh Done, thanks for the help so far BTW. Also, that pic is NOT from a live CD. Couldn't get my hands on one.

abadrinath gravatar imageabadrinath ( 2014-07-15 03:41:59 -0500 )edit

Yes, but you should use a Live media, or else you will not be able to expand the /home partition. What you have to do, is to drag every partition next to unallocated space (from right to left) until you reach the /home partition (/dev/sda13) and then right click and resize/move again, but this time expand(resize) the partition (drag it with the mouse cursor). The unallocated space should be under the /dev/sda13 in order to expand /dev/sda13/ properly.

NickTux gravatar imageNickTux ( 2014-07-15 04:29:44 -0500 )edit

Question Tools

1 follower


Asked: 2014-07-11 00:11:25 -0500

Seen: 1,502 times

Last updated: Jul 19 '14