#[SOLVED] Having issues installing GRUB

166 messages · Page 1 of 1 (latest)

graceful roost
#

I've been doing fixes and now grub syays it can't find a grub drive in sda1. It says to check device.map. What do I do?

#

It says it can't find EFI directory???

low glacier
#

what does lsblk -f show when sda1 is mounted

graceful roost
#

sda1 is 0%

#

mounted to /boot

low glacier
#

Answer with a screenshot

#

Lsblk doesn’t just show 0% does it

graceful roost
#

I can't

#

I'm installing from tty

low glacier
#

Picture on your phone then

round idol
#

upload command output with:
cat $file | curl -F 'file=@-' https://0x0.st
Or
$command | curl -F 'file=@-' https://0x0.st

graceful roost
low glacier
#

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

cursive mauveBOT
low glacier
#

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)

graceful roost
#

I'm gonna start the installation over

graceful roost
#

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

hearty musk
graceful roost
#

the vm-linuxz file? (paraphrasing I'm redoing pacstrap and cannot check)

graceful roost
#

alright

graceful roost
#

there's no space left on it after just making the filesystem?

#

it just has the grub stuff and the kernel image on it

graceful roost
#

Oh wait it's cause I misread the amount of space in the partition like an idiot

graceful roost
#

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

graceful roost
#

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

graceful roost
#

yeah

low glacier
#

tell us what the grub install command you did was

graceful roost
#

but now I'm past that and am trying to make a new partition

low glacier
#

lol what?

#

you've started the entire installation process again to install a bootloader?

graceful roost
#

I hit the power button by mistake

low glacier
#

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

graceful roost
#

/boot doesn't look like an EFI partition

low glacier
#

lsblk -f please

#

[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS - would also be of use

#

actually that one doesn't work

#

interesting

graceful roost
#
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
low glacier
#

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

graceful roost
#

it says it's ext4

low glacier
#

lol

#

unmount it, and mkfs.fat -F32 that drive, then remount it (going off of memory)

graceful roost
#

alright I will

low glacier
#

then grub-install, then grub-mkconfig

graceful roost
#

/boot doesn't look like an EFI partition 💀

#

I ran mkfs.fat on it and remounted it

low glacier
#

sudo blkid -o list again

#

check you did it right

graceful roost
#

it's vfat???

low glacier
#

cool

#

that's fine

graceful roost
#

oh ok

low glacier
#

show me the output of the grub-install command (as well as the grub install command you did)

#

.s ix

cursive mauveBOT
low glacier
#

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

graceful roost
#
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.

low glacier
#

lsblk -f again for me

#

I have a feeling you still have /boot mounted multiple times

graceful roost
#
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                                        
low glacier
#

it's not mounted at all lol

graceful roost
#

wait shoot why isn't it mounted

low glacier
#

(:

graceful roost
#

now grub worked

low glacier
#

so, now you mounted it, any luck?

#

lol

graceful roost
#

jeez sorry for the trouble

low glacier
#

mkconfig it

graceful roost
#

it's a learning experience for sure

#

ok done

#

can I reboot now

low glacier
graceful roost
#

yeah

low glacier
graceful roost
#

I installed systemd

low glacier
#

also I would love to know what:
mmcblk0boot0
mmcblk0boot1
are

graceful roost
low glacier
#

reboot then!

graceful roost
#

Alright

#

exiting chroot

#

now to reboot

graceful roost
#

yeah

low glacier
#

cool

graceful roost
#

wait

#

no resolve

low glacier
#

wait, is it for the efi partition

#

you probably need to edit the fstab

graceful roost
#

I have systemd-resolve

low glacier
#

ahh cool

#

did it boot?

graceful roost
#

I haven't rebooted

low glacier
#

okay do cat /etc/fstab

#

or if not chrooted /mnt/etc/fstab

graceful roost
low glacier
#

you said you hadn't rebooted 😛

graceful roost
#

I haven't

low glacier
#

what have you sent?

graceful roost
#

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

low glacier
#

is sda2 where your /boot partition actually is?

#

like is that what you mounted to /boot just now?

graceful roost
#

No I think I need to regen fstab

low glacier
#

check what is mounted by using the mount command, or lsblk -f

graceful roost
#
# /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

low glacier
#

nice

#

okay then yeah, reboot should be good

graceful roost
#

doing it now

#

Uhhhhh

#

grub starts all good but there's no boot option

#

am I gonna need to write the boot option myself

low glacier
#

what did you do for grub-mkconfig?

#

like write the whole thing out

graceful roost
#

grub-mkconfig -o /boot/grub/grub.cfg

low glacier
#

hmmm

#

when you've got out mounted cat the grub.cfg

graceful roost
#

out mounted?

graceful roost
#

what is out

low glacier
#

*it

graceful roost
#

I'm not familiar with grub shell

graceful roost
#

How do I boot

graceful roost
#

yeah I have no idea what to do

#

do I need to use the usb to somehow fix ti

#

What do I do

graceful roost
#

ok got in with reimaged usb

graceful roost
#

ok I just need to figure out what to fix

#

Oh hadn't installed os-prober

#

It still doesn't work?????

graceful roost
#

Alright it works now

#

[SOLVED] Having issues installing GRUB