Série de artigos sobre o Linux Ubuntu você encontra aqui

You may need to install a new partition or a new disk in a virtual machine on Linux Ubuntu or someone else Linux distribution.

So if you follow the step by step you will be able to do it without any problems. Starting the partition with fdisk inside the Ubuntu terminal.

The first difficulty you are likely to encounter is that you are not allowed to execute the command.

When you try to list the drivers with fdisk –l, Ubuntu will probably ask you to raise the user level, in this case using the sudo utility.

A similar message will appear:

This is as I said earlier, because you need permissions as a system administrator to perform this command or installation.

Let’s run again using sudo, as shown below:

I leave the image of the command execution on my machine:

Executnado o comando sudo fdisk

The unit I am assembling is exactly the one in the figure below with 40 GB, to store my databases of the MySQL instance. See:

Partição de 40Gb disponível para o MySql

Then, I will execute the command to mount the new 40 GB disk.

ATTENTION: although you are detailing the step by step here on how to perform the installation of a new partition or disk in the Linux distribution, Ubuntu, I recommend that you take care before proceeding with the commands.

It is important to have a backup of your files, the system (that is why I use separate disks, one for the operating system itself) and also, if you are not sure what you are doing, do not run.

At your own risk! Executing the command, we will have the same previous warning (be careful):

Executando o comando sudo FDisk

* a very useful tip it warns you, if you don’t remember the commands, just type m and go following the instructions.

I’ll just list the free space on my partition, with that, I also check if I’m changing the correct disk.

Comando 'm' para listar as opções

I will create a new GPT partition table (Partition GPT Guid):

Criando nova partição no Ubuntu Linux

I add a new partition, with the command n, and I will use all the information that it asks for by default:

And then, we have the partition information created (i) and previously, I listed the free space (F), which in my case there was nothing left:

And finally, I write the changes on my disk (again, I reinforce CAUTION!):

After doing this, restart your PC so that Ubuntu can recognize it. Now, let’s assemble it.

That’s it and I hope I helped. Soon I intend to make a video about these tutorials, if you think it is valid, comment here to know if this can help or not.

Best regards!


Please enter your comment!
Please enter your name here