0

I have two HDD in the PC. First HDD has Installed Older Ubuntu with EFI partition. Second HDD is empty. When I try to install Ubuntu 17.04 "zesty" amd64 desktop (18cc54af55d7ca931bbb8588e8d9c1bd *ubuntu-17.04-desktop-amd64.iso) from USB flash key (with grub in EFI), there is no any option to select in "Installation Type" which HDD I want to erase (to partition by ubuntu installer); and with manual partition installation fails by installing to the wrong disk's EFI system partition, breaking existing Ubuntu boot process. I want to have 2 separate boot devices, so when one HDD will break, I will have second HDD in bootable state.

I have no option to selectively disable first or second HDD in the BIOS (and no security for one of them); and PC is not very easy (actually too hard) to disassemble to physically remove one of HDDs.

Can I hide one of my HDDs with grub or with help of console or in linux kernel?

osgx
  • 897

1 Answers1

1

I recommend the following workaround:

  1. Boot the Ubuntu installer in its "try before installing" mode.
  2. If desired, partition your disk(s) with GParted, parted, gdisk, or some other tool. (This step is optional, since you can generally do this in the Ubuntu installer, Ubiquity.) It sounds like you were trying to create a second ESP on your second disk, and that's probably a good idea, given that you'll have two Ubuntu installations, both of which will try to write their GRUB binaries to the same place if they share an ESP.
  3. Open a Terminal window.
  4. Type ubiquity -b. This launches Ubiquity in such a way that it will not install GRUB.
  5. Proceed with your installation in whatever way you desire. This will probably involve using the Something Else installation option.
  6. Reboot into your existing Ubuntu installation
  7. At this point, you can do one or both of two things:
    • Open a Terminal and type sudo update-grub. With any luck, this will cause your existing GRUB to detect the new installation of Ubuntu 17.04, enabling you to switch between them.
    • Install and configure some other boot loader or boot manager. My own rEFInd boot manager is likely to be easy to get working. Unlike most boot programs, rEFInd does not require explicit configuration to boot a new kernel when it's installed, so it tends to be a bit less prone to hassles when dealing with a computer that holds multiple Linux distributions.
  8. Boot into Ubuntu 17.04 and edit /etc/fstab so that whatever partition you want to use as its ESP is mounted at /boot/efi. I recommend then typing sudo mount -a and checking (with df, for example) that the ESP was mounted where you expected.

Be aware that you're likely to encounter boot coups from time to time, in which one OS takes over the primary boot loader duties, switching the configuration (and perhaps the boot program) from what the computer had been using. Despite the fact that you told Ubiquity to not install GRUB, chances are 17.04 will attempt to install it at some point as part of a package upgrade. This problem, and ways to deal with it, is covered on my boot coup page.

Rod Smith
  • 45,120
  • 7
  • 66
  • 108