Introduction to partitioning the root directory of Ubuntu with Vmvare virtual machine

Introduction to partitioning the root directory of Ubuntu with Vmvare virtual machine

Preface

When I installed Ubuntu 18.04, I manually partitioned the system, giving 15G to the root directory / and about 50G to the home directory /home. I thought that was enough, but when I installed petlinux (a software for porting Linux) later, it needed to be installed in the /opt directory, which resulted in insufficient space in the root directory.

Therefore, the virtual machine needs to be repartitioned. After consulting relevant information, it is finally successfully achieved using Ubuntu's image cdlive and the gparted partition tool.

Rationale

Use the gparted tool to repartition the system, but you cannot partition in the installed Ubuntu because after entering the system, the disks that need to be partitioned are occupied.

Therefore, you need to use cdlive to enter the trial system, and then partition the system.

Procedure

1. Start the virtual machine from CD

As shown in the figure above, in the virtual machine settings, CD/DVD, check Connect at startup and select the image file to be used.

Then start the VM from "Enter firmware at power on"

In the interface above, use + - to move CD-ROM Drive to the first one, then F10, select yes to save and exit.

After selecting the language, click Try Ubuntu to enter the system.

2. Use GParted tool to partition

Search for the GParted tool in the application and partition it.

The picture below is my disk before partitioning.

sda1 is mounted on /boot, sda2 has a capacity of 62.09G and is divided into sda5 swap partition, sda6 is mounted on the root directory, and sd7 is mounted on the home directory. sda3 was expanded to 64G after the virtual machine was installed.

As shown in the figure above, when there is a lock on the disk, partitioning is not possible.

Select sda5, right-click and select "Disable swap space", the locks behind the disk will disappear and you can partition.

3. How to use GParted.

Select the disk you want to resize, right-click and select Change Size/Move

Move the arrow left or right to change the partition size.

My partitioning process:

1. Expand sda2 by 64G.

2. Expand sda7 and move it backwards.

3. Expand the space of sda6.

The adjusted partition is shown in the figure below, just save it.

Then shut down the virtual machine and the interface shown below will be displayed. Disconnect the CD from the settings and press "ENTER" on the keyboard to restart.

Log into the system normally.

The new disk partition is shown in the figure below, achieving the purpose of expanding the root directory.

This is the end of this article about how to partition the root directory of Ubuntu with the Vmvare virtual machine. For more information about how to partition Ubuntu with Vmvare, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Introduction to the process of extending the boot partition in Kylin 4.0.2 (Ubuntu)
  • How to add a swap partition in Ubuntu

<<:  Solve the problem of OpenLayers 3 loading vector map source

>>:  Summary of relevant knowledge points on how adaptive web design is achieved

Recommend

base target="" specifies the target of the base link to open the frame

<base target=_blank> changes the target fram...

js basic syntax and maven project configuration tutorial case

Table of contents 1. js statement Second, js arra...

How to perfectly implement the grid layout with intervals on the page

Typical layout examples As shown in the above pic...

Solution to the problem that MySQL commands cannot be entered in Chinese

Find the problem Recently, when I connected to th...

Detailed explanation of docker's high availability configuration

Docker Compose Docker Compose divides the managed...

Nexus uses nginx proxy to support HTTPS protocol

background All company websites need to support t...

Implementation of vertical centering with unknown height in CSS

This article mainly introduces the implementation...

js to achieve star flash effects

This article example shares the specific code of ...

Docker deployment of Kafka and Spring Kafka implementation

This article mainly introduces the deployment of ...

Comprehensive understanding of html.css overflow

Comprehensive understanding of html.css overflow ...

Shorten the page rendering time to make the page run faster

How to shorten the page rendering time on the bro...

Implementation of JavaScript downloading linked images and uploading them

Since we are going to upload pictures, the first ...

An article teaches you how to use js to achieve the barrage effect

Table of contents Create a new html file: Create ...

How to implement vue page jump

1. this.$router.push() 1. Vue <template> &l...

Detailed explanation of MySQL backup process using Xtrabackup

Table of contents 01 Background 02 Introduction 0...