2

I had a perfectly functioning ubuntu (22.04 if I'm correct). But last time I tried to reboot it wouldn't do it anymore. It woul get stack in the first command line initramfs.

I typed exit and recevied the error:

/init: line 872: logsavw: not found
The root filesystem on /dev/nvme0n1p2 requires a manual fsck

After checking online I tried to manually fix the disc with the fsck command ( fsck -yf /dev/nvme0n1p2), but this error happened.

sh: fsck: Text file busy

nvme0n1p2 seems to be a root disk so it can't be access through the fcsk command, as it's been used.

I've checked related topics but so far nothing has really helped me. In a question I already posted they sent me to another post where they used the sudo command. But surpringsly, the sudo command is not found, and when I type whereis sudo I get the message whereis: not found.

I'm very surprised that I can't suddenly access this very basic command, and why did this happened at all.

Any insights would be helpful

1 Answers1

0

MAKE A LIVE USB

Flash a new Ubuntu ISO to USB from a different computer, and boot from the USB on yours. When the live system booted, close the installer window or select Try Ubuntu, and open GParted. Select your drive there (/dev/nvme0n1), and the 2nd partition (/dev/nvme0n1p2). Right click on the 2nd partition, select Check, and press the green check mark at the top (if you get a message if you want to continue, select Confirm).

This should check for filesystem errors on the partition and fix them if needed. Reboot to your installed Ubuntu and check if it boots now.

STILL DOESN'T BOOT

If it still doesn't work, Boot Repair can probably help. I won't give info about it here, so if you don't know what to do, you can search online. I recommend using Ubuntu 22.04 on the live USB, as the boot repair repository currently doesn't support the newest non-LTS version.

To install Boot Repair, type in these commands on the Ubuntu live USB (press Enter to confirm at the first command):

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update -y
sudo apt install -y boot-repair

Now open it from the applications menu, and go trough it.