Labels

Android (1) bash (2) boost (2) C (34) C++ (2) cheatsheet (2) CLion (6) css (3) Debian (33) DL (17) Docker (2) Dreamweaver (2) Eclipse (3) fail2ban (4) git (5) GitHub (4) Hacking (3) html (8) http (1) iOS (1) iPad (1) IRC (1) Java (31) javascript (3) Linux (167) Mac (19) Machine Learning (1) mySQL (48) Netbeans (4) Networking (1) Nexus (1) OpenVMS (6) Oracle (1) Pandas (3) php (16) Postgresql (8) Python (9) raid (1) RedHat (14) Samba (2) Slackware (47) SQL (14) svn (1) tar (1) ThinkPad (1) Virtualbox (3) Visual Basic (1) Visual Studio (1) Windows (2)

Wednesday, 5 January 2022

Resize a VistualBox disk

To resize a virtualbox disk, you can do it from the GUI on current systems;

FILE > VIRTUAL MEDIA MANAGER

Afterwords, you still need to make this new size available to the guest ans to do this, you need to create or modify the existing partitions inside the guest OS.

For this note, we will consider a command line interface of an old Debian system, where we needed to use parted. The guide here was useful. Of course different OS's and situations will have different requirements, such as the use of fdisk, cfdisk, gparted etc

Essentially for parted, use print and print free to examine the existing partitions.

mkpart will prompt with some questions to allow you to create an additional partition. Use the Start and End values being the Start of the new partition which is the End of the previous Partition and the End value being either the End of the disk or some other end point.

After this we need to format the new partition and for this we can use;

mkfs.ext3 /dev/sda7

where /dev/sda7 is the new partition.

We then need to add it to the fstab file


No comments:

Post a Comment

Note: only a member of this blog may post a comment.