[Bug 1769404] Re: grub is installed to /dev/sda by default and fails
AtesComp
atescomp at gmail.com
Fri Mar 22 21:25:20 UTC 2019
Found the issue. Do the following:
> sudo debconf-show grub-pc
> sudo dpkg-reconfigure grub-pc
The last screen sets the default GRUB device(s).
See: https://askubuntu.com/questions/135741/how-should-one-set-the-grub-
pc-packages-install-devices-debconf-setting
** Changed in: ubiquity (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1769404
Title:
grub is installed to /dev/sda by default and fails
Status in ubiquity package in Ubuntu:
Invalid
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
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
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/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --- maybe-ubiquity
LiveMediaBuild: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
LANGUAGE=en_US.UTF-8
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
LC_NUMERIC=C.UTF-8
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1769404/+subscriptions
More information about the foundations-bugs
mailing list