LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-18-2017, 06:50 AM   #1
Frank Pug
LQ Newbie
 
Registered: Apr 2017
Posts: 1

Rep: Reputation: Disabled
Grub-install/dev/sda Failed


I am trying to install Ubuntu 17.04 on a completely bare machine. . 2 hard drives - 1TB SATA HDD and a Kingston UV400 240GB SSD, motherboard is Gigabyte GA-MA-H110M-S2H the processor is Intel7th Gen Dual Core l3 7100 3.9 Ghz I am trying to install from a CD /Download. every time I get the message Grub-install/DEV/SDA failed. how do I overcome this??
 
Old 04-18-2017, 06:55 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
32 or 64 Bit Media?

UEFI and friends require 64bit host.

Just a guess.

and was it reported as
Grub-install/DEV/SDA
because it should read
Code:
grub-install /dev/sda

Last edited by Habitual; 04-18-2017 at 06:57 PM.
 
Old 04-20-2017, 03:22 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Hello and welcome to LQ.

For some reason the installer can't install to what it thinks is /dev/sda.

Usually you see this when a usb drive is being used as boot media and the computer assumes the usb is the /dev/sda.

Wonder if there is an issue with 17 or how your system views an optical drive??

Last edited by jefro; 04-20-2017 at 10:05 PM.
 
Old 04-20-2017, 04:21 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Frank Pug View Post
I am trying to install from a CD /Download.
Frank:
Where did this media originate?
 
Old 05-17-2017, 01:08 PM   #5
powderburns
LQ Newbie
 
Registered: Dec 2011
Distribution: debian, mint, opensuse, fedora, ubuntu, fbsd
Posts: 11

Rep: Reputation: Disabled
You will need to mount the root partition of your new install to a filesystem in your flashdrive linux's /mnt/ and chroot to it.
example..
lets say your new install root part is /dev/sda1
and you are root
Code:
mkdir /mnt/sda1 ; mount /dev/sda1 /mnt/sda1
mount --bind /dev /mnt/sda1/dev
mount --bind /proc /mnt/sda1/proc
mount --bind /sys /mnt/sda1/sys
chroot /mnt/sda1
grub-mk-config -o /boot/grub/grub.cfg
grub-install /dev/sda
exit
cd ~
umount /dev/sda1
Shutdown, remove flash drive and reboot as normal.
In your BIOS, doublecheck your boot order and prior to that use fdisk or gparted to verify your new install partition has the boot flag enabled.
 
Old 05-21-2017, 03:12 AM   #6
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
A correction needs to be made. There is an extra dash in grub-mkconfig in the previous instructions.

Or you can just use the update-grub shortcut for Ubuntu. From the manpage:


NAME

update-grub, update-grub2 - stub for grub-mkconfig

SYNOPSIS

update-grub

DESCRIPTION

update-grub is a stub for running grub-mkconfig -o /boot/grub/grub.cfg
to generate a grub2 config file.

SEE ALSO

grub-mkconfig(8)

Therefore a correct and simpler sequence would be:

...
chroot /mnt/sda1
update-grub
grub-install /dev/sda
...

Last edited by tofino_surfer; 05-22-2017 at 03:50 PM. Reason: added detail
 
Old 06-09-2017, 05:46 AM   #7
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
By looking at the Motherboard and processor, I will say the system is UEFI and the boot loader should be installed on the EFI partition. Once you boot into the CD, do "Try Ubuntu". Then open a terminal and please post the output of the following command:
Code:
gdisk -l /dev/sda
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ubuntu 16.04 Server / grub-install /dev/sda failed chtsalid Linux - Server 2 01-13-2017 10:30 AM
ata_id HDIO_GET_IDENTITY failed for '/dev/sda' : Invalid argument igor012 Linux - Software 4 10-12-2012 10:35 AM
Question about one command - grub-install --root-directory=/mnt/ /dev/sda miros84 Linux - Software 8 01-28-2010 12:26 PM
Executing 'grub-install /dev/sda' failed. This is a fatal error. Melhisedek Linux - Newbie 17 07-03-2009 09:07 AM
Install lilo on external drive (/dev/sda), then boot as INTERNAL (/dev/hda)? slackware-elf Slackware 3 08-18-2007 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration