#can't boot into arch

322 messages · Page 1 of 1 (latest)

fiery mango
#

made on behalf of @unreal owl

unreal owl
#

Cool thanks

#

So this is my problem

#quick-questions message

#

Well that's where I'm at

#

This is my problem

#quick-questions message

fiery mango
fiery mango
unreal owl
#

Any ideas?

kindred ice
#

Idk... Reinstall Linux kernel?

unreal owl
#

I feel like there's a better way to fix it

kindred ice
#

pacman -S linux linux-headers or something

#

Or run archinstall trollface

unreal owl
kindred ice
#

Failed how?

unreal owl
#

Some error

onyx zenith
#

In the last line it says - must be writable, it seems like permission issue.

#

installation process requires write access to this file.

#

change directory permssion like - sudo chmod -R 755 /boot/EFI/Linux/....

#

or change directory ownership...

unreal owl
unreal owl
unreal owl
#

Now I am able to see arch in grub

#

However I'm stuck at the terminal loading screen and it just says Loading Linux Linux...

unreal owl
#

Stuck on this screen for so long. How would I fix this?

kindred ice
unreal owl
fiery mango
#

@unreal owl don't syyu, syu is just fine

kindred ice
#

By installing the kernel again, the pacman hooks will rebuild the intramfs again for you

unreal owl
kindred ice
#

It's basically a roundabout way to run mkinitcpio -P but atleast it's making sure that everything is fine

unreal owl
unreal owl
#

I changed the chmod perms but still not working @kindred ice

unreal owl
#

Help?

onyx zenith
onyx zenith
#

you can do as per advised by @kindred ice

unreal owl
unreal owl
unreal owl
onyx zenith
unreal owl
#

What's the best way expand nvme0n1p1 to 1GiB? I also plan on making a swap partition too. Though, I don't want to ruin the data in my main drive in nvme0n1p2.

kindred ice
#

Best bet is to just reinstall everything dogekek

unreal owl
#

Nah bro I got too many precious stuff on there. There has to be another way

unreal owl
kindred ice
#

Hmmm

#

Off the top of my head

#

I guess you could kill this EFI partition

fiery mango
#

look like you need to go through a normal install which usually requires wiping a drive. i would suggest you buy a drive to install arch to.

kindred ice
#

And resize the end of your root partition to make some room

unreal owl
kindred ice
#

So basically moving the EFI from the start of your drive to the end

unreal owl
#

But that would mean resizing p2 right?

kindred ice
#

I think it might be possible but ehh

#

Yeah

#

I haven't tried this at all

unreal owl
#

Would that erase all data in p2. Resizing and formatting it all?

kindred ice
#

And it's just a conjecture

kindred ice
#

Just resizing

fiery mango
#

resizing can

kindred ice
#

Formatting will delete everything

#

Yeah, it can lead to dataloss

unreal owl
#

Data loss. I don't Iike data loss

kindred ice
#

There's probably some precautions we can make here

#

Like making sure that all the data is in the start of the partition

#

But I'm not sure how to do it on Linux yet

#

Or if it even is necessary

#

You can just use testdisk and make a backup of the partition

#

Just to be safe

#

Then resize it with something easy like gpartef

kindred ice
#

Or if you have btrfs, then you prob won't need to do anything

#

But idk

unreal owl
#

Don't have btrfs

kindred ice
#

Anyways

#

Although there's always a risk

#

If that was me, I'm going to be pretty comfy doing it on my own system

unreal owl
#

Deleting p1 and making another partition at the end and format it to efi?

kindred ice
#

Basically

#

If p1 is your /boot

unreal owl
#

And are you sure that's the problem?

kindred ice
#

And p2/root

kindred ice
unreal owl
fiery mango
#

how long did you wait

kindred ice
#

Have we tried reinstalling grub yet?

unreal owl
unreal owl
kindred ice
#

Like doing everything again from scratch

#

Mounting p1 to /boot

unreal owl
#

Yeah I did the whole grub-install thing

kindred ice
#

Grub-inst.. etc

unreal owl
#

Documented it somewhere in this chat

fiery mango
#

is the second partition a current linux install?

kindred ice
#

Wait a minute

unreal owl
fiery mango
#

is this a partition recovery?

kindred ice
#

Why is it vfat

#

Isn't it supposed to be fat32?

fiery mango
#

vfat for uefi

unreal owl
#

Confused. What are you talking about

unreal owl
#

Looks fine to me. I believe that was the option once I selected EFI filesystem in cfdisk

kindred ice
#

Can you do mkfs.fat -F 32 /dev/xxx

unreal owl
#

That makes it fat32

kindred ice
#

Then grub install

#

Yes

#

That's precisely it

unreal owl
#

I don't see how that will change anything

#

Did a little reading and it says vfat has backwards compatibility with fat

fiery mango
#

it does

#

vfat is the filesystem that is usually used with efi installs

unreal owl
#

Seems ok to me

fiery mango
#

fat32 is kinda the old school file system

kindred ice
#

Ehh

#

Iirc there was some issues with it

fiery mango
#

you can use a couple different filesystems for efi now

kindred ice
#

Yeah, I can use btrfs with it too but

fiery mango
#

vfat is usually more robust for efi partitions

kindred ice
#

Wait lemme check the wiki

#

This is from the grub manual

#

Vfat isn't listed there but

kindred ice
#

So idk too why he'd have a vfat on an arch install

#

here's what the wiki says as well

kindred ice
#

So maybe try changing grub cfg to use /dev/xxx as a trial?

fiery mango
#

uuid is usually a better idea

kindred ice
kindred ice
kindred ice
fiery mango
#

🤷

kindred ice
# fiery mango 🤷

Dw, we're both guessing dogekek, trying to make sense of why he can't access his boot when it should've been possible

unreal owl
unreal owl
#

I would feel like 512MiB would be enough

fiery mango
#

@unreal owl try it and see

unreal owl
#

1GB you said?

#

@fiery mango do I have to delete p1 or can I just keep it, make p3 and make p3 my boot

fiery mango
#

@fiery mango

#

i would suggest deleting partition 1 and recreating partition 1. making partition 3 would require resizing partition 1 to some small amount that would accommodate the size you need for partition 3. after that you would need to set the boot flags for partition 3 and reinstall to the new boot target.

unreal owl
#

Hopefully this doesn't break p2

fiery mango
#

if you dont touch partition 2 then it should be fine

unreal owl
#

But I did touch p2

#

I had to shrink it

fiery mango
#

what was the total space used for part 2 in percentage?

unreal owl
fiery mango
#

yeah thats just what is allocated

#

since its done we will have to roll with it

#

if the drive isnt 50% full it should be fine

#

but we can also use testdisk to try to recover anything that might have been lost

#

since the size is 1.8t i believe you will be ok

#

if you continue to have boot errors/issues, we can also walk you through smart tests.

kindred ice
#

Ehh

#

We'll see

unreal owl
#

I have a problem with expanding the p1 partition

#

it kinda caps out at 512MB

#

Tried making it 513MiB, wouldn't work

fiery mango
#

whats the total free space

kindred ice
#

Which is why I suggested to shrink p2 and make a p3 to mount as your boot

#

Moving around partitions is a slippery slope that can lead to dataloss

#

But

#

It's your choice in the end anyways

unreal owl
#

ah ok. I swear one of you said to resize p1 and continue to use p1

fiery mango
#

sound like the changes have not been committed, like resizing your part 2.

kindred ice
fiery mango
#

yes you can reuse p1. 512mb is plenty for efi install.

#

my current /boot is 151mb.

unreal owl
#

wait I thought we are making another EFI partition because my 512 p1 efi boot is too small

kindred ice
#

Expanding it to 1gb is fraught with dangers, but make a new one should be easier

unreal owl
kindred ice
#

Wellp, there we go then

unreal owl
fiery mango
#

i believe that is in your tempfs or / partition

#

sorry /var/cache/pacman/pkg/

kindred ice
#

Yeah, "boot must be writeable"

unreal owl
#

but I think I was mounted to p2

kindred ice
#

Yeah

unreal owl
#

is that an issue?

kindred ice
#

No?

unreal owl
#

and p2 has like 1.8T so idk what it means writable error

#

I gave it chmod 755 too

unreal owl
#

Damn. Wtf

kindred ice
#

dmesg

unreal owl
#

Yeah it said something about the geometry of p2

#

So I probably messed something up when shrinking it

kindred ice
#

Maybe

kindred ice
unreal owl
#

I don't believe I backed it up

#

Oh damn, I forgot to backup my 3d print files somewhere else

kindred ice
#

I forgot but you used archinstall right?

#

Like way way back?

unreal owl
#

I think for this particular one yeah

#

I previously had done it manually and I think it broke or something and so I wanted to test out the archinstall script

kindred ice
#

I see

#

Then

#

Can you install dosfstools

#

And mount p1 to /boot

#

Then retry mkinitcpio -P

#

I'm just curious

unreal owl
kindred ice
#

Fsck did not do anything for you?

#

Or even chroot

unreal owl
#

Can you even chroot without first mounting p2 /mnt?

kindred ice
kindred ice
unreal owl
#

Let me check

fiery mango
#

You can state the file system type

#

Some file systems will keep their attribute tables at the end of the partition. Fsck is also not recommended for some types of file systems. Your fstab should have a fsck flag to check or not, while it is mounting.

#

What was the file system?

unreal owl
#

Probably ext4

fiery mango
#

I would manually tell mount the file system type to try and help with mounting and also disable fsck on mounting

#

You are probably getting errors

unreal owl
#

Uh, turns out I need some files from the computer. Is there a way for me to mount and copy those files over to another drive?

#

@fiery mango didn't work

unreal owl
#

uh how do I use this?

#

interesting. neat tool

fiery mango
#

Please run

#

smartctl -t offline /dev/yourdrive

#

I will have to check the syntax

#

@unreal owl

unreal owl
#

uhh accidentally ran advanced scanning in TestDesk. This might take a while

fiery mango
#

Testdisk can copy files from one failing disk or disk being audited to another disk for chain of custody or good working new disk to replace the failing one

unreal owl
fiery mango
#

Yes please

unreal owl
#

@fiery mango

#

ok using testdisk I can find my files

#

doesn't seem to be deleted. can I move them to my other drive?

fiery mango
#

Yes

unreal owl
#

I can't seem to select another drive

fiery mango
#

Got a picture?

unreal owl
#

wtf

#

I tried copying and now all my files are missing from testdisk

#

from my /documents directory

fiery mango
#

It might not be in the same path that you are thinking

unreal owl
#

I'm so confused

#

I can't find the directory with all my files

#

This is what I see

#

It's supposed to have a bunch of files and directories in there

#

that was the last file I pressed "c" on too. idk if I accidentall deleted everything else

#

oh found them

#

in the Analyze menu

#

ok so I didn't accidentally delete anything that's good

#

so how do I copy these files to a different drive

fiery mango
#

@fiery mango

#

You will have to designate the source and destination in order to get the copy function

unreal owl
#

So I'm here. Where is that located

#

Maybe this

fiery mango
#

Read the bottom

#

Then read the top

#

C for copy mode

#

Select destination

#

C when destination is correct

unreal owl
#

yeah I did the same thing last time and when I pulled out the drive to check on another computer, it wasn't copied

fiery mango
#

Are you changing devices when you select destination?

unreal owl
#

yeah let me check again. I think this time it said 1 OK

fiery mango
#

Yeah sorry it's not an easier process

unreal owl
#

nah it could be worse. this tool seems alright

fiery mango
#

This software is usually for advanced or expert users so ease of use is not a concern

unreal owl
#

it seems intuitive enough

#

hmmmmm not here for some reason

#

odd

fiery mango
#

After you copy your files, can we check the drive health of your nvme with smartctl -H /dev/your device?

#

Are you able to select a different device for your destination during copy mode?

unreal owl
fiery mango
#

What's the file size?

unreal owl
#

43145 bytes looks like

fiery mango
#

Good it's not zero

unreal owl
#

I wonder if I'm choosing the correct directory

#

is there any other way?

#

I don't think I'm copying to the correct directory

fiery mango
#

Yeah sorry, there is not much I can assist here

unreal owl
#

and I can't just simply cp it because I can't mount and chroot it

#

hmm ok it says dev/sdb1 is not a directory

#

how else do I accesss my drive

unreal owl
#

Couldn't get copy to work but here's the smartctl. It passed as expected

fiery mango
#

@fiery mango

fiery mango
#

Before you get into testdisk please mount your sdb to /moveme and then you can copy to a directory

#

@unreal owl

unreal owl
fiery mango
#

It's the same process for your nvme

#

Should be sdb1 or what ever partition

unreal owl
#

Can't find ext4 filesystem, invalid fs_name, failed to read boot sector, failed to recognize exfat type

fiery mango
#

@fiery mango

onyx zenith
#

hey, how much progress ?

unreal owl
#

Uhh hee hee hee

#

I slept

fiery mango
#

Please make sure the p1 or partition numbers are correct or included

#

Also the mounting directories should be simple

fiery mango
#

@unreal owl

unreal owl
#

yo what happened to @fiery mango ? they're not in the thread anymore

#

oh they just popped up

#

yeah ima just use my arch laptop for now. Hopefully this doesn't break. Maybe I'll get back to solving the problem in another week. I'm kind of busy the upcoming week. Tryna get my sec+ cert

fiery mango
#

o/

#

make sure your syntax is correct while you are mounting devices

#

@unreal owl

unreal owl
#

hmm where was I. Had a bit of a break

#

Oh yeah I was in the process of using testdisk to copy my system to another drive

#

what are the important directories again? home and something in etc

#

yeah etc and home

#

holy fuck so many failed files

unreal owl
#

hmmmmmm