You are not logged in.

#1 2022-03-09 17:47:00

dabigwaffle
Member
Registered: 2022-03-09
Posts: 7

My Arch Linux installation is kinda broken and I can't fix it.

So I have an Arch Linux installation and it gives me an error when I try to boot saying '

file '/boot/initramfs-linux.img' not found

'. I have tried chrooting into it using a random Ubuntu 20.04 ISO to reinstall the kernel (which would run 'mkinitcpio', I guess), but it gives me another error saying '

ERROR: '/lib/modules/5.16.13-arch1-1' is not a valid kernel module directory

'. Now I don't know what to do anymore.

Offline

#2 2022-03-09 17:48:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: My Arch Linux installation is kinda broken and I can't fix it.

Is /lib a symlink to usr/lib/?

Offline

#3 2022-03-09 18:07:15

dabigwaffle
Member
Registered: 2022-03-09
Posts: 7

Re: My Arch Linux installation is kinda broken and I can't fix it.

Scimmia wrote:

Is /lib a symlink to usr/lib/?

I don't know. Should it?

Offline

#4 2022-03-09 18:11:10

Irets
Member
Registered: 2019-02-01
Posts: 143

Re: My Arch Linux installation is kinda broken and I can't fix it.

dabigwaffle wrote:
Scimmia wrote:

Is /lib a symlink to usr/lib/?

I don't know

file /lib

or

 readlink /lib

Last edited by Irets (2022-03-09 18:14:14)

Offline

#5 2022-03-09 18:16:21

dabigwaffle
Member
Registered: 2022-03-09
Posts: 7

Re: My Arch Linux installation is kinda broken and I can't fix it.

Irets wrote:
dabigwaffle wrote:
Scimmia wrote:

Is /lib a symlink to usr/lib/?

I don't know

file /lib

or

 readlink /lib

The first one said '

/lib: directory

' and the second one had no output. I guess it means there is no symlink.

Offline

#6 2022-03-09 18:39:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: My Arch Linux installation is kinda broken and I can't fix it.

That's a big problem. What's in there? Did you `sudo make install` something? Use pacman's --overwrite when you shouldn't have?

Offline

#7 2022-03-09 18:40:49

dabigwaffle
Member
Registered: 2022-03-09
Posts: 7

Re: My Arch Linux installation is kinda broken and I can't fix it.

Scimmia wrote:

That's a big problem. What's in there? Did you `sudo make install` something? Use pacman's --overwrite when you shouldn't have?

I have used 'sudo make install' for dwm, but I don't remember ever using overwrite in pacman.

Offline

#8 2022-03-09 18:42:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: My Arch Linux installation is kinda broken and I can't fix it.

So again, what's in there? It's possible that dwm installation overwrote the symlink with a dir and put some of it's files in there.

Offline

#9 2022-03-09 18:45:00

dabigwaffle
Member
Registered: 2022-03-09
Posts: 7

Re: My Arch Linux installation is kinda broken and I can't fix it.

Scimmia wrote:

So again, what's in there? It's possible that dwm installation overwrote the symlink with a dir and put some of it's files in there.

In '/lib'? There's a lot of library binaries. Same for '/usr/lib'.

Offline

#10 2022-03-09 18:55:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: My Arch Linux installation is kinda broken and I can't fix it.

If there's a lot in there, you've done more than install dwm. Your best bet may be to rename that dir and make the symlink to usr/lib, then you can go back and figure out what all is in that dir and broken later.

Offline

#11 2022-03-09 20:26:36

dabigwaffle
Member
Registered: 2022-03-09
Posts: 7

Re: My Arch Linux installation is kinda broken and I can't fix it.

Scimmia wrote:

If there's a lot in there, you've done more than install dwm. Your best bet may be to rename that dir and make the symlink to usr/lib, then you can go back and figure out what all is in that dir and broken later.

I have just remembered that I have recently done something else... I have moved my installation from one hard drive to another. I might have messed something up during that process as well. The system used to boot up nicely after that, but once I updated the kernel, the issue started. I wonder if I should just reinstall after this whole thing...

Last edited by dabigwaffle (2022-03-09 20:27:51)

Offline

#12 2022-03-09 21:24:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: My Arch Linux installation is kinda broken and I can't fix it.

I'm guessing every symlink is now a copy of what it was pointing to. Reinstalling fresh would probably be the simplest solution at this point.

Offline

#13 2022-03-09 21:32:15

dabigwaffle
Member
Registered: 2022-03-09
Posts: 7

Re: My Arch Linux installation is kinda broken and I can't fix it.

Scimmia wrote:

I'm guessing every symlink is now a copy of what it was pointing to. Reinstalling fresh would probably be the simplest solution at this point.

Ok, that's what I'm going to do.

Offline

Board footer

Powered by FluxBB