HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How To Safely Move Space From Windows 7/8/10 to Ubuntu (GPT + UEFI Mode)

53,102 views November 6, 2016 15:13

Watch on YouTube
ChannelNehal J Wani

Description from the creator

Tiny tutorial to show how to move space from Windows 7/8/10 to Ubuntu when installed in UEFI Mode.

1. Make some space which you want to devote to Ubuntu.
1.1 Open disk management and shrink the partition which is just before starting of Ubuntu partitions.
1.2 In my case, I have three Ubuntu partitions (swap, /home and /). Identify yours.
1.3 As you can see, I have two Windows partitions with labels OS and Data. In this tutorial, I'll take 5GB of space from the Data partition and give it to / of Ubuntu.
1.4 Shrink the existing partition and leave the unallocated space as it is.
1.5 Turn off fast startup inside Windows.
1.6 That's it inside Windows.

2. Moving partitions
2.1 Boot using system rescue disk. If you don't have it already, get it from sysresccd.org/Download and create a bootable USB by following youtube.com/watch?v=8iqZuCmM2fg
2.2 System Rescue disk is optional. You can use any Linux 'Live' media with Gparted inside it. In this tutorial, I'll use Ubuntu Installation Media. Follow youtube.com/watch?v=XoINdNWVgYo to create a bootable USB. Boot from it.
2.3 Open gparted
2.4 Turn off swap.
2.5 Since my swap partition is in between, I'm gonna delete it. I'll recreate it again, later.
2.6 Move ubuntu_home 'backwards' so that the free space is transferred between ubuntu_home and ubuntu_root partitions.
2.7 Grow ubuntu_root 'backwards' to occupy the 5GB space.
2.8 Create the swap partition at the end, occupying the remaining free space (in my case, it was 2048MB).

3. Updating /etc/fstab
3.1 Now, we need to edit fstab to tell it about the new swap partition and also check if there is any change in the UUIDs of any partitions. If there is any, we will need to update it.
3.2 Mount the partition in which Ubuntu is installed to /mnt . Use gdisk to know where that partition is.
3.3 Use the command blkid to know about the UUIDs of the new partitions.
3.4 Update the UUIDs in /mnt/etc/fstab

4. Regenerate Grub Configuration
4.1 Mount (in bind mode) some more directories. Use the command:
for i in /dev /dev/pts /proc /sys /run; do mount -B $i /mnt/$i ; done
4.2 Find and mount the EFI partition to /mnt/boot/efi
4.3 Chroot into /mnt
4.4 Regerate Grub Configuration.
grub-mkconfig -o /boot/grub/grub.cfg
4.5 Setup grub again.
grub-install /dev/sda

5. Done. Reboot!

Music: 00:00 - 04:48
Cold Funk - Funkorama by Kevin MacLeod is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/by/4.0/)
Source: incompetech.com/music/royalty-free/index.html?i…
Artist: incompetech.com/

Music: 04:49 - 10:15
Namaste by Audionautix is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/by/4.0/)
Artist: audionautix.com/

Music: 10:16 - 15:13
Over Time by Audionautix is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/by/4.0/)
Artist: audionautix.com/

Wanna support me? Visit: patreon.com/nehaljwani

About this tutorial

Nehal J Wani published this 15:13 video tutorial on November 6, 2016. It has been watched 53,102 times on YouTube.

Category
Education
Duration
15:13
Published
November 6, 2016
Views
53,102
Likes
439

Tags

Share

This tutorial in other languages