Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2 Install Error: modinfo.sh doesn't exist
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
HungGarTiger
Apprentice
Apprentice


Joined: 04 Feb 2014
Posts: 155
Location: /nz/auckland

PostPosted: Thu Aug 13, 2015 7:09 am    Post subject: Grub2 Install Error: modinfo.sh doesn't exist Reply with quote

I've got through the whole install again for my girlfriends laptop and I followed the install instructions exactly the same

when I get to grub2-install I get the message
Quote:
error: /usr/lib/grub/x84_64-efi/modinfo.sh doesn't exist


I've tried the advice in this thread

https://forums.gentoo.org/viewtopic-p-7729834.html

but I always get the same error. I've formatted the disk the same way as in the guide, /dev/sda2 is vfat though not ext2.

Interestingly I can't install LILO which was the next thing I tried because "/boot is read only"


Fstab

Code:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>         <mountpoint>   <type>      <opts>      <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda2      /boot      vfat      defaults,noatime   0 2
/dev/sda4      /      ext4      noatime      0 1
/dev/sda3      none      swap      sw      0 0
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Aug 13, 2015 7:57 am    Post subject: Reply with quote

well you could lilo to boot your stuff for example

i usually install linux mint and use that grub2 bootloader. it is recommended because you have a backup os on the same device. and 10gb does not hurt at all. careful when updating linux mint as this overwrites hole grub without a warning and ubuntu devs do not care for their crap ui updater. my bug is still unanswered from ubuntu side...

To get back to your topic. you can use any bootloader which will boot your desired OS of choice. You do not need to use grub2 at all when others works ... See it from the point to finish the task as quick as possible when grub2 does not work move on and use something else ..

I usually use ext2, i am not sure if vfat is such a good choice for boot anyway ...
Back to top
View user's profile Send private message
HungGarTiger
Apprentice
Apprentice


Joined: 04 Feb 2014
Posts: 155
Location: /nz/auckland

PostPosted: Thu Aug 13, 2015 8:39 am    Post subject: Reply with quote

tw04l124 wrote:
well you could lilo to boot your stuff for example

I usually use ext2, i am not sure if vfat is such a good choice for boot anyway ...


tw04l124, I can't install LILO as it complains that /boot is read only. Also, the handbook says you have to use vfat for your boot partition when EFI is involved and unfortunately I'm installing over a Windows 8 laptop so I guess that's the way it has to be.

I just tried to rebuild Grub inside my install (I can boot into it from the RescueCD) and Grub doesn't compile any more. So for whatever reason, no boot loader will even compile on my system. Other packages work fine, I'm installing X at the moment...

Does this mean I've screwed up /boot somehow?? I have no idea what files to post to give you guys relevant information but let me know and I'll post them for you.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 437
Location: Australia

PostPosted: Thu Aug 13, 2015 11:29 am    Post subject: Reply with quote

Did you run through these steps?

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader#Alternative:_Using_efibootmgr
Back to top
View user's profile Send private message
HungGarTiger
Apprentice
Apprentice


Joined: 04 Feb 2014
Posts: 155
Location: /nz/auckland

PostPosted: Thu Aug 13, 2015 8:23 pm    Post subject: Reply with quote

ian.au wrote:
Did you run through these steps?

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader#Alternative:_Using_efibootmgr


Yes, I also tried this after LILO refused to install. Nothing going on this method either I'm afraid.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 437
Location: Australia

PostPosted: Thu Aug 13, 2015 10:21 pm    Post subject: Reply with quote

Ok,
HungGarTiger wrote:
Interestingly I can't install LILO which was the next thing I tried because "/boot is read only"

Code:
mount -o remount,rw /boot
any errors thrown? If so post them here.
I don't see a boot flag set on your fstab listing above. But I think you need to go back to the beginning of your install for the cause here,from the handbook:
Quote:
When a system's software interface between the operating system and firmware is UEFI (instead of BIOS), GPT is almost mandatory as compatibility issues will arise with MBR here.

Use parted and fix up your partition table for efi, then follow the efiboot instructions I linked you to above.
Back to top
View user's profile Send private message
HungGarTiger
Apprentice
Apprentice


Joined: 04 Feb 2014
Posts: 155
Location: /nz/auckland

PostPosted: Fri Aug 14, 2015 6:02 am    Post subject: Reply with quote

I'm doing a re-install, I think there may be a larger HDD problem at play here though. Every command performed diectly on the system takes a long time

Just out of interest though does this lsblk look ok?

Code:
$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk
├─sda1   8:1    0     2M  0 part
├─sda2   8:2    0   128M  0 part /boot
├─sda3   8:3    0     4G  0 part [SWAP]
└─sda4   8:4    0 461.6G  0 part /
sr0     11:0    1  1024M  0 rom 


For some reason /dev/sda1 doesn't have a label or (according to parted) a file system... Is this bad?


Last edited by HungGarTiger on Fri Aug 14, 2015 6:32 am; edited 1 time in total
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 437
Location: Australia

PostPosted: Fri Aug 14, 2015 6:29 am    Post subject: Reply with quote

Yep, that looks fine.
Back to top
View user's profile Send private message
HungGarTiger
Apprentice
Apprentice


Joined: 04 Feb 2014
Posts: 155
Location: /nz/auckland

PostPosted: Sat Aug 15, 2015 6:51 am    Post subject: Reply with quote

New hard drive in the gf's laptop and on my second time round I have the same error message when installing grub.

I mounted /boot as read-write and installed LILO but I get a kernel panic now

Quote:
Kernel panic - not syncing: Vfs unable to mount root (0,4)


On a side note - when I create the 4 paritions should I "mkfs.ext2 /dev/sda1" and put a file system on the BIOS partition? My working Gentoo install says that I don't have a file system on that partition.. It's the only things I can think of that I might have done differently.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 437
Location: Australia

PostPosted: Sat Aug 15, 2015 7:31 am    Post subject: Reply with quote

What does the parted print command return? I haven't got an EFI system here at the moment to check what lsblk returns for the labels.

Your partition sda1 should be bios_grub if you followed the handbook
Your partition sda2 should be vfat with the boot flag on

If not, you are no hope of a successful efi boot.

It's very different to setting up an MBR install, best follow the instructions carefully.

If you haven't set these correctly, it doesn't matter, just fire up parted and
Code:
name 1 grub
set 1 bios_grub on
name 2 boot
set 2 boot on

etc..

Lilo has no purpose in this configuration, it doesn't support EFI.

Follow the handbook and you will get a booting system. Go back to where you diverged (which you surely have) and pick up from there.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum