Article 6M1CZ How to extend a partition in Linux Virtualbox machine?

How to extend a partition in Linux Virtualbox machine?

by
NuxIT
from LinuxQuestions.org on (#6M1CZ)
Hello, I'm running low on space and wish to add the 8GB I allocated within Virtual box to my VM in virtualbox. I see the 8GB free in gparted but I'm not sure how I can add this space to my /dev/sda1 partition? I think I need to use LVM but not sure. I'm running Oracle VirtualBox on Ubuntu and have Linux Mint VM I created in VBOX.

Code:# df -H
Filesystem Size Used Avail Use% Mounted on
udev 3.1G 0 3.1G 0% /dev
tmpfs 623M 1.2M 622M 1% /run
/dev/sda1 29G 23G 4.4G 85% /
tmpfs 3.2G 0 3.2G 0% /dev/shm
tmpfs 5.3M 0 5.3M 0% /run/lock
tmpfs 623M 2.7M 620M 1% /run/user/1000Code:$ sudo fdisk -l
[sudo] password:
Disk /dev/sda: 35.91 GiB, 38561972224 bytes, 75316352 sectors
Disk model: VBOX HARDDISK
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: 0xd75cca19

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 56719359 56717312 27G 83 Linux
/dev/sda2 56721406 58718207 1996802 975M f W95 Ext'd (LBA)
/dev/sda5 56721408 58718207 1996800 975M 82 Linux swap / SolarisAppreciate any assistance with allocating the 8GB I have free to my /dev/sda1

Here's the 8GB free in gparted I wish to allocated to /dev/sda1
9TZm064
https://imgur.com/a/9TZm064
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments