Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Dilukshan

Linux Dual Booting: Unable to install GRUB

3 hours ago, inalone said:

What distro is this out of curiosity? Also, what type of partition is /dev/sda8? Is it FAT32? Also, what are on the other partitions - 8 partition is a hell of a lot for a single drive.

Its KDE Neon (Ubuntu Based Distro) and 8 partitions is perfectly fine.

 

3 hours ago, Sauron said:

what did you do to get there? grub should be installed to the drive itself, so /dev/sda, not a partition (sdaX indicates a partition).

Not in EFI Instances, it would be installed to a Fat32 Partition. Even Grub legacy can be installed in MBR mode to a set partition, though I imagine he is using ext4 which I don't believe supports it.

 

7 hours ago, Dilukshan said:

Hi Guys, I'm having a problem when Dual Booting a Linux distro in my laptop.. 

 

I'm getting an error which is "Unable to Install Grub In Dev/sda (the partition. I chose to install grub)

 

how to Dual boot kde neon correctly. I'm a beginner, please explain it very easily....

 

And if I set a efi partition and install boot loader into that partition it also gives me an error.. it is "failed to install grub-amd64" ... Please help me...

 

Make sure Secure Boot is turned off in your BIOS and your Bootable media was made in GPT mode using DD. If you are unsure, use etcher. Otherwise if all that is good and your install was completed but with just a grub error, try the following.

Boot into your Live Install Media and open a terminal.
Run fdisk -l
Find your 2 partitions, one should be whatever your root that you assigned during install and one should have its type as EFI. example. /dev/sda1
mkdir /mnt
mount /dev/rootpartition /mnt
mkdir /mnt/boot/EFI
mount /dev/efipartition /mnt/boot/EFI
chroot /mnt
grub-install --target=x86_64-efi  --bootloader-id="KDE Neon" --recheck
grub-mkconfig -o /boot/grub/grub.cfg
exit
reboot

Ubuntu likes to do things differently so hopefully this still applies.

Recommended Posts

Posted · Original PosterOP

Hi Guys, I'm having a problem when Dual Booting a Linux distro in my laptop.. 

 

I'm getting an error which is "Unable to Install Grub In Dev/sda (the partition. I chose to install grub)

 

how to Dual boot kde neon correctly. I'm a beginner, please explain it very easily....

 

And if I set a efi partition and install boot loader into that partition it also gives me an error.. it is "failed to install grub-amd64" ... Please help me...

IMG_0463.JPG

Link to post
Share on other sites

What distro is this out of curiosity? Also, what type of partition is /dev/sda8? Is it FAT32? Also, what are on the other partitions - 8 partition is a hell of a lot for a single drive.


Desktop PC - Xeon E3 1231 V3, MSI Z97 PC Mate, 16GB RAM, PowerColor R9 390

OS - Fedora 32 (Desktop PC), elementaryOS (laptop)

Link to post
Share on other sites

what did you do to get there? grub should be installed to the drive itself, so /dev/sda, not a partition (sdaX indicates a partition).


...is there a question here? 🤔

sudo chmod -R 000 /*

What is scaling and how does it work? Asus PB287Q unboxing! Console alternatives :D Watch Netflix with Kodi on Arch Linux Sharing folders over the internet using SSH Beginner's Guide To LTT (by iamdarkyoshi)

Sauron'stm Product Scores:

Spoiler

Just a list of my personal scores for some products, in no particular order, with brief comments. I just got the idea to do them so they aren't many for now :)

Don't take these as complete reviews or final truths - they are just my personal impressions on products I may or may not have used, summed up in a couple of sentences and a rough score. All scores take into account the unit's price and time of release, heavily so, therefore don't expect absolute performance to be reflected here.

 

-Lenovo Thinkpad X220 - [8/10]

Spoiler

A durable and reliable machine that is relatively lightweight, has all the hardware it needs to never feel sluggish and has a great IPS matte screen. Downsides are mostly due to its age, most notably the screen resolution of 1366x768 and usb 2.0 ports.

 

-Apple Macbook (2015) - [Garbage -/10]

Spoiler

From my perspective, this product has no redeeming factors given its price and the competition. It is underpowered, overpriced, impractical due to its single port and is made redundant even by Apple's own iPad pro line.

 

-OnePlus X - [7/10]

Spoiler

A good phone for the price. It does everything I (and most people) need without being sluggish and has no particularly bad flaws. The lack of recent software updates and relatively barebones feature kit (most notably the lack of 5GHz wifi, biometric sensors and backlight for the capacitive buttons) prevent it from being exceptional.

 

-Microsoft Surface Book 2 - [Garbage - -/10]

Spoiler

Overpriced and rushed, offers nothing notable compared to the competition, doesn't come with an adequate charger despite the premium price. Worse than the Macbook for not even offering the small plus sides of having macOS. Buy a Razer Blade if you want high performance in a (relatively) light package.

 

-Intel Core i7 2600/k - [9/10]

Spoiler

Quite possibly Intel's best product launch ever. It had all the bleeding edge features of the time, it came with a very significant performance improvement over its predecessor and it had a soldered heatspreader, allowing for efficient cooling and great overclocking. Even the "locked" version could be overclocked through the multiplier within (quite reasonable) limits.

 

-Apple iPad Pro - [5/10]

Spoiler

A pretty good product, sunk by its price (plus the extra cost of the physical keyboard and the pencil). Buy it if you don't mind the Apple tax and are looking for a very light office machine with an excellent digitizer. Particularly good for rich students. Bad for cheap tinkerers like myself.

 

 

Link to post
Share on other sites
Posted · Best Answer
3 hours ago, inalone said:

What distro is this out of curiosity? Also, what type of partition is /dev/sda8? Is it FAT32? Also, what are on the other partitions - 8 partition is a hell of a lot for a single drive.

Its KDE Neon (Ubuntu Based Distro) and 8 partitions is perfectly fine.

 

3 hours ago, Sauron said:

what did you do to get there? grub should be installed to the drive itself, so /dev/sda, not a partition (sdaX indicates a partition).

Not in EFI Instances, it would be installed to a Fat32 Partition. Even Grub legacy can be installed in MBR mode to a set partition, though I imagine he is using ext4 which I don't believe supports it.

 

7 hours ago, Dilukshan said:

Hi Guys, I'm having a problem when Dual Booting a Linux distro in my laptop.. 

 

I'm getting an error which is "Unable to Install Grub In Dev/sda (the partition. I chose to install grub)

 

how to Dual boot kde neon correctly. I'm a beginner, please explain it very easily....

 

And if I set a efi partition and install boot loader into that partition it also gives me an error.. it is "failed to install grub-amd64" ... Please help me...

 

Make sure Secure Boot is turned off in your BIOS and your Bootable media was made in GPT mode using DD. If you are unsure, use etcher. Otherwise if all that is good and your install was completed but with just a grub error, try the following.

Boot into your Live Install Media and open a terminal.
Run fdisk -l
Find your 2 partitions, one should be whatever your root that you assigned during install and one should have its type as EFI. example. /dev/sda1
mkdir /mnt
mount /dev/rootpartition /mnt
mkdir /mnt/boot/EFI
mount /dev/efipartition /mnt/boot/EFI
chroot /mnt
grub-install --target=x86_64-efi  --bootloader-id="KDE Neon" --recheck
grub-mkconfig -o /boot/grub/grub.cfg
exit
reboot

Ubuntu likes to do things differently so hopefully this still applies.


My System - OS: Arch Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.33v Motherboard: Asus Strix X470-I Gaming RAM: 2x16GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: MSI Radeon 5700XT Mech OC

Wifes System - OS: Manjaro Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.32v Motherboard: Asus Crosshair VI Hero X370 RAM: 2x8GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: AMD 5700XT Reference Card

Link to post
Share on other sites
3 minutes ago, Nayr438 said:

Not in EFI Instances, it would be installed to a Fat32 Partition. Even Grub legacy can be installed in MBR mode to a set partition, though I imagine he is using ext4 which I don't believe supports it.

Fair, I was assuming legacy bios.


...is there a question here? 🤔

sudo chmod -R 000 /*

What is scaling and how does it work? Asus PB287Q unboxing! Console alternatives :D Watch Netflix with Kodi on Arch Linux Sharing folders over the internet using SSH Beginner's Guide To LTT (by iamdarkyoshi)

Sauron'stm Product Scores:

Spoiler

Just a list of my personal scores for some products, in no particular order, with brief comments. I just got the idea to do them so they aren't many for now :)

Don't take these as complete reviews or final truths - they are just my personal impressions on products I may or may not have used, summed up in a couple of sentences and a rough score. All scores take into account the unit's price and time of release, heavily so, therefore don't expect absolute performance to be reflected here.

 

-Lenovo Thinkpad X220 - [8/10]

Spoiler

A durable and reliable machine that is relatively lightweight, has all the hardware it needs to never feel sluggish and has a great IPS matte screen. Downsides are mostly due to its age, most notably the screen resolution of 1366x768 and usb 2.0 ports.

 

-Apple Macbook (2015) - [Garbage -/10]

Spoiler

From my perspective, this product has no redeeming factors given its price and the competition. It is underpowered, overpriced, impractical due to its single port and is made redundant even by Apple's own iPad pro line.

 

-OnePlus X - [7/10]

Spoiler

A good phone for the price. It does everything I (and most people) need without being sluggish and has no particularly bad flaws. The lack of recent software updates and relatively barebones feature kit (most notably the lack of 5GHz wifi, biometric sensors and backlight for the capacitive buttons) prevent it from being exceptional.

 

-Microsoft Surface Book 2 - [Garbage - -/10]

Spoiler

Overpriced and rushed, offers nothing notable compared to the competition, doesn't come with an adequate charger despite the premium price. Worse than the Macbook for not even offering the small plus sides of having macOS. Buy a Razer Blade if you want high performance in a (relatively) light package.

 

-Intel Core i7 2600/k - [9/10]

Spoiler

Quite possibly Intel's best product launch ever. It had all the bleeding edge features of the time, it came with a very significant performance improvement over its predecessor and it had a soldered heatspreader, allowing for efficient cooling and great overclocking. Even the "locked" version could be overclocked through the multiplier within (quite reasonable) limits.

 

-Apple iPad Pro - [5/10]

Spoiler

A pretty good product, sunk by its price (plus the extra cost of the physical keyboard and the pencil). Buy it if you don't mind the Apple tax and are looking for a very light office machine with an excellent digitizer. Particularly good for rich students. Bad for cheap tinkerers like myself.

 

 

Link to post
Share on other sites
Posted · Original PosterOP

Do I need to install boot loader into a fat32 partition or a EFI partition... Also I'm having a UEFI Boot modd

Link to post
Share on other sites

Your EFI Partition is just a FAT32 Partition with the boot flag. fdisk-l will report its type as EFI (FAT*)

You can get away with installing the boot-loader into the Windows EFI Partition.


My System - OS: Arch Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.33v Motherboard: Asus Strix X470-I Gaming RAM: 2x16GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: MSI Radeon 5700XT Mech OC

Wifes System - OS: Manjaro Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.32v Motherboard: Asus Crosshair VI Hero X370 RAM: 2x8GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: AMD 5700XT Reference Card

Link to post
Share on other sites
Posted · Original PosterOP

Totally 3 partitions

 

Home - /home

EFI 

Root - /

Am I correct??

 

Device for boot loader installation 

- (THE EFI PARTITION)

 

AM I CORRECT??

Link to post
Share on other sites

yes


My System - OS: Arch Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.33v Motherboard: Asus Strix X470-I Gaming RAM: 2x16GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: MSI Radeon 5700XT Mech OC

Wifes System - OS: Manjaro Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.32v Motherboard: Asus Crosshair VI Hero X370 RAM: 2x8GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: AMD 5700XT Reference Card

Link to post
Share on other sites
Posted · Original PosterOP
20 hours ago, Nayr438 said:

grub-install --target=x86_64-efi --bootloader-id="KDE Neon" --recheck

After this command, I Get an error like this

 

grub-install: error: cannot find EFI directory

Link to post
Share on other sites

Did you create /boot/EFI and mount the EFI partition to it?

Try this

grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id="KDE Neon" --recheck

 


My System - OS: Arch Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.33v Motherboard: Asus Strix X470-I Gaming RAM: 2x16GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: MSI Radeon 5700XT Mech OC

Wifes System - OS: Manjaro Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.32v Motherboard: Asus Crosshair VI Hero X370 RAM: 2x8GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: AMD 5700XT Reference Card

Link to post
Share on other sites
Posted · Original PosterOP
15 minutes ago, Nayr438 said:

grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id="KDE Neon" --recheck

Now I get an error like this.

grub-install: error: cannot find a device for /boot/EFI (is /Dev mounted?)

Link to post
Share on other sites
Posted · Original PosterOP

I created a partition with EFI partition system

There is no Boot/EFI in Fat32

There is only /dos and /windows...

Link to post
Share on other sites

/ is your root file system, probably ext4

/boot/EFI will be a directory on /

The FAT partition has to be mounted to the directory /boot/EFI

I don't know whats inside the Windows EFI Partition, grub will automake everything it needs inside of it.

 

Honestly if you just want something to work, you might try Manjaro KDE. I could better help you with issues there as its based on Arch. I personally run Arch and Ubuntu behaves differently.

 


My System - OS: Arch Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.33v Motherboard: Asus Strix X470-I Gaming RAM: 2x16GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: MSI Radeon 5700XT Mech OC

Wifes System - OS: Manjaro Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.32v Motherboard: Asus Crosshair VI Hero X370 RAM: 2x8GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: AMD 5700XT Reference Card

Link to post
Share on other sites
5 minutes ago, Dilukshan said:

Thanks.... Will Manjaro works without this error??

IDK you will just have to try. Use Etcher to make your bootable USB installer. https://www.balena.io/etcher/

I am not sure why GRUB is failing to install in the first place, if its related to Neons installer then it should install fine on Manjaro. If its something else then we will have to dig into other things that can cause GRUB to fail.

If efibootmgr outputs a efi boot list then it should work.

you can run efibootmgr in a terminal to see if it can read your efi entries.

 


My System - OS: Arch Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.33v Motherboard: Asus Strix X470-I Gaming RAM: 2x16GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: MSI Radeon 5700XT Mech OC

Wifes System - OS: Manjaro Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.32v Motherboard: Asus Crosshair VI Hero X370 RAM: 2x8GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: AMD 5700XT Reference Card

Link to post
Share on other sites
Posted · Original PosterOP

Oh shit... I installed kde neon in my laptop like 2019 November... But, I can't reinstall it again... What is this??

 

Link to post
Share on other sites

KDE Neon's installer might just be borked at this time, it does happen.


My System - OS: Arch Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.33v Motherboard: Asus Strix X470-I Gaming RAM: 2x16GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: MSI Radeon 5700XT Mech OC

Wifes System - OS: Manjaro Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.32v Motherboard: Asus Crosshair VI Hero X370 RAM: 2x8GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: AMD 5700XT Reference Card

Link to post
Share on other sites

Ubuntu, Lubuntu, Xubuntyu, kde neon, whatever else that's built on ubuntu all use the same installer from the same package set. If its borked for one its more than likely borked for all of them.

Also if you value privacy, I would stay away from Deepin and its environment. Linux Deepin is a Chinese Distro funded by the Chinese government to replace Windows, its Environment, Deepin, sends data back to Linux Deepin regardless of the Distro your on. Some people care and some don't. As to what it collects I don't personally know, but there was some talk about its cloud services gathering passwords in the past so security was questionable.

 

If Deepin installs however, then its probably something with Ubuntu's installer.


My System - OS: Arch Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.33v Motherboard: Asus Strix X470-I Gaming RAM: 2x16GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: MSI Radeon 5700XT Mech OC

Wifes System - OS: Manjaro Linux CPU: Ryzen 3600 @ 4.1 Ghz 1.32v Motherboard: Asus Crosshair VI Hero X370 RAM: 2x8GB Corsair Vengeance RGB Pro @ 3200 CL16 GPU: AMD 5700XT Reference Card

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×