You are not logged in.

#26 2025-03-17 13:36:14

Whoracle
Member
Registered: 2010-11-02
Posts: 215

Re: Hello I just hosed my arch install

OK, your fstab looks correct - the specified UUIDs match the ones assigned to your partitions and LVs.

Now, in the iso, mount your root LV to /mnt, and then /dev/nvme0n1p2 to /mnt/boot. Then do arch-chroot /mnt. After chrooting, you should see whatever bootloader config you have somewhere under /boot. Once we make sure that's correct, we can have a look at your LUKS setup, since you have that wrapping your LVs.

Also, what seth said.

Edit: Didn't see your grub.cfg. Let me have a look.
Edit 2: OK, the grub entries seem OK to me, too.

So, let's just try recreating the initramFS:

From the iso, mount your rootLV to /mnt, your /dev/nvme0n1p2 to /mnt/boot and then arch-chroot /mnt.
Once in the chroot, run the following:

mount   # verify everything is mounted where it should be - see below
mkinitcpio -P

From the chroot, you should have /dev/mapper/volgroup0-lv_root mounted at / and /dev/nvme0n1p2 at /boot

Then exit the chroot, unmount the volumes, and try rebooting into the regular system. If that fails, we can dig deeper into grub, but my knowledge there is spotty at best.

Last edited by Whoracle (2025-03-17 13:46:18)

Offline

#27 2025-03-17 14:15:13

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

arch-chroot /mnt

chroot: failed to run command /bin/bash: No such file or directory

Offline

#28 2025-03-17 14:18:24

Whoracle
Member
Registered: 2010-11-02
Posts: 215

Re: Hello I just hosed my arch install

you have successfully mounted your root LV to /mnt?

mount
ls -la /mnt/*

Offline

#29 2025-03-17 14:24:01

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

Yes it is mounted

Offline

#30 2025-03-17 14:27:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,371

Re: Hello I just hosed my arch install

Then may we please see the stat/ls outputs?
Something's severely off here and I'm starting to suspect that you "freed" space by deleting a whole bunch of packages (which will of course not show up as broken since they're simply not there)

So in addition to the stat & ls outputs, also

pacman --root /mnt -Qikk bash | curl -F 'file=@-' 0x0.st

Offline

#31 2025-03-17 14:30:35

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

Offline

#32 2025-03-17 14:35:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,371

Re: Hello I just hosed my arch install

That is under no circumstances a POSIX root partition -- nor the output or "ls -la"
You ran "tree" in some directory holding some python code.

Offline

#33 2025-03-17 14:36:12

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

stat: cannot statx '/mnt/sbin' : No such file or directory
stat: cannot statx '/mnt/sbin/init' : No such file or directory

Offline

#34 2025-03-17 14:37:10

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

seth wrote:

That is under no circumstances a POSIX root partition -- nor the output or "ls -la"
You ran "tree" in some directory holding some python code.

Or I mistyped the Url. I looks like l and 1.

Offline

#35 2025-03-17 14:37:24

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

Re: Hello I just hosed my arch install

What, exactly, did you mount?

Offline

#36 2025-03-17 14:38:01

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

Offline

#37 2025-03-17 14:41:45

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

Scimmia wrote:

What, exactly, did you mount?

/dev/mapper/lv_root to /mnt
/dev/nvme0n1p2 to /mnt/boot

Last edited by suityou01 (2025-03-17 14:57:12)

Offline

#38 2025-03-17 14:50:00

Whoracle
Member
Registered: 2010-11-02
Posts: 215

Re: Hello I just hosed my arch install

That is wrong, on multiple levels:

/dev/nvme0n1p2 goes to /mnt/boot AFTER the next part

You should mount your root LV (the LVM part) to /mnt

mount /dev/mapper/volgroup0-lv_root /mnt

should be correct.

And how on earth did you get a correct output for seths pacman --root /mnt -Qikk etc. command when you don't have a valid arch root partition mounted on /mnt?

Something is wildly off here. Make sure to type the commands EXACTLY as we provide, barring obvious placeholders like paths.

So, to summarize: Starting from a fresh boot of archiso, unlock your LUKS device, then do the following:

mount /dev/mapper/volgroup0-lv_root /mnt
mount /dev/nvme0n1p2 /mnt/boot
mount
ls -la /mnt/* | curl -F 'file=@-' 0x0.st
pacman --root /mnt -Qikk bash | curl -F 'file=@-' 0x0.st

you will get two links - one for ls -la and one for pacman -Qikk. Post both.

Last edited by Whoracle (2025-03-17 14:55:15)

Offline

#39 2025-03-17 14:54:53

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

I got muddled. It's quite technical and I am reading things off my laptop and typing them into my phone. They are mounted correctly.

/mnt/sbin is missing however

Offline

#40 2025-03-17 15:01:48

Whoracle
Member
Registered: 2010-11-02
Posts: 215

Re: Hello I just hosed my arch install

so, if they are mounted correctly, arch-chroot /mnt is working now? If so:

mkinitcpio -P
exit
umount /mnt/boot
umount /mnt
reboot

and reboot into the installed system and check if you can boot now.

Offline

#41 2025-03-17 15:03:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,371

Re: Hello I just hosed my arch install

If /sbin is indeed missing that'll likely not do.

ls -la /mnt/* | curl -F 'file=@-' 0x0.st

is mandatory.

Offline

#42 2025-03-17 15:06:14

Whoracle
Member
Registered: 2010-11-02
Posts: 215

Re: Hello I just hosed my arch install

Good point. Listen to seth.

Offline

#43 2025-03-17 15:37:59

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

Offline

#44 2025-03-17 15:42:43

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

Re: Hello I just hosed my arch install

pacman --sysroot /mnt -S filesystem

You should at least be able to chroot then, it might fix everything.

Last edited by Scimmia (2025-03-17 15:43:07)

Offline

#45 2025-03-17 17:23:23

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

Scimmia wrote:

pacman --sysroot /mnt -S filesystem

You should at least be able to chroot then, it might fix everything.

I did this. It booted first time. I don't know if we can figure out what can of stupid I have or how these files got deleted if I was hacking around in the pacman cache directory?

I learned a bunch though.

Thanks everyone (even Seth)

Offline

#46 2025-03-17 22:51:20

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

Re: Hello I just hosed my arch install

To be fair, I only got to that recommendation because of the info seth asked for, he did the heavy lifting here.

Offline

#47 2025-03-18 06:44:46

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

Yes he redeemed himself quite well

Offline

#48 2025-03-18 06:47:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,371

Re: Hello I just hosed my arch install

Nobody redeemed himself in this thread.
Unfortunately.

Offline

#49 2025-03-18 07:07:30

suityou01
Member
Registered: 2025-03-16
Posts: 27

Re: Hello I just hosed my arch install

Don't be too harsh on yourself Seth

Offline

#50 2025-03-18 07:10:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,371

Re: Hello I just hosed my arch install

I see why you'd find it funny to pretend to be dense.
Good cover.

And good bye.

Offline

Board footer

Powered by FluxBB