Stop using VirtualBox Ubuntu if you know this

Gia Huy ( CisMine)
5 min readApr 13, 2023

--

In this article, I’ll demonstrate a different way of using Ubuntu without VirtualBox, explain why, and provide setup instructions in the simplest way that newbie can catch it

Dual boot Ubuntu

Dual boot Ubuntu refers to the process of installing and running the Ubuntu Linux operating system alongside another operating system, such as Windows or macOS, on a single computer.

When you dual boot your computer with Ubuntu, you can choose which operating system to use when starting your computer. This allows you to switch between multiple operating systems without needing to replace one with another.

Let me briefly discuss the pros and cons of this:

pros:

  • Native performance: Running Ubuntu natively on your hardware will typically provide better performance than running it in a virtual machine
  • Full hardware access: You have full access to all hardware devices connected to your computer.
  • No resource limitations: Your operating system will be able to use all available resources on the machine without any limitations imposed by the virtualization layer

Cons:

  • Inflexibility: You can only run one operating system at a time, so you cannot easily switch between different OS environments
  • Setup complexity

My opinion is that if you work in the IT industry, you should be familiar with Ubuntu and maybe using all the time without switching to different OS environments, about the setup I’ll show you right now after this so why don’t you try it

SETUP

All of these are based on my struggles setting up a dual boot Ubuntu system, and while they may not be suitable for everyone, I hope you will use this article as a guide. These are also the guides I refer to: VideoArticle

I’ll summarize these steps, what you need, and also what kinds of errors you may get in.

  • Shirnk for the space

window + R -> diskmgmt.msc

Right click on C ( or any disk that you want) and shrink Volume. Remember that we need at least 160 000 MB

Congratulations, we’ve made it halfway! Let’s set up now.

Open rufus

1 is your USB

2 is Ubuntu .iso link

After finishing click CLOSE

Turn off BIOS

After closing rufus-> restart the computer -> while it opens press f2 to open BIOS ->Go to Boot -> turn off secure boot (disable)

I know that some computers will have different systems and different ways to disable secure boot but overall just find BOOT and then you will see secure boot

Ubuntu steps

after disable secure boot restart again, while it opens press f10(or f12, depending on your computer) to install Ubuntu. You will see these lines, choose Install Ubuntu(safe graphics) and then click the button ’ -> ’ on your computer to download

After that you will see this, choose install Ubuntu, and follow my steps below

free space is the space you shrink before ( at least 160 000MB) click free space then click ‘ + ’ ( that I red circle)

Size 15000 MB you see in this picture just for example, after choosing Primary -> Beginning of this space -> Mount point: / -> click ok

if you still have other free spaces redo these steps but

Instead of / ( Mount point) -> /home

click continue

Remember your password because you will use it many times to access to install some things in Ubuntu

Congratulation on success in setting up Ubuntu

Error you may get

you won’t see Install Ubuntu, don’t worry about that, choose Ubuntu(safe graphics) and click the button ‘ -> ’ on your computer you will see this

This mean your file/casper/vmlinuz has problem

now go to your USB disk

click casper

these are all the files you need in casper

You may get these problems:

  • Have less than 8 files (I got this before)
  • Especially don’t have vmlinuz file

go back to the path that you install Ubuntu 20.04.6 and extract here

after that copy all files that you extract to paste into your USB

well done, the problem has been solved. If you still get any troubles let me know. Restart your computer and f2 to do the following steps above.

Inconclusion

this is the end of this article, I wish you all luck in installing Ubuntu, if you enjoyed it, check out the others in the series “ Stop using that if you know this”

References

--

--

Gia Huy ( CisMine)

My name is Huy Gia. I am currently pursuing a B.Sc. degree. I am interested in the following topics: DL in Computer Vision, Parallel Programming With Cuda.