You are not logged in.

#1 2024-07-03 20:08:50

MiguelDonado
Member
Registered: 2024-05-14
Posts: 9

[SOLVED]Can't boot my Arch after up. Error can't run '/etc/init.d/rcS'

The 23/06/2024 I upgrade all my programs using

sudo pacman -Syu

.
Next I rebooted my system, but then my Arch didn't boot correctly and it showed the next: https://imgur.com/a/VWT815g
Then I followed the next steps to troubleshoot my problem:

  1. Boot from a live USB.

  2. Run the following commands:

    mount /dev/nvme0n1p8 /mnt
    mount /dev/nvme0n1p9 /mnt/home
    arch-chroot /mnt
    sudo pacman -Syu
    exit
    umount -R /mnt

Then I took out the USB, and reboot but the problem still persisted.

I've also tried multiple times to boot again from the live USB, and try some commands, but the problem still persists.
For instance, I also tried the next commands:

sudo pacman -S linux
sudo mkinitcpio -P
sudo pacman -Sc

I also inspect my pacman.log, and I see that the day 23/06/2024 when I updated all my programs, some error occur with the mkinitcpio when building the initramfs img because wasn't space left on the tmp folder.
I check that I have enough space with

df -h

I also run without success

sudo rm -rf /tmp/*

I provide my pacman log on the next github gist: https://gist.github.com/MiguelDonado/bc … 2c06d7b5b6.
Yesterday, 02/07/2024 I tried again to boot from the live USB, and run again

pacman -Syu

and the kernel was updated and the initramfs was apparently succesfully build, but the problem still persists.
I provide my journal log since the day that it doesnt boot on the next github gist: https://gist.github.com/MiguelDonado/90 … 2c839637b7

I found another thread that seems to have the same issue and its marked as solved, but I dont believe to see the solution to my case.https://bbs.archlinux.org/viewtopic.php?id=247012.

Last edited by MiguelDonado (2024-07-04 21:19:35)

Offline

#2 2024-07-04 09:51:18

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,085

Re: [SOLVED]Can't boot my Arch after up. Error can't run '/etc/init.d/rcS'

Jun 23 07:00:16 lenovo systemd[1]: Mounted /boot.

Looks like you have a separate boot partition that wasn't mounted in the chroot when you tried to repair things.

Please post the output of lsblk -f from the live usb before chrooting .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-07-04 14:43:23

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

Re: [SOLVED]Can't boot my Arch after up. Error can't run '/etc/init.d/rcS'

Error can't run '/etc/init.d/rcS'

Is this artix? Arch hasn't used rc.d in over a decade.

Online

#4 2024-07-04 19:30:39

MiguelDonado
Member
Registered: 2024-05-14
Posts: 9

Re: [SOLVED]Can't boot my Arch after up. Error can't run '/etc/init.d/rcS'

This is the output of the lsblk-f: https://imgur.com/a/5LChVqS
My Arch Linux is splitted on 3 partitions:

  1. /dev/nvme0n1p8 for the root

  2. /dev/nvme0n1p9 for the home

  3. /dev/nvme0n1p10 for the swap

Regarding the answer of Seth: Yes this is Arch.

Offline

#5 2024-07-04 19:46:50

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

Re: [SOLVED]Can't boot my Arch after up. Error can't run '/etc/init.d/rcS'

Nothing's mounted there - did you mount /dev/nvme0n1p1 into /mnt/boot before attempting to fix the system?

Online

#6 2024-07-04 20:22:24

MiguelDonado
Member
Registered: 2024-05-14
Posts: 9

Re: [SOLVED]Can't boot my Arch after up. Error can't run '/etc/init.d/rcS'

Sorry, I didn't understand correctly when I've to run the lsblk -f.
Now i run it after mounting the other parts.

loadkeys es
mount /dev/nvme0n1p8 /mnt
mount /dev/nvme0n1p9 /mnt/home

Here is the output: https://imgur.com/a/ldJok7D

When I installed my Arch Linux I already had the /dev/nvme0n1p1 partition, so I suppose this partition was from Windows.

Offline

#7 2024-07-04 20:36:28

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

Re: [SOLVED]Can't boot my Arch after up. Error can't run '/etc/init.d/rcS'

That's not relevant

Jun 23 07:00:15 lenovo kernel: Command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=759c4cb5-2a19-4588-ab75-1c64f00758c1 rw loglevel=3 quiet

You're booting from a dedicated partition, the journal shows a /boot partition is mounted (check your fstab) that's most likely nvme0n1p1 and if you forgot to mount that when fixing the system offline, the kernel/initramfs went into the wrong location.

Online

#8 2024-07-04 21:16:24

MiguelDonado
Member
Registered: 2024-05-14
Posts: 9

Re: [SOLVED]Can't boot my Arch after up. Error can't run '/etc/init.d/rcS'

Thank you so much.

After I check the fstab I see that I had to mount also the nvme0n1p1 as you said on /mnt/boot.

And then I run again

sudo pacman -Syu
sudo pacman -S linux

and it works.

Appreciate your help man.

Offline

Board footer

Powered by FluxBB