Anyways, I'm here because I have a PC dual booting Windows 10 and CentOS 7. Unfortunately CentOS 7 does not run very well on this machine, which I'm thinking is related to the fact that I only have about 1 GB of space left for root and only assigned 1 GB of swap space. So I would like to extend Swap from 1 to 2 GB and add the rest of the Unallocated Space I've unassigned from Windows onto Root. However, I'm very new to Partitioning and not sure how to do this.
Here is details about the Unallocated Space that comes up in Disk (I would post a screenshot, but I've been unsuccessful in my ability to install a Paint-like program like XPaint or GIMP; <code>yum install xpaint</code> comes back with <code>No package xpaint available.</code> even as I'm running under root):
I've tried looking through several guides, and this is the easiest to follow: https://www.vembu.com/blog/increase-swa ... -centos-7/Size: 11 GB (10,737,418,240 bytes)
Devicie: /dev/sda
Contents: Unallocated Space
So I've performed the following ...
swapon -s
Code: Select all
Filename Type Size Used Priority
/dev/dm-1 partition 1126396 0 -1
Code: Select all
total used free shared buff/cache available
Mem: 15929 1172 13696 199 1061 14229
Swap: 1099 0 1099
Code: Select all
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/cl-root 8.7G 7.6G 1.1G 88% /
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 148K 7.8G 1% /dev/shm
tmpfs 7.8G 9.1M 7.8G 1% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/sda7 1014M 143M 872M 15% /boot
/dev/sda1 496M 43M 454M 9% /boot/efi
tmpfs 1.6G 16K 1.6G 1% /run/user/0
fdisk /dev/sda (since the Unallocated Space should be in /dev/sda, right?)
Code: Select all
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help):
Code: Select all
Partition number (9-128, default 9):
Oh, and my root and swap spaces are in /dev/sda8, as you can see when I perform this command:
Code: Select all
[root@localhost ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 238.5G 0 disk
├─sda1 8:1 0 500M 0 part /boot/efi
├─sda2 8:2 0 128M 0 part
├─sda3 8:3 0 204.7G 0 part
├─sda4 8:4 0 450M 0 part
├─sda5 8:5 0 12G 0 part
├─sda6 8:6 0 1M 0 part
├─sda7 8:7 0 1G 0 part /boot
└─sda8 8:8 0 9.8G 0 part
├─cl-root 253:0 0 8.7G 0 lvm /
└─cl-swap 253:1 0 1.1G 0 lvm [SWAP]