#Boot problem with the command line

266 messages ยท Page 1 of 1 (latest)

final latch
#

So i was installing arch with the help of this video: https://www.youtube.com/watch?v=FxeriGuJKTM&t=2448s along with a couple tweak.

Near the end of the setup i had to use mkinitcpio, but it was giving me an error bc of the vconnsole.conf not existing, according to this forum post: https://bbs.archlinux.org/viewtopic.php?id=310236 the fix was to just make the file using the touch cmd and that was what i did. After finishing the tutorial, ofc i tried booting and this is where i am now, the system boots yes, but it gives a timeout error since the root is locked or smth, btw i cannot chroot with the arch usb stick i had anymore and its just very weird, any thoughts?

Also the deviation were: using grub install with bios instead of uefi, making a swap partitions, using cfdisk and thats about it
When booting it goes rainbow static glitchy look -> timeouton the root partition -> emergency mode: "Cannot open acces to console, theroot account is locked"
If i press enter tries to reboot sys mng config and reprint the cannot open acces

minor canyon
#

It is generally not a good idea to follow tutorial videos because they cannot be updated if/when the process might change

#

Can we get a picture of the issue?

final latch
#

let mylogginn on my phone

minor canyon
#

"grub install with bios instead of uefi," - what's the motivation for this? Are you in a virtual machine?

#

Machines from the last 15 or so years are all UEFI so you should probably be using UEFI

final latch
#

Told*

minor canyon
#

What model is your machine?

final latch
minor canyon
final latch
#

If usong it to learn installing arch

#

I cant

#

Or

#

Lwt me boot the installation drive

minor canyon
#

It'd be very unusual for a machine with an i3 series chip to not support UEFI.

minor canyon
#

Note that that part is an aside - bios/csm should work for you. I'm just recommending best practice

minor canyon
#

I'm looking specifically for the HOOKS="" part of that file

final latch
minor canyon
#

Can I see? ๐Ÿ˜Š

final latch
#

Ofc

minor canyon
#

That looks pretty OK

#

Can you share the output of mkinitcpio -P? Easiest way is with a tool called wgetpaste that you'll have to install

#

If you wgetpaste -c 'mkinitcpio -P' it will send your logs to the interwebs and you'll get a short link you can share here, so I can see the whole thing

final latch
minor canyon
# final latch

Before you get to this screen, does it ask you to decrypt?

minor canyon
#

It's just a little bash script

final latch
final latch
#

And grub before it

minor canyon
#

OK that's good to know

minor canyon
#

wgetpaste is just super duper convenient so it's my goto

#

This is what I am looking for

#

To ensure your mkinitcpio hooks are firing

final latch
#

they are

#

i know they are

#

well when i made it they did

#

the tutrial guy said to look for them and it did run em

#

i did see the hooks

minor canyon
#

HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block encrypt lvm2 filesystems fsck) my hooks line for example

#

The only difference I have is no systemd stuff. You might want to try using my hooks line instead, see if it works for you

#

I am running an almost identical setup to yourself

minor canyon
final latch
#

IM NOT ChROOt I FORGOR

#

im ranit on the boot iso

#

hol up

minor canyon
#

Ah ok, gotcha

minor canyon
final latch
#

i cant chroot noohohohoh

#

cant find zsh

#

but i can run zsh

minor canyon
#

That should be OK. /boot, /efi and /boot/efi are all working layouts

final latch
#

is it the sytems zsh

#

do i need to redoallthat work bruh

minor canyon
minor canyon
#

What's in /dev/mapper ?

final latch
#

that the first thing i did

#

lv_root and home

#

how would i mount the system wothout decrypting it

minor canyon
#

You can't. Until the volume is decrypted it's just a big pile of random bytes as far as the system is concerned

minor canyon
final latch
#

SHIT

#

i

#

bruh

#

its volgroup0-lv_home

#

WHAT DID I MOUNT WITH NO ERROR

minor canyon
#

That'll be your home partition I assume

final latch
#

but theyre mounted when i cjeck with lsblk tho

minor canyon
#

Share a pic if you like, I'm finding it hard to imagine what you mean

final latch
minor canyon
#

Looks OK to me. arch-chroot /mnt ?

final latch
#

im a dum dum

#

Chroot aint arch-chroot

#

Welp

#

Thre we go

#

Ima do the wgetpaste now

minor canyon
# final latch

At a second look this is actually a little weird. Seems you have two EFI partitions mounted?

#

To /boot and /boot/EFI

final latch
#

I dunno man

minor canyon
#

That is probably confusing things. What I think is happening is that your mkinitcpio stuff is working fine, but when your system starts it is starting the one in the other place

final latch
minor canyon
#

Looks good to me. Try grub-mkconfig -o /dev/null and share its output please

final latch
#

I should mention that i have 2 kernels

#

Linux and linux lts

#

Theres. Awarning

minor canyon
final latch
#

I did mkcpio for both

minor canyon
# final latch

Hmm that looks OK too. If you ls /boot/EFI, what does it contain?

final latch
#

UHHH

#

Efi in efi

#

Cool

#

And other stuff

minor canyon
#

Hmm. I think that is confusing things. How would you feel about a nuclear option?

minor canyon
#

Noooo not a reinstall

#

We can just nuke the boot stuff and do it from a blank slate

final latch
#

So just recursive deletion of the partitions

minor canyon
#

I'm just in the shop so gimme 10 mins and I'll walk you through it

final latch
#

Alr

#

Im gonna nuke the whole system at this point

#

Hey the boot partitions empty

#

Exception is EFI ofc

#

Ima read the arch wiki

#

ima try smth

#

What is i try to mount the sad2 to v
Boot

#

Also welcome back

minor canyon
#

I have returned!

umount -R /boot                    # unmount /boot/EFI and /boot
mount /dev/sda1 /boot                        # mount /boot
rm -rf /boot/*                     # be extremely careful typing this command out! Just want to clear out the contents of /boot
grub-install --efi-directory=/boot # install grub to /boot
pacman -Syu linux                  # reinstall your kernel and regenerate your initramfs (you can install lts the same way later)
grub-mkconfig -o /boot/grub/grub.cfg # reconfigure grub. It should pick up the kernel and initramfs you have just installed
#

That's what I would try in your situation

final latch
#

It is busyharold1

#

What the star do ?

#

In the rm rf

minor canyon
#

* in linux is a wildcard most of the time

#

It grabs everything in that dir

final latch
#

Ah cool

minor canyon
#

to demo

final latch
#

Weord

#

Vey weird tho

minor canyon
#

I think that's the core of what's wrong here - you have two places for boot stuff to go and so it's getting a bit confused

final latch
#

Also deos this mean i can get eid of sda2

minor canyon
#

It wouldn't be in use so you could do what you wanted with it

#

Did the video you linked suggest making two partitions like that?

final latch
#

Check it yousrlf

#

It seemed to work for others

minor canyon
#

It's not a setup Ive seen before ๐Ÿ˜„

final latch
#

It must be good

#

Well i then again i didnt follow 1:1

minor canyon
#

Hm I've found the bit where he sets it up, but he doesn't say why he's doing that

#

That's another big problem with video tutorials

final latch
#

I realized that

#

But i mean its already an hour so

#

Ye

#

Well a series of videos does work tho

minor canyon
#

Anyhow, where are you at with this?

final latch
#

I mean it aint SPECIFIED

minor canyon
final latch
minor canyon
final latch
#

Installing i386-pc platform

#

And

#

Error install device isnt specified

minor canyon
#

Oh sorry I forgot you were bios/CSM ๐Ÿ˜ญ

final latch
#

My mb is a b360m

#

AND IT AINT SUPPORT UEFI?

#

Like how bruh

minor canyon
#

It's from 2018, I am sure it does support UEFI

final latch
#

Like look at this shi

#

Uh

minor canyon
#

Up to you if you want to carry on with bios/CSM or see if you can get your mobo in UEFI and follow the UEFI steps

#

Although I think that would involve repartitioning your disk as GPT unfortunately

final latch
#

Gpt solaris

#

Dos

#

That stuff

minor canyon
#

UEFI usually uses GPT layouts while csm/bios uses dos

minor canyon
#

Stick with that then I suppose

final latch
#

Brother what is going on

#

Fat doesnt support wmbedding

#

Mkfs.what at this point

#

Cant even talk correclty

#

Dos acces

#

Dos r/o

minor canyon
#

I think you're mixing up UEFI and bios/csm instructions here. The EFI partition has to be FAT32 for UEFI setups, for dos it doesn't need to be FAT32

minor canyon
#

In fact you don't even really need a separate boot partition for bios/csm, although it is nice for organisation reasons

final latch
#

Brotha im overwelmed

#

Ima continue tho

final latch
minor canyon
#

Those partition type labels aren't super important really

final latch
#

Eh

#

Its still erroring

#

Ah

minor canyon
#

Share a pic if you likey

final latch
#

Make it ext4?

minor canyon
#

That would work

final latch
#

Tahts all

minor canyon
#

Ah ok

#

Make sure to remember to mark this partition as bootable in whatever disk management thing you're using

final latch
#

I still doesnt want tooempty

#

WHY IS IT EXT2

#

Wth is this man

#

Like my man @minor canyon wtf

#

Average low level struggle

minor canyon
#

It would be grub-install /dev/sda, without the partition number

final latch
#

Please dont tell me

#

No way amntrollskull

#

Now pacman doesnt want to cooperate

minor canyon
#

I can't really help without seeing the issue

final latch
minor canyon
#

Curious. What does mount have to say for your root partition?

#

Does it say it's ro ?

final latch
#

Wdym

#

My root is the installation root

#

Volgroup0-lv_root

minor canyon
#

Sure, but it says it's readonly

#

see how mine says "rw" for "read/write" ?

final latch
#

Why is it readinly all of the sudden

minor canyon
#

Dunno ๐Ÿ˜Š

final latch
#

Ya

#

Im acheck gstab

#

F*

minor canyon
#

Tbh in this sort of weird situation i tend to just restart the iso

final latch
#

OH SHI

#

I coudve forgotten fstab

#

I mean we forgot fstab

minor canyon
#

The encrypt and mapper stuff happens before the fstab is used

final latch
#

Well yea but the fstab would mount sda2 to boot

#

We dont want that

#

Also lets change the device rw permission

#

so we use udev

minor canyon
#

Not sure where you're at

final latch
#

i finished the grub config

#

anfter i rebooted the arch iso installer drive usb stick

#

sry for taking so long

#

So i installled grub, made the config now what?

#

ah yes fstab

final latch
#

so what is the users is the problem and not grub

#

since the problems accualyseems to stem from the initrd.target program

#

so what if i go edit the initrd.target

#

alsothe problem seems to stem from the sulogin cmd

#

maybe force the login

#

or accualy the getpwnam

minor canyon
#

I'm not sure what you mean with that

#

users should not be involved, all this stuff is managed by the root user

junior pewter
#

From what I can see, you are using dm-crypt encryption and then LVM inside of that, and you are using systemd-based initramfs. You are also not using UEFI, so suppose that GPT partition automounting doesn't apply here. Could you please share your kernel command line parmeters?

#

Do you have the rd.luks.name parameter set? Are you getting the same error as earlier (timed out waiting for root device)?

final latch
#

I announce the fact that i, instead of using cool video tutorial, will now be using the holy bible (arch wiki) and the knowledge gained from the video to setup arch linux os, @minor canyon i thank you for all your help since you tried for multiple hours debugging with me the setup so shout out to you and have a wonderfull day.

mystic turretBOT
#

mushroom.botherer received a thank you cookie!

final latch
#

As for tk-a thank for checking in but, for now the information wont be necesary

#

But definetly usefull ofc