LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-16-2016, 03:39 AM   #1
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64-current
Posts: 608

Rep: Reputation: 254Reputation: 254Reputation: 254
Can't install grub


I've set up a new system using two 3tb disks. Each disk has as the first partition a 500mb partition of type ef02, several partitions (gpt) as Linux-Raid (fd00) and a swap partition. I set up the raid arrays using the appropriate partitions and installed Slack64-14.2. Install went fine and then when finished dropped into a shell (have not re-booted) and used mkfs.vfat on each of the two ef02 partitions in preparation for setting up grub. When I try to run grub-install --modules=part_gpt /dev/sda I get an error stating that "/usr/share/grub/grub-mkconfig_lib: No such file or directory". When I go to /mnt I can see that the file does exist. Chroot'd the /mnt directory, tried again but problem remains. Any ideas what could be the problem
 
Old 11-16-2016, 04:50 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora 33
Posts: 3,598

Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
Not sure why you made the partitions 500 MB. The typical 1MB is way more than the 31K that grub needs. There is no need to format it since grub's second stage will overwrite any contents. I think you may be confusing the BIOS Boot Partition (space for the boot loader on a GPT disk) with the /boot partition which is where your kernel, initrd, etc. should go. The /boot partition can be a regular Linux filesystem like ext2 rather than a foreign filesystem like vfat.
 
Old 11-17-2016, 06:35 AM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,510

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
what code did you use to chroot into /mnt?
 
Old 11-17-2016, 02:24 PM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,510

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
you marked as solved, what was the solution to the problem
 
Old 11-17-2016, 03:13 PM   #5
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 478

Rep: Reputation: 151Reputation: 151
Some clarification is needed as you have conflicting data in your post. You talk about 500MB partitions and formatting with mkfs.vfat which is how you create an EFI system partition. However you talk about a code of EF02 which as smallpond mentioned is the code for a BIOS Boot partition for BIOS/GPT boots typically 1MiB in size. ESP partitions have a code of EF00. What are you trying to create ?

Also it is generally a bad idea to have multiple raid arrays on a pair of disks. You should create one raid 1 mirror and use lvm on top to divide it up into as many virtual partitions as you want. These virtual partitions can also be resized easily. Separate raid arrays are fixed in size. Are you trying to mix raid types such as a raid0 stripe array and a raid 1 mirror array ?

As colorpurple said there a number of steps to chroot from a live dist. similar to:

mount /dev/sda1 /mnt/
mount -o bind /dev /mnt/dev
mount -t proc none /mnt/proc
mount -t sysfs sys /mnt/sys
chroot /mnt/ /bin/bash
 
Old 11-18-2016, 02:21 AM   #6
3rensho
Member
 
Registered: Mar 2008
Location: Switzerland
Distribution: Slackware64-current
Posts: 608

Original Poster
Rep: Reputation: 254Reputation: 254Reputation: 254
Thanks tofino surfer for your input. I've never used lvm - sounds like I should. No, I wasn't mixing raid types - all raid 1. On my previous system (before the crash) I had been using an efi boot and just decided to go with a boot partition this time and put grub on it. Will be looking into lvm for sure. Sounds like the way to go for sure.

Is the tofino in your login the one on the west coast of Vancouver island?? If so color me day glo green with envy - truly Gods country.
 
  


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
12.4 new install grub 2 boot problem with grub put on it's own partition not on MBR james2b Ubuntu 14 12-07-2012 09:34 AM
[SOLVED] cannot install grub (grub-probe says 'unknown fs' with ext4 and md raid) cusco Linux - Software 3 03-15-2011 01:58 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
Need to (re)install GRUB: fedora c4 rescue cd (and GRUB) unable to see the harddisk whencat Fedora 4 03-05-2006 02:01 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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