LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 01-21-2019, 09:54 PM   #1
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
Issues with grub installing on multiple distros


Hello all,

I will just start at the beginning, I have an Asus G751JM that I have been using a few years now without any issues. Suddenly it quit booting. (installed on a 240GB Corsair Neutron GTX ssd) I tried a reinstall and it went through to the installation of grub at which point it failed, and failed to boot. I ran a SMART test and it passed. So I tried some other distros. Same issue. Fails at grub install.

At this point I figured my ssd may just be dying (yes despite smart) as it's maybe 5 years old, so I bought a new one. I am having the same issues with it failing with the installation of grub.

I have tried installing devuan and ubuntu studio on the new drive both failing at grub. Both through the guided installations and manually formatting.

I can chroot into these installations no issues or boot it using SuperGrubDisk2, but I cannot get grub working properly.

Anyone have any ideas what's going on here?
 
Old 01-21-2019, 10:18 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Maybe it's not the SSD at fault - the lapop is at least as old. We have an old HP that occasionally resets itself and defaults back to booting Windows (that never gets used) - I have to go in and change the default back with efibootmgr.
Check your firmware to ensure it hasn't gone and reset options like safeboot back to defaults. Just a stab in the dark ...
 
Old 01-21-2019, 10:45 PM   #3
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Original Poster
Rep: Reputation: 190Reputation: 190
I checked the firmware settings and nothing has changed. Tried installing in the second hdd bay and same results. It's strange to me that it only has issues with installing grub. Windows boots fine on the machine.
 
Old 01-22-2019, 06:09 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
It would be useful if you explained what "failing at grub" means. If you get a message it would be best if you posted it, the entire message as there are numerous reasons a bootloader will fail to install. You indicate windows is working but neglect to indicate which version of windows you are using. That also would be useful information. Are you using and were you using UEFI on the machine, with both windows and whichever Linux you used and now try to use?
 
Old 01-22-2019, 06:18 AM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
list of items to do:
fast boot disabled in windows 10
secure boot disabled in bios
for uefi system create fat32 partition flagged esp(if it doesn't already exist) mounted at /boot/efi
for gpt drive booting in legacy mode create a 1mb partition flagged grub-bios/boot-bios partition, unformatted/cleared
 
Old 01-22-2019, 01:12 PM   #6
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Original Poster
Rep: Reputation: 190Reputation: 190
Hello all,

So it looks like I got it working. Here are the steps I took:

• Boot into UbuntuStudio 18.10 Live > Try Ubuntu without installing.
• Open gparted and create the partitions to be installed to(no lvm or encrpytion). I created a 512MB EFI, 512MB boot, 50GB root, 880GB home, and 8GB swap partition. Close gparted
• Run the installer, unselect “Download updates while installing” and unselect the third party software option. Install.
• It once again failed at the installation of grub.
• Quit installation, reboot to the live install usb again
• Mount root and boot to /mnt and /mnt/boot
• Mount virtual filesystems
Code:
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i mnt$i; done
• Chroot to the system
• Update repos [apt-get update]
• purge grub
Code:
apt-get purge grub-common
• Format the EFI partition from terminal
Code:
mkfs.vfat /dev/sda1
(Not sure this part was necessary, but I read in some other forum and post of someone with a similar issue stating that grub failed to install because it wasn’t formatting the efi partition properly for whatever reason)
• Reinstall grub
Code:
apt-get install grub-pc
This time there were no errors/warnings and it appeared to complete as normal, so I rebooted and It booted Ubuntu Studio as expected.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Multiple hardware issues / multiple distros stilllearing Linux - Newbie 4 01-29-2010 12:24 AM
Distros, distros, distros...slight rant.. Jamesb427 Linux - Distributions 1 05-31-2007 03:10 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
LXer: See distros. See distros run. Run, distros, run. LXer Syndicated Linux News 0 06-13-2006 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 06:08 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