I have a dualboot system with fedora 27 and windows 10. I am running out of space on my linux volume group (i.e. partition) and I don't have unallocated space. I've read that I might need Gparted and that maybe resize2fs can be used to increase a linux partition (reference 1, reference 2) but all those cases were dealing with extending the root partition where unallocated space already exists.
Output of df -h
df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 3.9G 0 3.9G 0% /dev tmpfs 3.9G 192M 3.7G 5% /dev/shm tmpfs 3.9G 2.0M 3.9G 1% /run tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/mapper/fedora-root 43G 32G 8.1G 80% / tmpfs 3.9G 14M 3.9G 1% /tmp /dev/sda5 976M 196M 713M 22% /boot tmpfs 789M 16K 789M 1% /run/user/42 tmpfs 789M 11M 778M 2% /run/user/1000 tmpfs 789M 0 789M 0% /run/user/0
and ouput of fdisk -l:
fdisk -l Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xb72b0508 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 1026047 1024000 500M 7 HPFS/NTFS/exFAT /dev/sda2 1026048 395909025 394882978 188.3G 7 HPFS/NTFS/exFAT /dev/sda3 498311168 500113407 1802240 880M 27 Hidden NTFS WinRE /dev/sda4 395909120 498311167 102402048 48.8G 5 Extended /dev/sda5 395911168 398008319 2097152 1G 83 Linux /dev/sda6 398010368 498311167 100300800 47.8G 8e Linux LVM Partition table entries are not in disk order. Disk /dev/mapper/fedora-root: 43 GiB, 46103789568 bytes, 90046464 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/fedora-swap: 4.9 GiB, 5247074304 bytes, 10248192 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
My partitions are:
Windows 10 has 80 GB of free space. I want to take 70 GB from Windows and give it to fedora. How do I do this without losing either or both of my operating systems and any data? Can I shrink windows first to create unlocated space or should I create a partition of 70 GB inside the windows partition? If so can I do this inside windows else if I have to use a software like Gparted can I download it to my external hard drive which contains other files or is an empty memory stick necessary?
If it helps my linux partition was created in windows before installing fedora using rufus and I have roughly 5 GB of swap. If possible I would also like to increase the size of the swap to match my RAM size because I find my system tends to use up all of my swap partition.
I'm not sure if here is the right place to post this but I would appreciate any details. Thanks in advance.