Install Ubuntu with USB bootable
What you need
A Linux Image. I use Ubuntu 16.04 from CUHK in this article.
A USB for bootable drive
Another USB (If you want to make it dual boot, the OS will be installed into this USB)
A Windows computer (I dont recommend using macbook to install linux because that is a waste.)
A Backup USB to backup all your stuff
Lets Start by…
~Get Bootable USB from Here (LinuxLiveUSB) (Old Method)~
Create bootable USB drives the easy way (Rufus) (New Method, Stable)
Use The App the burn a Bootable USB.
Remember to back up all your stuff in case anything fucked up.
Know your boot menu key and bios key!
What is my boot menu key and Bios key?
In case above website didnt work
If you want to clean install
Skip This Section if you want to make it dual boot.
Resetting your PC
Plug in the USB and Enter Installilation mode by holding Boot Menu Key when restart
What is my boot menu key and Bios key?
Select Erase disk and install Ubuntu
After finishing install, restart the computer
You will now see your Linux
Done!
If you want to make it dual boot (OS will be installed into USB)
Plug in the USB
Plug in Another USB
Enter Installilation mode by holding Boot Menu Key when restart
What is my boot menu key and Bios key?
In case above link is dead
Usually Bio keys are
Esc
orF2
.
Remember to disable Secure boot
Select the corresponding that you want to install
After finishing install, restart the computer
Press Bio key when starting the computer
Use your Linux version
Done!
If you want to make it dual boot (Make Partition)
Plug in the boot USB
Enter Installilation mode by holding Boot Menu Key when restart
What is my boot menu key and Bios key?
In case above link is dead
Usually Bio keys are
Esc
orF2
.
Select Install Ubuntu alongside Windows BBoot Manager
It will also install a boot loader (called Grub) onto the main drive itself.
This will present you with a text menu when you boot that will allow you to pick either Windows or Ubuntu to boot into once you are done.
After finishing install, restart the computer
Press Bio key when starting the computer
Use your Linux version
Done!
Quick Start
Extra Info - Install Ubuntu on WSL
If you are using windows and you want to just install on a vm :
Windows Subsystem for Linux Installation Guide for Windows 10
Extra Info - Install Windows from Ubuntu
How to Install Windows from Ubuntu
In case UNetbootin cannot detect your usb drive:
1 | sudo unetbootin installtype=USB targetdrive=/dev/sdX |
unetbootin GUI will open with the selected drive already setted, also if it is ntfs formatted.
Troubleshooting
System freezes on startup or freezes on trying to shut down or just gives black screen of death.
If it shown “recovering journal” and stuck, do this:
In Grub menu, press e
Go to the line start with linux
Add nouveau.modeset=0
next to “… quiet splash”
Then press F10.
It should let you enter Ubuntu environment.
Connect the internet, and Open terminal:
1 | sudo apt-get update |
then just install the latest driver in Software & Updates -> Additional Drivers
Click Apply. Then reboot.
Everything should work fine now.
Recovery mode
In case we edited some file and messed up and cant boot into ubuntu,
go to recovery mode.
- Start up Ubuntu in recovery mode.
- Choose "Drop To Root Shell Prompt’
- By default, this will allow you to access the file system in read-only mode.
- Switch to read/write mode by executing.
1 | mount -o remount,rw / |
Then we can edit files in terminal.
After finished editing, Simply type reboot, and hit Enter to reboot ubuntu.
Another way
If it is black screen but it is not freezed, we can press alt
+ f2
to go into terminal.
First we need to login with username and password.
Then you can mess with the terminal and fix problems.