Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2 problem
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
PeterNL
n00b
n00b


Joined: 20 Feb 2018
Posts: 10

PostPosted: Tue Apr 10, 2018 12:42 pm    Post subject: Grub2 problem Reply with quote

Hi,

I posted before on grub2. I restarted with this new subject, to solve my grub2 problem.


Partitions:
Code:

| DRIVE | PARTITION | FORMAT  | MOUNT        | OS                 |
|-------+-----------+---------+-------------------+-----------------|
| sda    | sda1       | ext4      | /                 | Linux Mint Work |
| sda    | sda2       | fat32     | The efi partition |                      |
|-------+-----------+---------+-------------------+-----------------|
| sdb    | sdb1       | ext4      | /                 | Linux Mint Play |
|-------+-----------+---------+-------------------+-----------------|
| sdc    | sdc1       | ntfs        |                    | Windows 10      |
| sdc    | sdc2       | fat32      | /boot/efi          |                       |
|  sdc   | sdc3       | unknown |                        |                       |
|  sdc   | sdc4       | ntfs         |                        |                       |




What I did was booted from linux work (sda1) first. It doesn't boot anymore. So the same could be done from liveusb or linux play (chroot):
These are my preperations before diving into Gentoo. 8)
Code:


# mount linux mint Work.
sudo mount /dev/sda1 /mnt

# mounten efi partition created with gparted
sudo mount /dev/sda2 /mnt/boot/efi

# mounten grub stuff on root
sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys

modprobe efivars #, niet gedaan kreeg error op desktop 2tb linux

sudo chroot /mnt

# this made the error go away:"efibootmgr: skipping unreadable variable "Boot0000":input/output error"
mount -t efivarfs efivarfs /sys/firmware/efi/efivars/


grub-install --target=x86_64-efi --efi-directory=/boot/efi/ /dev/sda    ##What to point to efi partition.

#grub-install --target=x86_64-efi-signed 

#geeft error: doesn't look like efi partition.efi partition aanmaken en toevoeging:  sudo mount /dev/sda2 /mnt/boot/efi

grub-install --recheck /dev/sda
#apt-get install --reinstall grub-efi-amd64
update-grub

#exit chroot
exit &&


#unmount grub folders
sudo umount /mnt/sys &&
sudo umount /mnt/proc &&
sudo umount /mnt/dev/pts &&
sudo umount /mnt/dev &&

#unmounten efi partittion:
sudo umount /mnt/boot/efi
#unmount linux
sudo umount /mnt



The problem is that when choosing these options in uefi:

Code:

           
| Windows Boot Manager             | sdc | Boots Windows                                     | Working!       |
| Grub Boot  (P1:Samsung ssd 850)  | sda | Still grub terminal                               | so Not Working |
| ubuntu      (P1:Samsumg ssd 850) | sda | grub menu only few options not able to select sda | so Not working |
| ubuntu      (p3:st2000)          | sdb | just Boots linux play                             |   working   |
| P1:Samsung 850                   | sda | nothing                                           |      so Not working             |





What do i have to do to have a bootable and complete grub menu on sda?
Preferebly the whole boot stage 1 & 2 on sda2,the fat32 efi partition.
And how to repare sda1, My linux mint work partition.

When this works i put my other ssd in. and install gentoo there. Then i replace the boot proces to this new drive, when i got the hang of this.
I would be really helped. Thank you.
Back to top
View user's profile Send private message
TheUltimateNewbie
n00b
n00b


Joined: 04 May 2018
Posts: 10

PostPosted: Sun May 06, 2018 12:26 am    Post subject: Reply with quote

Hello Peter! I always mount the OSes partitions before update-grub, this way grub detects them, also make sure to install os-prober.
https://packages.gentoo.org/packages/sys-boot/os-prober
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