Linux Partition Use Fdisk

Hello guys, this time I will explain about partitions on Linux, actually there are actually applications that have GUIs, but if so, everyone can, because we should be different. Ha ha.

Oh yes, maybe this is a little difficult, and it can endanger your data, so I suggest using a virtual machine to try it.

The first
The first one we try to list partitions that we have, by typing

late
Later, the output will come out like this

The second
We enter into fdisk in a way

fdisk / dev / sdb (this matches the name of the device you have)
Because my device is called sdb then the results are like this

and if you want to see the guide, you type the letter “m”. Then it will come out like this

The third
Now, we will try to divide the sdb partition before, into several more parts

Command (m for help): n = new (create a new partition)
Partition type
   p primary (0 primary, 0 extended, 4 free)
   e extended (container for logical partitions)
Select (default p): p (main)
Partition number (1-4, default 1): Love the number is up to you, but if you just enter it, then it will set to default (1), and if there is one, then it will set directly (2), and so on.
First sector (2048-2360137, default 2048): (this just defaults to default)
Last sector, + sectors or + size {K, M, G, T, P} (2048-2360137, default 2360137): + 200M (size you want to give)

Created a new partition 1 of type ‘Linux’ and of size 200 MiB.

Command (m for help):
After that, let’s type p (print)

Before we share:

After sharing:

After that, try to exit fdisk by typing quit

And we type again and see the results

Now, we have divided the partition, then, where are the rest?

Calm down, the rest is still there, but we join it in another way, namely in this way

parted / dev / sdb (adjust to your respective device)
Then it will come out like this:

Now, how to combine the separate ones like this:

        copyright information of GNU Parted
(parted) mkpart (make part)
Partition type? primary / extended? primary (main)
File system type? [ext2]? ext4 (this is Linux default)
Start? 500MB (This is just about us, later the system will adjust itself)
End? 1100MB (Same as rich in the top, the system adjusts itself, even if the error later he will tell you what’s wrong)
(parted) (successful)
After that, try typing again, and you will see the rest will be allocated to the new partition

But it looks like this is not right, because I might be wrong, bro.

Bonus
Oh yes, for those of you who want to use a virtual-box, I suggest that the connection settings in the virtual-box we change so we can remove them using our original Linux terminal, because if we play in the virtual-box it will feel heavy.

Here’s how:

Follow what is drawn, then you will be able to uninstall it using ssh with your native Linux terminal intermediary. But don’t forget to install sh first, ok!

Thank you
Maybe that’s what I can write this time, as usual, criticism & suggestions are needed in my writing to be better in the future. So, you can contact me via Twitter, Instagram, which is listed at the bottom of my website, or on the criticisms & suggestions menu which is right on the top of my web.

Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *