I have two hard drives in my computer and would like to install Ubuntu 18.04.3 on the second hard drive. I wanted to know if there is any way to install it without leaving my main drive?
1 Answers
You "are" not on any drive. To install Linux, for example Ubuntu, on your second drive, you boot your computer from for example a live DVD, instead of starting Windows. That live DVD offers you to install Linux. During the installation you can select which drive you want to install Linux on by selecting the option "something else" when the installer asks you if you want to install "along side windows". If necessary, you can create the appropriate partitions and the like.
Your main drive with Windows should show up as /dev/sda
and your extra drive should show up as /dev/sdb
but this can change so you will want to verify this to make sure this is the case before you proceed with the installation.
Be aware that if you install Linux on your second drive (or any operating system on any drive, for that matter), all data that's currently on that drive gets overwritten. So you might want to move stuff beforehand.
In the installation process you also set up a boot loader. That boot loader offers you the choice the choice to start Linux or to start Windows every time you start your computer.

- 43,546
- 8
- 97
- 150

- 8,057
/dev/sda
and your extra drive should show up as/dev/sdb
but make sure to verify this before you proceed. For example, if/dev/sdb
shows windows, then you will need to install to/dev/sda
instead. – mchid Sep 18 '19 at 22:27