#[SOLVED] Having issues installing GRUB
166 messages · Page 1 of 1 (latest)
what does lsblk -f show when sda1 is mounted
Picture on your phone then
upload command output with:
cat $file | curl -F 'file=@-' https://0x0.st
Or
$command | curl -F 'file=@-' https://0x0.st
in your case its
lsblk | curl -F 'file=@-' https://0x0.st
Why have you got two partitions mounted to /boot?
Is your system installed as uefi or as bios? Have you got anything but grub being used as a bootloader (e.g. you don’t have windows on there at all)?
By the looks of things you don’t, that being the case pick 1 boot partition, if it’s just grub going on that partition just wipe it, and follow the commands on the aw page. If you want you can say the commands you’re doing to double check them
.aw grub
Uefi or bios dictates which install commands you need to use
Don’t forget after installing you need to do the grub-mkconfig command (let us know what commands you’re doing in full as I say)
I'm gonna start the installation over
WOOOOOOOOO!
I did it
Turns out the partition I should've been using was sda2
oohhh dear
when I hit grub on the boot menu it doesn't start
not even the usb will start
Oh shoot I forgot to run grub-mkconfig
great I gotta reinstall now
wait nvm I just need to use the usb to boot
oh dear running grub-mkconfig -o /boot/grub/grub.cfg did not fix it
I'll try remaking the EFI partition
make sure you have your kernel image present in the /boot before running the grub-mkconfig
the vm-linuxz file? (paraphrasing I'm redoing pacstrap and cannot check)
yeah
alright
there's no space left on it after just making the filesystem?
it just has the grub stuff and the kernel image on it
Oh wait it's cause I misread the amount of space in the partition like an idiot
I'm having issues making grub accept the drive
like I need to attach a grub drive to the file system?
yeah it keeps asking for grub drive
I made the EFI partition according to the wiki
with gdisk GPT with EF00 type
I made it again with fdisk ef type
still doesn't work
When I try to write an EFI partition it doesn't show up as EFI on fdisk -l
just as empy
were you chrooted?
yeah
tell us what the grub install command you did was
but now I'm past that and am trying to make a new partition
lol what?
you've started the entire installation process again to install a bootloader?
I hit the power button by mistake
shouldn't matter
it's the bootloader
mount
# If you don't see efi partition mounted, mount it with mount <efi> <mountpoint>
pacman -S grub
grub-install --target=x86_64-efi --efi-directory=<mountpoint of efi> --bootloader_id=<my fancy new bootloader name>
grub-mkconfig -o /boot/grub/grub.cfg
that should be all there is to it
if you're making snapshots and putting them into grub then make sure bootloader is in the fstab (frankly worth doing anyway in my opinion)
above is assuming uefi
/boot doesn't look like an EFI partition
lsblk -f please
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS - would also be of use
actually that one doesn't work
interesting
NAME FSTYPE FSVER LAVEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop0
sda
sda1
sda2
mmcblk0
mmcblk0p1 345.7M 20% /boot
/boot
mmcblk0p2 16.4G 9% /
mmcblk0p3 31.5G 10% /home
mmcblk0boot0
mmcblk0boo1
why have you got something mounted twice to the same place?
and why do you think the partition isn't efi?
sudo blkid -o list should tell you the filesystem types
it says it's ext4
alright I will
then grub-install, then grub-mkconfig
it's vfat???
oh ok
show me the output of the grub-install command (as well as the grub install command you did)
.s ix
<command to print output> |& curl -F 'f:1=<-' ix.io
might help
you do the command followed by the pipe and ambersand etc.
see how it spits a link out, and then I can share the output of the link
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
Installing for x86_64-efi platform.
grub-install: error: /boot doesn't look like an EFI partition.
that site comes in handy.
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
loop0
sda
├─sda1
└─sda2
mmcblk0
├─mmcblk0p1
├─mmcblk0p2 16.4G 9% /
└─mmcblk0p3 31.5G 10% /home
mmcblk0boot0
mmcblk0boot1
it's not mounted at all lol
wait shoot why isn't it mounted
(:
now grub worked
jeez sorry for the trouble
mkconfig it
100%, and what's great is if you need to install grub again, you now have that experience, so that you can more confidently get it wrong sooner and realise your mistake
yeah
do you have a network manager installed so you can access the internet?
I installed systemd
also I would love to know what:
mmcblk0boot0
mmcblk0boot1
are
probably remnants from windows I need to fix
reboot then!
I assume that means:
https://wiki.archlinux.org/title/Systemd-networkd
yeah
cool
?
wait, is it for the efi partition
you probably need to edit the fstab
I have systemd-resolve
I haven't rebooted
you said you hadn't rebooted 😛
I haven't
what have you sent?
oh right it's case sensitive
# /dev/mmcblk0p2
UUID=e7135251-d95a-4711-a19e-8c5ac0445114 / ext4 rw,relatime 0 1
# /dev/sda2
UUID=C4A4-A68E /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/mmcblk0p3
UUID=30bd111b-681e-4681-b91a-5d461c9e51ff /home ext4 rw,relatime 0 2
is sda2 where your /boot partition actually is?
like is that what you mounted to /boot just now?
No I think I need to regen fstab
check what is mounted by using the mount command, or lsblk -f
# /dev/mmcblk0p2
UUID=e7135251-d95a-4711-a19e-8c5ac0445114 / ext4 rw,relatime 0 1
# /dev/mmcblk0p1
UUID=8D45-5D87 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/mmcblk0p3
UUID=30bd111b-681e-4681-b91a-5d461c9e51ff /home ext4 rw,relatime 0 2
corrected now
doing it now
Uhhhhh
grub starts all good but there's no boot option
am I gonna need to write the boot option myself
grub-mkconfig -o /boot/grub/grub.cfg
out mounted?
what is out
*it
I'm not familiar with grub shell
How do I boot
yeah I have no idea what to do
do I need to use the usb to somehow fix ti
What do I do
ok got in with reimaged usb