#[SOLVED] Tried using Google Gemini (AI) to flash hyprland via USB stick and now I'm stuck.
1 messages · Page 2 of 1
those are okay
Ok I'm back in root archlinux
is /boot mounted
Nah I don't see it here
mount it, thats where the images are gonna be
so `mount -o /dev/boot/ ?
mount /dev/mmcblk0p3 /boot
Sorry I just don't know know how to do any of this
yeah no sorry im super laggy in real life rn so not much to help either
Now it says that the kernel image doesn't exists
Oh ok mb
send a picture of lsblk
you have some weird shadow partitions i forgot about
these need to go
yeah, how did u even create them
No idea. Maybe it was just there before
Bc I saw it with the Ai as well
Oops
How do you exit out of fdisk again?
Ok whew
Almost deleted partition 1
How would you be able to delete them? They aren't under a file like sda or mmcblk0 so you can't enter into it
could probabl jyust unlink them by they dev block name
How?
Alr
there is a copy of the kernel in some modules folder
try this
wait, make sure your boot is mounted first
outside of chroot there are more convenient commands but checking if its a mountpoint rn is pefcetly valid
mountpoint /boot
if it's a mountpoiint its good
so if its a mountpoint, run this cp /usr/lib/modules/$(uname -r)/vmlinuz /boot/vmlinuz-linux
yeah
Wokref
Worked
Hopefully
i guess thats it then?
do you have efibootmgr installed=
cant remember
was thinking if you had it to delete old partition entries, no stress
Btw mmcblk0p1 and mmcblk0p0 are still there I think
SORRY I MEAN
mmcblk0boot0
Mmcblk0boot1
Anyways am I safe to reboot?
yeah
It booted me back into grub
damn!
Maybe I should make it so 'arch' is the first to boog
i forgot,
did you regen grub config after mkinitcpio?
gonna reboot too. my sound is broken :s
No idea what that is but I gues no?
grub doesnt automatically pickup new available boot options but only when you regen its config
sorry man, i keep forgetting you dont know much about linux
Ohh ok
Probably not
Does that mean we have to do all of that again 😭
Ok so I'm back in the grub command line
set root=(hd1,1)
linux (hd1,3)/vmlinuz-linux rw root=/dev/mmcblk0p1
initrd (hd1,3)/initramfs-linux.img
boot
So close
so its hd0 instead
So replace the set=root, the second line and third line with (hd0,1) and (hd0,3)?
yeah
Second line error disk hd0,3 not found
run ls
ls (hd1,1)/
ls (hd1,2)/
ls (hd1,3)/
once at a time
did you forget to rename the kernel when you copied it earlier?
is it still just called vmlinuz
Uhh yes I think I did forget?
look at their contents
sweet there it is
Any more commands?
i cant see hd1,3s entire patch

linux (hd1,3)/boot/grub/vmlinuz-llinux rw root=/dev/mmcblk0p1
is initram at the same place?
File not found
where is it then???
yea i spelt vmlinuz-llinux wrong but havent you typed it enough by now to know
sorry 🙏
can you do ls {h1,3)/ and just spam tab complete
yeah i meant in the directory, not the commands avaialble
Don't know what it means but when I enter that command, it just outputs nothing
its not a comman
look i gotta run for a few
when you got the kernel sorted its only the initramfs-linux.img left for the gruub part
initrd (hd1,3)/where/ever/itis.img
boot
when you got the kernel sorted its only the initramfs-linux.img left for the gruub part
`initrd (hd1,3)/where/ever/itis.img
When you are in rootfs, start with making the new root fs
mkdir /mnt
immiedetely mount your root
mount /dev/mmcblk0p1
then the systems functionality
mount -t proc /proc /mnt/proc
mount -t sysfs /sys /mnt/sys/
mount -o bind /dev /mnt/dev/
mount -o bind /run /mnt/run/
mount -o bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars/
and then chroot it
chroot /mnt /bin/bash
once in chroot, generate your grub-mkconfig with
stop! dont forget to mount your boot partition
mount /dev/mmcblk0p3 /boot before you do the grub-mkconfig
grub-mkconfig -o /boot/grub/grub.cfg
@jagged ridge can you help me do this?
@calm egret do what?
He said I gotta write all of this in the grub command line
Although idk how to do it
Like the first one
type that 
No I mean
He's asking me to look for something
Look at the first line of code he said
@calm egret type initrd (hd1,3)/where/ever/itis.img
I need to load a kernel first it said
photo please
I know it looks stupid I genuinely don't know what to put thete
Also sorry for delay
you need to find where you intrid is
What command can I do that with?
@calm egret
Are you available? @raven meteor
Not consoatentöy
Whats up
Consttistantly
Sorry for the spam but I just didn't know what i said yesterday
show me your root partition whenever you are up for it
ls (hd1,1)/
(hd1,1)/boot
I gotta go but we'll talk in the afternoon. Here are some commands I made
you have kernel/initrd in your root/boot folder
you see them here
since your root keeps changing its either these commands to boot:
linux (hd0,1)/boot/vmlinuz-linux rw root=/dev/mmcblk0p1
initrd (hd0,1)/boot/initramfs-linux.img
boot
if that dont work, change (hd0,1) to
(hd1,1)
Ok so hd1,1 worked, I'm back in emergency shell again
cool
When you are in rootfs, start with making the new root fs
mkdir /mnt
immiedetely mount your root
mount /dev/mmcblk0p1 /mnt
then the systems functionality
mount -t proc /proc /mnt/proc
mount -t sysfs /sys /mnt/sys/
mount -o bind /dev /mnt/dev/
mount -o bind /run /mnt/run/
make the direcory for efivars: mkdir -P /mnt/sys/firmware/efi/efivars/
mount -o bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars/
and then chroot it
chroot /mnt /bin/bash
oh right
exit
mkdir -p /mnt/sys/firmware/efi/efivars
and rerun the mount command. (use arrow up)
It says it's a invalid option
Yep
and rerun the mount command. (use arrow up) to mount the efivars
Gave me the same mount command error
send pic
exit from chroot
It just asks me for my password tho
where
press ctrl + d
Nah it leads me back to this
Whenever I press ctrl d
okay
there's a duplicate in your fstab
How do I delete it?
vi?
vim? macro? nano
mv /etc/fstab /etc/fstab2
echo "LABEL=ROOT / ext4 defaults 0 2" > /etc/fstab
Yea it was nano
echo "LABEL=BOOT /boot vfat defaults 0 0" >> /etc/fstab
or use nano to remove the ID's
save the LABEL lines
and fix the LABEL_BOOT
No such file or directory
echo "LABEL=BOOT /boot vfat defaults 0 0" >> /etc/fstab
notice the double >> now
Nothing still
Nah mb
Yep fixed them and it works now
^
nano /etc/fstab
No file or directory
yeah
rm /etc/fstab
echo "LABEL=ROOT / ext4 defaults 0 2" > /etc/fstab
echo "LABEL=BOOT /boot vfat defaults 0 0" >> /etc/fstab
Worked. I think i didn't get the spaces last time so it didn't work then
spaces doesnt matter. as long as there is 1
anyway. thats done now
cat /etc/fstab
LABEL=ROOT /boot vfat defaults 0 0 was the output
wait what
jesus
rm /etc/fstab
echo "LABEL=ROOT / ext4 defaults 0 2" > /etc/fstab
Done
echo "LABEL=BOOT /boot vfat defaults 0 0" >> /etc/fstab
Done
cat /etc/fstab
Same as before but LABEL=BOOT
there is no LABEL=ROOT?
@calm egret? did you use 2 >s?
wtf
oh ok. Perfect
umount -r /mnt
It's saying that /dev/mmcblk0p1 is mounted on both /mnt and /.
thats from earlier when you tried to mount the system mounts inside of chroot
umount: /mnt: target is busy
yeah i figured
It worked
nice
Great. That just says "Unmount when it's not busy"
mount /dev/mmcblk0p3 /boot
So now it's not mounted to /mnt it's mounted to /
yes
good
mount: (hint) your fstab had been modified, but systmd still uses the old version; use 'systemctl daemon-reload' to reload.
Nothing to worry about right?
systemctl daemon-reload
there is no daemon. He's chrooted
apparently not
Done
mount /dev/mmcblk0p3 /boot
Done
lsblk
@raven meteor Whats the current error while booting? (I was reading the history of the thread but stopped after around 500 messages)? Do they just have to regen grub and remake the initcpio?
yes thats my thinking
ok
there is no internet, no text editors
Are the warnings just "Possibly missing firmware"?
if its running thats good.
send a picture when its done
Yep
yep. That's fine
now you should just have to run grub-mkconfig -o /boot/grub/grub.cfg
Done
After you get booting. It might be a good idea to just download an ISO and reinstall? We don't know what has fully happened to your system.
Great.
Ok so time to boot?
time to reboot
and hope it worked
yeah
Whats the command to reboot? I feel like if i hold down the power button and turn it back on it will reset something
reboot
Failed to connect to system scope bus via local transport: No such file or directory
Too late rip
to sync your disks
I'm here now
well .Lets see if it worked
where is here
Sorry discord just won't let me take a screenshot
But there is the option for arch linux
chose it
yes
Still loading...
pic
we did. might have become unlabeled
no. Thats adding it to the fstab. not labeling it
alright. Bc systemd locks the emergency shell, we will have to chroot one more time.
well. You might as well try the emergency shell.
it will work to give root password
but ill let you cover this jacob
ill be away for a few
I mean I entered it and it worked
ok great. so you have a shell?
If that's [root@archlinux~]#then yes
Command not found
Well that's fun
The easiest way to fix this would be to remake your fstab one more time
So time to remount everything again?
run echo "LABEL=ROOT / ext4 defaults 0 2" > /etc/fstab
nope. Stuff is already mounted. That's good
Great
And then echo /dev/mmcblk0p3 /boot vfat defaults 0 2 >> /etc/fstab
Sorry. Forgot to redirect it to the fstab.
yeah. Just press the up arrow and type >> /etc/fstab
and the quotes
not required
sweet
I figured it would ber easier without them
Worked without them
ok. then run reboot -f
Same error as befoe
Worked
🙏
oh. Didn't even notice it was you. 🤣
epic!
I put in what I thought it was but it sId it was incorrect
oh yeah. do you know the root password? Or do we have to reset it
its been a mile to get here lmao. a refreshed pair of eyes is always welcome
Shouldbi choose the one with fallback initramfs
no. That shouldn't be needed
np
Still asking for a login
are you in a gui or a tty?
if its a tty, enter root
I entered root and it brought me to a shell
ok. run cat /etc/passwd
What am I looking for here?
the bottom line should be your user
anything above 1000 UID
You don't have a user?
Should I try nologin?
I made one when I used archinstall
ok then. run useradd -mUG wheel <username>
this is a very barebones arch-install
idk. It failed or smth
its very unclear
@calm egret ^^
1000 packages are iinstalled but i couldnt tell you which.
its hard when there's no network configured
yeah. Next step is network.
Ok done
ok, now run passwd <username>
I do hope that you replaced <username> with a username
sorry if it wasn't clear
Great
It depends on whether the needed packages are installed
Run systemctl start NetworkManager
Alr one sec
Done
did that error?
Nope
Ok. Great. Ethernet or Wi-Fi?
Wifi
ok then. Run nmtui
Cool menu
and select "Activate A Connection" and press enter
The star means I'm connected right?
yep
I just entered my pass and everything
Ok im back to a blue shell
ok. run pacman -Syu dosfstools
take a picture if there are more updates
press enter. Thats great
Yea this gotta be the most annoying way to install arch linux 😭
probably
Ok done
ok then. Youshould also run pacman -S nano micro --noconfirm
Done
Ok. run fatlabel /dev/mmcblk0p3 "BOOT"
It said It wasn't automatically fixing something and "there are differences between boot sector and it's backup
Yep
ok. on the second line, change /dev/mmcblk0p3 to LABEL=BOOT
That isn't there
could you send a pic?
Done
ok. Press Ctrl+s and Ctrl+q
Done
ok. Where do you want to go from here? Do you want to go back to Windows? Do you still want Arch? Etc
No I would like arch to be the main primary os for my laptop
I don't want to reinstall windows for now
OK. Well the next step is probably to reinstall arch. We don't know what the rest of your system looks like.
Ill help you through this and trust me, it's not too hard.
I haven't seen any other drives pop up during all of this
Ok then
To start, let's get a graphical interface. Run pacman -S xfce4 isoimagewriter
wdym?
mmcblk is his memorycard, where arch currently is installed
/dev/sda is his usb-drive
He has a usb to install from.
whats he gonna install on to
mmcblk. It's a reinstall
thats a memory card, hes been talking about a hard drive
but havent seen any trace of a hard drive
Oh. Internal memory card?
yeah
I think /dev/mmcblk0 is the hard drive
@calm egret Is that right?
Yes it is
ok
ill leave you to it
Mmcblk0 has always been the harddrive
Sda is the 64gb drive (the one I use to boot into arch
Sdb is my extra drive
ok then. Proced with running this:
Ok ran. I pressed enter every time btw
um.. should be fine
Yes. We are going to do that in the reinstall
Ok
ok. run systemctl enable NetworkManager
Done with no errors
now run pacman -S sudo
Done also with no errors : )
ok. run EDITOR=micro visudo
and scroll to the bottom (or use arrow keys if scroll doesn't work)
Ok I'm at line 140
ok. You should see a line that starts with # :wheel. Remove the # and the space
There's two
um... Either works.
You can just uncommnt the one that has NOPASSWD in it.
then save and quit
done but I didn't do the NOPASSWD one
i mean thats fine too
now run startxfce4
wait. Before you do that
run su <your user>
ok. Run sudo pacman -S xorg-server
When I typed my pass is said <user> is not in the sudoers file.
Obviously using my user tho
Done
ok. now try sudo pacman -S xorg-server again
Same error
you sure you removed the hashtag?
su - timi
i guess su root and run EDITOR=micro visudo again
could you then scroll down and take a pic?
Worked
try sudo pacman -S xorg-server
Worked
they are not in the sudoers?
wait what?
ok then
try startxfce4 again
groups dont get added to existing shells so had to refresh when you added the wheel group
oh. Forgot abt that
🤝
@calm egret Did it work?
Yep
great.
I dont remember if xfce comes with xfce4-terminal.
Can you open a terminal?
With what command?
usually there is a terminal button at the bottom of xfce
oh. run sudo pacman -S xfce4-terminal and then startxfce4
Let's gooo
I assume you're now in xfce
ok. run sudo pacman -S firefox && firefox
Sorry I mean providers
choose 2
Which font?
Done Firefox opened immediately
Yep, should I install Rufus or should I just use dd?
Rufus is windows-only.
Ahh ok
I'm assuming bitorrent is as well?
No. You can use that if you want.
Otherwise do an http download
Nah it's a extra step I got the iso rn
just sudo pacman -S qbittorrent
oh. You already have it?
oh. Ok
I was going to say take a nice break but your internet is fast...
Yea lmao it was never this fast before I switched
Ok done
Well. In a new terminal, run isoimagewriter
or just close firefox and use the old terminal
Command not found
... run sudo pacman -S isoimagewriter
While running this I did a quick Lil speed test and it says it's doing 156.2 mbps/s having a 89.6mbps upload speed 😍
Anyways done
Ok I see it now
I assume you can guess what to fill in
yeah
Ok it's creating now
ok.
Also when we run the new iso are we using archinstall or are we going the harder path?
depends, I would recommend a manual install bui iiirc your origional problem was caused by running commands before running archinstal
wow that's a lot.
Ok well I think I know some stuff that aren't necessary
Boot 15-18 are probably useless
can you just run sudo efibootmgr -Bb and then the 4 digit number for every single one
nope. None are necessary.
they will all be re-created
and then could you just re-run efibootmgr and post the pic
ah. What was the last command you ran?
Oh so sudo efibootmgr -Bb 0017?
hm... that's correct.
sudo efibootmgr -Bb
yes. this
Including the windows boot manager?
Yeah. Windows isn't even installed is it?
No it should be gone
then yeah. Including it
Ok ima head Into my boot settigns
Here's what the order looks like
It just took me to grub again
(Before this)
ok. Well you should be good to boot the usb.
so you are back in your install?
Don't think so it just led me back to the root
I don't think I ordered the USB drive correctly or something
usually computers have a 1 time boot menu
Yea that's what this is
@calm egret So I NEED to go in an hour. If you like, we can continue this tomorrow. r I can try to help you get it installed rn.
Rn quickly
ok. Move the usb to the top of the boot priority.
Usually press f5 while selecting it
The hdd one?
the USB with the arch ISO we flashed
perfect. First option
Yep
OK. Are you using UEFI?
I mean. Your choice.
yeah
Uh oh
I switched to uefi and now it won't let me select the new arch drive
Ima go back go legacy 😭
ok
Nothing is wrong with legacy. The UEFI spec sucks
Really? I thought uefi was a much better choice
I mean, it depends
We want to get this done in 45 mins though
so boot and get upto fdisk
ok. type o and press enter
Done
type n and press enter
Primary or extended?
Partition 1?
wdym partition 1?
It's asking for a partition number
How much for last?
It's asking me if I want to remove the signature?
Ok done
now press n and press enter 5 times
Yep done
this will be your root partition
Yep
type t, enter, 2, enter, linux, enter
Done
now press w and enter
Ok done
alr, run mkswap /dev/mmcblk0p1
now run mkfs.ext4 /dev/mmcblk0p2
Done
ok. run swaplabel /dev/mmcblk0p1 "SWAP"
wait. wrong command
swaplabel -L "SWAP" /dev/mmcblk0p1
that one's right
Ok done
now e2label /dev/mmcblk0p2 "ROOT"
Error
Ok done, run last command again?
yep
Done
are you on an intel or amd cpu?
ignore that. That was too early
Oh ok
Done
mount /dev/mmcblk0p2 /mnt
Done
Now pacstrap -K /mnt base linux linux-firmware nano micro grub networkmanager intel-ucode
This is the actuall install part
Yep it's doing it's thing
Great
Hopefully this doesn't take to long, please write down the rest of the commands just in case so if u gotta go I can write them down
ok.
If there are any errors I'll just search em or wait tmr
Also incorporate that I want to have stuff like neofetch and Firefox installed
Lmao
Ok luckily its done
ok. I have the commands saved in case I have to go
can you post the output of genfstab -L /mnt
great. run genfstab -L /mnt >> /mnt/etc/fstab
Done
now run arch-chroot /mnt
Done
ok. Now run ln -sf /usr/share/zoneinfo/<Region>/<City> /etc/localtime Replacing region and city
you can tabcomplete to see options
Hmm
Hmm?
I can't put something like <providence>/<city> right?
I mean, IDK. Depends where you are
Ok wait lemme see available options
I have no idea how to set this up. Can we skip this or can I just use your config
there should be
Nvm fixed it
... Region and City are not in <>
which might have been your issue but you can change it later
so you got that working?
Yep
hwclock --systohc
Done
Done
then remove the hashtag before en_US.UTF-8 UTF-8
Done
ok. Save and quit micro
Done
run locale-gen
Done
echo "LANG=en_US.UTF-8" > /etc/locale.conf
Done
echo "<hostname>" >> /etc/hostname You can put whatever you want. Put something simple for now/
Done
Now set a root password passwd
Ok done
pacman -S e2fsprogs dosfstools fastfetch firefox
fastfetch is the new neofetch
Then useradd -mUG wheel <username>
Ok
Next steps are:
passwd <username>grub-install --target=i386-pc /dev/mmcblk0grub-mkconfig -o /boot/grub/grub.cfgsystemctl enable NetworkManager
and reboot
Ok then if you are still there I'll let u know when it's done
Ok
Uhh just rebooted, it brought me back to this screen
Ok great I was so scared lmao
Well your USB is still plugged in and the first boot priority
What are the options?
eMMC card I think
Brought me back into this screen
Unplug the USB and retry
OK. Plug the USB in and boot the install medium
(Troubleshooting should be very easy now)
Ok back in the main screen
The shell or the boot screen
OK. Run cat /sys/firmware/efi/fw_platform_size
It output 64
I think so?
Otherwise we have to reinstall for a uefi computer
I looked everywhere I don't see csm anywhere
Can you send a picture of the boot mode (legacy vs uefi) page
Change boot priority to legacy first
Then boot again?
Strange
What happens if you choose boot existing OS in that menu?
Nothing, I pressed it and ir accidentally led me back into the install
Heading back now
Alr, what code should I put?
Can you re-run cat /sys/firmware/efi/fw_platform_size
It should give a file not found
Done
arch-chroot /mnt
Done
Try running grub-install --target=i386-pc /dev/mmcblk0 Again
It installed with no errors
OK. And re-run grub-mkconfig -o /boot/grub/grub.cfg
Uhh
?
Done
Well I did and nothing will work
Define "nothing will work"
The emmc card won't boot
Plug the USB in and at grub, press c
It booted me back into this
No. Boot the usb
Which?
Usb
Yea it boots me back to this as well
Oh no. When at the prompt press C, don't remove the usb
The boot selection prompt?
The one with the archlinux logo
Yea that didn't work
To get to the grub prompt?
Huh
Listen. I'm getting very tired. It's getting late. Can we continue this tmrw? Or anyone else who joins today?
Alr yea
OK. Sya tommorow
Cya gn
@calm egret Good Afternoon/Morning/Night
Good afternoon/morning/Night to u too
I'm almost home, so If you are still available I'll be online to finish it
Alr I'm home now @jagged ridge
Yep. Sadly
You'll see.
First, You'll want to change tho boot order back to UEFI First
yep. Hopefully for the last time
Top option
ok
Ok done
Yep
ok. Run fdisk /dev/mmcblk0
Done
Ok
type n and press enter
you want partition 1 so just press enter for the default
Press enter for first sector
and enter +1G for second
Ok done
type t press enter and then 1 and enter
Sorry it's asking me if I want to remove a signiture
yes
Ok done
now press: n, enter 3 times, +8G and enter
Oops I pressed enter 3 times but it accidentally used all of the storage for the last sector
I can delete it right?
its fine. Press d and then 2
yep
Ok I fixed that and I did this
ok.
now just press n and enter until it's done asking questions (4 times?)
Alr done
Ok done
ok. Finally, type t again and enter 3
Actually, nvm. The default type should be fine
just press Ctrl+C to exit type selection
Oh ok ty
jacoblightning3 received a thank you cookie!
Ok done
could you show a pic of lsblk
I'm not sure if it's a program but it said mkfs.fat 4.2 (2021-01-31)
yep. That's correct
now run fatlabel /dev/mmcblk0p1 "BOOT"
Oh ok
Done with no errors
ok. Now run mkswap /dev/mmcblk0p2
Done
swaplabel -L "SWAP" /dev/mmcblk0p2
Done
mkfs.ext4 /dev/mmcblk0p3
Done
e2label /dev/mmcblk0p3 "ROOT"