#error loading into arch, cant boot
591 messages ยท Page 1 of 1 (latest)
no matter what i do it just says "error you need to load kernel first" or itll bluescreen
running arch on my main pc, i have multiple harddrives plugged in, so if anyone asks to see them youll see theres a few harddrives
i just need to try fix it
i cant load any fallbacks or anything, i dont have a recent backup or anything, just need to fix
i dont have secure boot enabled, this happened before and someone helped fix but its done it again, not sure why, it randomly does this and i cant get it to work again, any ideas or suggestions / help im open to
You didn't specify your root device properly
Do you have the USB you used for installation
Arch-chroot and remount partitions
alright if i load up you want to try and explain and see if that works?
i did that last time but couldnt remount boot
your EFS needs to be formatted as VFAT, your root needs to be mounted first, then if you have a seperate home partition mount that under root, and your EFS to /mnt/boot
That means root isn't mounted properly
i can mnt yes but no mnt/boot
i have the 1tb then a 1gig for boot
but it wont mnt boot when trying
Huh
want to me to show you?
You need to update your kernel parameters to have the correct rootfs uuid
[Reply to:](#1322213308044021781 message) i always keep a liveboot
FAT32 also works
[Reply to:](#1322213308044021781 message) your EFS needs to be formatted as VFAT, your root needs to be mounted first, then if you have a sepeโฆ
mount /dev/sdx /mnt
mount --mkdir /dev/sdyn /mnt/boot
loading up my liveboot
Replace sdx win your root partition, replace sdyn with your boot partition
ill try i doubt itll work, this shit caused me so many issues with it working randomly then not working the next day
make sure to mkdir /mnt/boot if you don't add the --mkdir parameter to mount when mounting boot
God these headphones drained my phones battery like me drinking water
ill have to do lsblk so i can see hdds
ok
make sure i'm doing right one, i got way to my drives plugged
ill show you what happens when i try mnt boot normally
pretty sure my linux is sdb
thats what happens if i try mnt boot normally
Yeah you haven't created the mount point
alright ill do what you said now
Try this
this?
If no response then it wirked
shii now what i do
Reinstall the kernel
will i lose anything?
Unless you have a modified kernel, I don't think so
Wait
@hearty copper
Could they lose data from reinstalling the kernel?
i just want to fix the issue of it not loading so i dont lose the code i have saved on my pc etc
otherwise i woulda reinstalled
Kernel reinstallation shouldn't affect your data
alright, then please explain exactly what i do haha
uname -r
Ni
[Reply to:](#1322213308044021781 message) Could they lose data from reinstalling the kernel?
No
sudo pacman -S linux-zen linux-zen-headers should work
Wait nvm what kernel are you using
how do i check?
i don't think the problem is their rootfs
blkid
[Reply to:](#1322213308044021781 message) how do i check?
Lsblk
alright lemme load back up
the one you mounted on /mnt in the live usb is the rootfs
Y'know you don't need to keep going in and out of live boot
my pc crashed, so it restarted
Oh
Okay uhh which one of these is mounted on root
[(click to see attachment)](#1322213308044021781 message)
im going to guess sdb
sdb1
sdb2
Oh
idk
Yh
its one of them
send commands lmao
It's complaining about being unable to mount rootfs
what filesystem do you use on /dev/sdb2
im unsure ๐ญ
check
how do i check
btrfs device check /dev/sdb2 iirc
how and why are you typing with a webhoov
Is this BTRFS setup spanned across the disks using BTRFS RAID
NTFS is in a dual boot from what I see
[Reply to:](#1322213308044021781 message) It's ntfs
sdb2 is ntfs
rootfs is ntfs?
Apparently
It's btrfs
[Reply to:](#1322213308044021781 message) sdb2 is ntfs
system has 1 windows boot and 1 linux the other hdds are backups
I think they mounted the wrong drive
all are using different hdds
sdb2 is btrfs
Oh
run a check on sdb2
how
Did you mount it at /mnt
lemme do that now
no, unmount it
oh
btrfs check /dev/sdb2
Unmount
no no no
and request a filesystem check
I think sda2 might be the correct root
and also a SMART test
It is, now please check it for errors
[Reply to:](#1322213308044021781 message) I think sda2 might be the correct root
so theres no way its the wrong one
Try sda2
but isnt sda2 sth different
I would strongly advise a smart test as well
btrfs check /dev/sdb2
smartctl -t short /dev/sdb
No it's fat
Why are your screenshots wonkey
using phone lol
unmount /dev/sdb2
[(click to see attachment)](#1322213308044021781 message)
I know
umount /dev/sdb2
okie
Then rerun btrfs check /dev/sdb2
okay
Now wait for 2 minutes
after that you can check the results with smartctl -x /dev/sdb
no happy birthdays just errors
Happy birthday!
[Reply to:](#1322213308044021781 message) what a way to spend my birthday lol
Happy birthday
this isnt happy anything ๐ญ๐
Aw sorry
Welcome to Arch Linux
i got 3months worth of code on this pc
i need it back
also has certain work related code on here
Now
God I hate partition tables
It's been more than 2 minutes
Did not pass
smartctl -x /dev/sdb | grep passed
It maybe did
[Reply to:](#1322213308044021781 message) Did not pass
pk;edit #1322213308044021781 message smartctl -x /dev/sdb | grep -i passed
it says passed in red
Okay now you can mount it again
okay
Which should trigger a regeneration of initramfs
Are you using subvolumes?
Because if you are you want to mount the root subvolume, not the BTRFS partition itself
If rootfs is a subvolume, it should be specified on the kernel args
well ive mounted now what i type ๐
ls /mnt
Wait how do you spec that to the kernel
Ohh
Ya that disk scares me
[(click to see attachment)](#1322213308044021781 message)
if the disk triggers an ATA error during the mdraid, lvm, fsck, mount, etc. operations before the initramfs hands the control off to the kernel, it panics
Do you have another hard drive lying around
you need to backup your drive and get a replacement asap :/
this harddrive bad?
You don't want to be too quick to assume that it's a bad drive
Yeah it passed the smart check
You should also check if it didn't displace in its socket
bro you wanna see the harddrive???
smart is a check the drive performs on itself
[Reply to:](#1322213308044021781 message) Yeah it passed the smart check
Oh
Not me, but you would like to take a look
[Reply to:](#1322213308044021781 message) bro you wanna see the harddrive???
That could be the reason
Ya check if the connector fits properly
[Reply to:](#1322213308044021781 message) its hanging out the back
Also don't trust the friction between female and male SATA connectors against gravity
Did you ever drop your drive
can you put something under it
So it stays level
also, how would this fix the loading error
It might be annoying but it's better than hanging your drive
[Reply to:](#1322213308044021781 message) nope annoying
By not causing a random connection failure
[Reply to:](#1322213308044021781 message) also, how would this fix the loading error
also check the socket
HDDs should be deprecated
either way none of these would fix the kernel issue
They would
The kernel complains about being unable to find rootfs
[Reply to:](#1322213308044021781 message) either way none of these would fix the kernel issue
And we saw where rootfs is: its connection to the SCSI port is questionable
yeah not sure why it does that
Seismic events might be displacing your HDD
so that the contact breaks
put something under it
Hanging that HDD is dangerous
The HDD should be resting level
And there shouldn't be tension on the wire
So it was the physical connection to the drive
Ya your disk is sliding over the SCSI comnector
And gets disconnected
Put something under it please
how
most i can do
The friction between the male and female SCSI connectors is not enough to resist the weight of the disk
[Reply to:](#1322213308044021781 message) And gets disconnected
do you have any space behind the case
nope
i cant boot into it at all now
restarted pc and unplugged resit now it doesnt boot to anything haha
Unplugged what
yeah that hdd is dead lol
You have your work stuff in it you said
so fuck it, ill sell the pc get something for my birthday maybe even go and buy food lmao
so how are you typing using the webhook?
@hearty copper ^
nothing else was showing on the drive so guessing its wiped anyways
probably worse things than just wipe
lol, hate this shit
You could probably get the data recovered by a professional who knows how to deal with magnetic memory
is the reason why it shows nothing on drive now due to me doing /mnt/boot like adding one ?
@worn summit
what if i grab another harddrive itd just be an external one and use that as main drive? would it be possible to swap over main things to it? aka files and everything
i think it might be due to the fact of i made a mnt/boot file
so its trying to boot from that maybe?
since the boot file now is empty
@spark aspen
so maybe if i delete that file i created
@worn summit
what i do here? @spark aspen
@hearty copper
im tryna remove the boot file i made
because this is what it says now im bios but files still show up on my liveboot
so gonna guess i messed sth up earlier
aka, the making of the mnt boot file
^
would that be why its not showing up anymore?
i needa undo whatever we did
all i know is we mounted boot to a file we made
so removing that file should fix that issue right?
@hearty copper does that seem right?
What did you wipe
because the files show up on live boot, but, i cant boot into the hdd anymore normally
i havent wiped anything
all we've done is make a boot file
Hmm
What bootloader did you use to use
grub
.arch-chan-uwu grub
Reinstall grub
im just trying to fix
can you helo with that
adding grub to the boot file should fix things
I don't feel well but I'll try
Idk how the boot file works because my system doesn't recognise it :p
[Reply to:](#1322213308044021781 message) adding grub to the boot file should fix things
What I do is black magic in uefi shell
ah should i jus delete the file and hopefully itll work again
Maybe
Reinstalling grub should work on your implementation of uefi tho
Unmount
When remounting, specify the switch -o subvol=root
so all files are there just gotta fix the issue of it not loading at all now
Then arch-chroot into it and do mount -a
Ya I'm telling you the safest way to do that
[Reply to:](#1322213308044021781 message) so all files are there just gotta fix the issue of it not loading at all now
- unmount everything you mounted
done
- Mount your root subvolume, specify your root subvolume while mounting with
-o subvol=@(or whatever your root subvolume is called)
what do you mean by that
You can see subvolumes with btrfs subvolumeisf
i know my root is sdb2
instead of doing mount /dev/sdb2 /mnt do mount -o subvol=xxx /dev/sdb2 /mnt
where xxx is your subvolume name
You can find it from btrfs subvolume list
What do you see when you list /mnt
It is
after this is fixed im backing up my entire hdd and moving it to a 8tb
Good luck
Hmm
Can you show the full screen in the photos
That wonโt work
Well we need to install a bootloader
do i not have one?
Loads of things are missing
What operating system and what filesystem were installed?
arch linux, she knows rhe filesystem
i think thats the right pronouns
my bad if not
She
she/it/fae :p
my bad
anyways
Btrfs
[Reply to:](#1322213308044021781 message) arch linux, "he" knows rhe filesystem
With subvolumes
i had an issue before but then we made a /mnt/boot file and then it wouldnt boot at all
so im guessing i need to fix that
Was sbd2 root, or a partition just for snapshots?
im not as advanced with arch
It's the entire rootfs
[Reply to:](#1322213308044021781 message) Was sbd2 root, or a partition just for snapshots?
sdb2 is root pretty sure
From what I see
Where is /var for example?
If it was a BTRFS RAID it would have already been assembled
this only now doesnt boot at all because of the new /boot (im guessing)
It doesn't have a bootloader
Thereโs loads missing
That's why it doesn't boot
yeah
it DID have one which had issues of not loading
now doesnt have one
so how do i fix?
Thatโs one issue, but it doesnโt have a var, dev, etc
This is not an arch root partition
this doesn't even fit into the FHS
Not unless someone has been deleting everything
snap makes me think about ubuntu
Same
Anyways I'm going to sleep my throat is too sore
good night, hope y'all find a solution
You need to put out there information like what the install was- was it Ubuntu?
Try running pacstrap /mnt filesystem with the root subvolume mounted
That might fix some of the missing directories
I wonder what the fstab should look like ๐
it does
hol up how i unmount
it does have /var and shit
theyre just in different folders
i mounted to it now
how do i get bootloader back though?
not when you ran ls on it
i did this
i did it in wrong mounted part i think though @hearty copper
since running the command it's created it
but before then we can see it wasn't
mightve been in a different folder though
so how do i fix booting?
@home as my user n shit in it /boot has nothing
is reading that hard?
bin lib lib64 mnt opt sbin snap srv usr
It's all right there, right after sdb2 was mounted to /mnt
so we have no idea why you were missing a load of important root directories, and you don't seem to be able to tell us, that implies something very wrong has happened. Presumably home is mounted elsewhere. Do you have anything important installed on root?
what??
have you done this with the partition being mounted but not as a subvolrume?
yep...
i thought i had subvol mounted
not part
Delete the directories that just got created
Be careful not to delete any of the subvolumes
how do i remove them lmao
remove everything that isnt in this ss?
yeah
rm -rf [directory]
So cd into that directory and do rm -rf usr boot opt etc... etc....
it should look like this one
my guess is that would be fine but double check with @worn summit
yeah just waiting on his response
because i think creating that boot folder fucked it last time
Looks good to me
so remove boot folderv
Oh yeah remove that too
done
it really didn't, that whole parttion looks fairly fucked to me
will it actually boot now lol or will i have issues
personally I'd just be backing up all the home files I want to keep and reinstalling, but that's me
it worked before i jus had a different issue then adding a boot folder made the actual hdd not even boot up at all
Now unmount that partition, and mount your root subvolume with mount -o subvol=@ /dev/sdb2 /mnt
mount
OOPs
done
right now im in right place right?
in the root folder theres only snap ?
I was going to have you mount the package cache but var seems to be gone lol
Try running the pacstrap command now
whats the command again?
Hm I thought that might happen
Because var is gone, so is the list of installed packages
You can try chrooting now
yeah
my question, continuously, remains, what happened to the other directories? were they / are they on another partition?
were they deleted?
No.
It shouldn't be
I think they have other subvolumes of these things randomly spread out on other partitions
yeah
Oh
so why didn't you say that earlier?
i did ???
I asked you what happened to them
i said there in different folders
Try running mount -a then
you never gave me an answer
folders and subvolumes are different things
Does pacman -Q return a list of packages?
That should show if your /var subvolume/whatever is mounted properly
From chroot
When you ran mount -a, was that in or outside of chroot?
What does lsblk show?
What's in /mnt/@/etc/?
just randomly through everything "hey, lets reboot"
pc was frozen ?
ts harddrive jus a ballache, fuck it just have to deal with the fact it aint gonna load again lmao
if you reinstall (I don't know if @worn summit agrees that that is maybe the most sensible way forward or not) follow the following process:
Back up all files and folders you want to an external device. This should mostly if not entirely be made up of things from your home subvolume.
Decide what FS you want to use (perhaps btrfs would be too advanced for you, maybe try ext4?)
If you decide on something like btrfs:
Decide what you want the subvolumes to be, and where you want them located, do so in a way that you find easy to remember
If you don't, decide if you want /home to be on a seperate partition or not (I wouldn't bother personally)
Then when you've decided all of that, that's when you would reinstall, according to the plan you lay out, including deciding what drives you want to have which partitions
I mean it might be fixable, but you may just want to transfer your important data to another drive instead
If you reinstall I'd recommend going with a more normal partition layout instead of whatever this is
id have to do that another day
its my birthday and ive spent the entire day trying to fix it
so just gonna give up for now
#9742 ๐ฃ If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.
- You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
- You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".
Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you
... solved