4

I have a PC with 5 hard drives (SSD and HDD). One of the drives has Windows 10. In the past, I have tried to install Ubuntu and Windows using the following method so there will be no interference between the two operating systems:

I Simply removed all the hard drives, except the one that I wanted to install Ubuntu, then install ubuntu and connect other hard drives. Then select the boot drive using the BIOS.

Can I do the same thing without taking out taking all the drives?

I mean I do not like to see the GRUB on boot, I want windows to boot as default without the need for GRUB.

2
  • It is rather straightforward to install Ubuntu without touching Windows and its boot system in BIOS mode (alias CSM alias legacy mode). But in UEFI mode, the system does not obey your instructions and will tamper with the UEFI boot system, that is used by Windows. So in UEFI mode you must disconnect the other drives in order to avoid interference with Windows. You can use the instructions at this link (even if you intend to install Ubuntu into an internal drive), Boot Ubuntu from external drive
    – sudodus
    May 18, 2018 at 20:50
  • Depending on your computer you could probably disconnect the extra drives from BIOS settings instead of removing them physically. Check anything related to SATA ports in your BIOS settings May 18, 2018 at 21:03

2 Answers 2

8

Yes you can use the same method as before

That is:

Step 1: Disconnect all the hard drives except the one you want to install Ubuntu in.

Step 2: Install Ubuntu

Step 3: Reconnect all the other hard drives.

If you don't want to open the computer and disconnect the drives, that is fine too. Just be careful when you select the drives. See Guilherme's answer below about using "Something else..." option and "Location for bootloader (GRUB) installation". In particular, the Grub, also known as the bootloader, goes in the same drive as Ubuntu.

There are a few things you need to keep in mind if this is the first time you are using an UEFI/GPT system.

Point 1: Make sure the Installation media or the Live DVD/USB you install Ubuntu from boots in the UEFI mode, not the Legacy mode.

When you boot the Install USB/DVD in UEFI mode you will see a Grub based menu with

enter image description here

If the install USB/DVD boots in the Legacy mode, you will see a graphical page with the these choices:

enter image description here

I assume Windows is installed in the UEFI mode, not Legacy BIOS mode in the other hard drive. If you have Windows in UEFI and Ubuntu in Legacy modes, then every time you want to switch OS you will have to get into UEFI settings and change mode and reboot.

Point 2: Use Guided Partition Table (GPT) in the drive you install Ubuntu. This may not be necessary, but UEFI and GPT goes hand in hand, and having MBR (Master Boot Record) based partition table, may cause issues.

If you plan to use the default installation method for Ubuntu and use the whole drive, then you don't need to worry about partition schemes. Ubuntu will do everything needed.

Done

If you prefer to do your own partitioning then there is one more thing...

Point 3: You need to create an extra partition needed for UEFI. This has to be a primary partition in FAT32 format of size between 100MB to 500MB. It must have the esp and boot flags set. You may want to make it the first partition. The mount point for this partition must be /boot/efi.

You can partition the rest of the drive as you please. The default option would be to partition the rest of the drive as a single ext4 formatted partition with mount point /. Most recent versions of Ubuntu use a swap file instead of a linux-swap partition. So, you may want to skip that. You may use other partition schemes if you know what you are doing.

Bug Alert!

There is a bug (bug number: 1396379) in the Ubuntu installer that installs the grub bootloader on the first ESP it finds. See https://ubuntuforums.org/showthread.php?t=2182302 for discussions on this.

To workaround this bug you will need to take a few extra steps.

Workaround

  1. When you boot from the LiveUSB in UEFI mode, use the Try Ubuntu without Installing option.
  2. Open the Gparted application when the Ubuntu desktop starts.
  3. Select the Windows (first) drive within Gparted at the top right corner(1):

enter image description here

The NVME drive in this picture does not have Windows. However, it has an EFI System Partition (ESP).

  1. Highlight the ESP in the bottom list of partitions as shown above (2). Right click on the highlighted partition and select Manage Flags from the context menu. You will see:

enter image description here

You should see two flags, boot and esp checked. Uncheck those two flags. Click Close button to exit the Manage Flag window. Click the green "Apply" button if it is clickable.

You will need to restore those check marks once Ubuntu is installed using the same above process so that Windows can boot from the first drive.

Close Gparted.

This is the end of the workaround.

Hope this helps

2
  • Hey man, can you fix the images?
    – ailveen
    Dec 4, 2019 at 20:55
  • 1
    @ailveen Thanks for brining this to my attention. They are fixed now. :)
    – user68186
    Dec 4, 2019 at 21:29
2

I've never installed ubuntu X windows in different HD's, but I think if you, in the installation, check the option "Something else" in the "Installation Type" screen (image 1), you'll be redirected to the partitions screen (image 2).

In the partitions screen, select the HD you want to install ubuntu (indicated in the image).

After that, continue with the installation and be happy!

image 1

image 2

1
  • You have to create an ext4 partition with mount point at "/", and another at "/home" (I don't know if "/home" is necessary anymore). You can, but not necessary, create a swap partition. For more information, feel free to check askubuntu.com/questions/343268/… . It isn't any secret to manually partition the disks on install. May 18, 2018 at 19:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.