grub is installed to /dev/sda by default and fails
This bug report was converted into a question: question #668780: grub installation in ubiquity implementation.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I choose to install Ubuntu 18.04 on /dev/sdb. I don't want to do partitioning manually so I don't open advanced partitioning tool.
I expect grub to be installed on same disk. Because my /dev/sdb is SSD and it is first in boot list in BIOS, and my /dev/sda is empty HDD and I'm not going to install anything on it and going to use it as storage.
But it seems grub-installer tries to install grub on /dev/sda by default. There are 2 cases:
1) If /dev/sda has no partition grub-installer fails. After the failure it suggests to choose another disk for grub. I choose /dev/sdb and it still fails.
2) If /dev/sda has any partition Ubuntu installation finishes successfully. But it doesn't boot after installation. I see only black screen with cursor blinking.
The workaround I found is to open advanced partitioning tool, change grub installation disk to /dev/sdb, go back, and again choose Ubuntu installation on /dev/sdb.
All logs attached here are from VirtualBox where I have reproduced the issue with grub-installer failure. I've reproduced second case as well but I'm not sure how to collect logs in this case.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ubiquity 18.04.14
ProcVersionSign
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CasperVersion: 1.394
CurrentDesktop: ubuntu:GNOME
Date: Sun May 6 00:21:57 2018
InstallCmdLine: file=/cdrom/
LiveMediaBuild: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
LC_NUMERIC=C.UTF-8
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
description: | updated |
description: | updated |
affects: | grub-installer (Ubuntu) → ubiquity (Ubuntu) |
summary: |
- grub-installer fails during installation + grub is installed to /dev/sda by default and fails |
Changed in ubiquity (Ubuntu): | |
status: | New → Invalid |
It depend on the boot sequence of your BIOS. If the SSD is the first one, and you install the grub on HDD, you can't boot up into HDD. You need change the boot order. Or enter the boot menu with F12, after that select HDD to boot.