You are not logged in.

#1 2021-05-05 12:02:28

ArchNewbieKernel
Banned
Registered: 2020-09-25
Posts: 74

install Grub2 on GNOME?

Hey,

Can I install Grub2 on GNOME? source: https://www.noobslab.com/2012/01/grub2- … e-and.html
I have grub-2:2.04-10 but not used

$ grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch
$ grub-mkconfig -o /boot/grub/grub.cfg

The device where my setup is

lsblk

NAME        MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sdc           8:32   0  1.8T  0 disk  
├─sdc1        8:33   0  512M  0 part  /boot
└─sdc2        8:34   0  1.8T  0 part  
  └─luksdev 254:0    0  1.8T  0 crypt /

fdisk -l

Device       Start        End    Sectors  Size Type
/dev/sdc1     2048    1050623    1048576  512M EFI System
/dev/sdc2  1050624 3907028991 3905978368  1.8T Linux filesystem

So, In order to install it step by step, I do the following:
Insert and boot my Arch Linux ISO from USB

# list disks
fdisk -l

# make directory for /mnt/sdc1
mkdir /mnt/sdc1

# create mountpoint for /dev/sdc1 /mnt/sdc1
mount /dev/sdc1 /mnt/sdc1

# create /mnt/sdc1/boot if it doesn't exist
mkdir /mnt/sdc1/boot

# mount  boot partition
mount /dev/sdc1 /mnt/sdc1/boot

# chroot into system
arch-chroot /mnt/sdc1

# install the bootloader
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch
grub-mkconfig -o /boot/grub/grub.cfg

# jump out from internal disk
exit

# reboot the system
reboot

Is this about right?

Thanks for reading and the upcoming replies smile

Last edited by ArchNewbieKernel (2021-05-05 12:03:51)

Offline

#2 2021-05-05 12:22:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,754

Re: install Grub2 on GNOME?

GRUB customizer has no relation on how well GRUB2 will work and is just a graphical tool to help with certain setup and is certainly not a necessity to anything.

your mounting sequence doesn't make any sense, but the lsblk output does, so when you are in the situation as shown by the lsblk command you don't do any of the  mounting stuff you are trying to do and just run the two GRUB commands in the beginning of your post.

Offline

#3 2021-05-06 06:19:37

ArchNewbieKernel
Banned
Registered: 2020-09-25
Posts: 74

Re: install Grub2 on GNOME?

V1del wrote:

when you are in the situation as shown by the lsblk command you don't do any of the  mounting stuff you are trying to do and just run the two GRUB commands in the beginning of your post.

I tried but It didn't work, it said:

grub-install not found

...musn't I chroot into my system first?

Last edited by ArchNewbieKernel (2021-05-06 06:21:14)

Offline

#4 2021-05-06 07:46:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,754

Re: install Grub2 on GNOME?

Well is the lsblk output not from the chroot? That looks like a chroot to me, no? In any case assuming you haven't chrooted yet you'd need to do

# create mountpoint for /dev/sdc1 /mnt/sdc1
mount /dev/sdc2 /mnt/

# create /mnt/sdc1/boot if it doesn't exist
mkdir /mnt/boot

# mount  boot partition
mount /dev/sdc1 /mnt/boot

arch-chroot /mnt

instead of the original plan. And if you get command not found, did you not install the grub package?

Offline

#5 2021-05-06 17:39:06

ArchNewbieKernel
Banned
Registered: 2020-09-25
Posts: 74

Re: install Grub2 on GNOME?

V1del wrote:

Well is the lsblk output not from the chroot? That looks like a chroot to me, no? In any case assuming you haven't chrooted yet you'd need to do

# create mountpoint for /dev/sdc1 /mnt/sdc1
mount /dev/sdc2 /mnt/

# create /mnt/sdc1/boot if it doesn't exist
mkdir /mnt/boot

# mount  boot partition
mount /dev/sdc1 /mnt/boot

arch-chroot /mnt

instead of the original plan. And if you get command not found, did you not install the grub package?

Hey, thanks for staying in touch. I have grub-2:2.04-10 installed.

It's been a while, since I have mounted and chrooted into my system from usb, and this shows by missing some things. I did the following:
https://s12.directupload.net/images/210506/dehesnvv.jpg
green clamp is the internal linux disk
red clamp is the Arch USB liveboot
then off the picture I did:

$ ls -la /dev/sdc*
/dev/sdc   /dev/sdc1  /dev/sdc2

I changed directory to /dev/mapper because IDK the name of mapped name. Hopefully you can help me out there sad


Mod Edit - Replaced oversized image with link.
CoC - Pasting pictures and code

Last edited by Slithery (2021-05-06 17:53:57)

Offline

Board footer

Powered by FluxBB