Black screen after adding swap

Hello, first of all, I'm new to the linux world, so I'm a little desperate because I have no idea what to do.

Today I tried to make some customizations to my system, I installed some extensions to customize the taskbar and I installed ArcMenu to modify my menu. But I believe that what may have caused this problem was having created a swap using this tutorial:

httpswww.digitalocean.comcommunitytutorialshow-to-add-swap-space-on-ubuntu-22-04

I did exactly as the tutorial said, I thought everything was ok. But a few hours later, I left the computer and when I came back, I could no longer enter my password, the lockscreen was frozen. I restarted the computer and an error appeared when entering Zorin:

I tried to remove the swap, apparently I succeeded, but the error persists. Now however, when entering the system, the screen remains black for a while and soon after, the same errors appear.

How can I solve this?

I believe I have access to the Linux files because I dual boot with Windows, so in the worst case scenario, I would be able to backup everything and reinstall Zorin without losing anything?

Yes, if you back up your files, you should be able to.
You can also check here for more information on recovering with a fresh reinstall:

I am a little concerned by the error. What the error suggests is that the drive itself is not responding to commands.
This usually can be caused by a loose cable. But drive failure can cause it. Off hand, I cannot think of anything that a swapfile might do that could cause the drive to stop responding to commands. I suppose it is possible; but if this was me, I would run a S.M.A.R.T. (test) on the drive.

You can check your terminal history file ~/.bash_history to double check what you entered in against the Digital Ocean guide to see if you had any typographical mistakes.

How can I run the SMART test?

I tried checking the terminal history through recovery mode, but it returns a permission denied message.

Look here: Check the copmputer's hard drive for errors

Recover mode is the Root Shell Prompt, so if you use the tilde, it will head for the Root Home, not your user account.
Try the full path, instead. Replace $USER with your actual username:

cat /home/$USER/.bash_history

Ok, apparently I managed to recover. But I don't understand anything about what happened.

I entered safe mode, activated the internet and used the command:
sudo apt install --reinstall fonts-zorin-os-core zorin-desktop-session zorin-os-desktop

That I took from this thread: Unable to boot after removing libreoffice-gtk3

I have no idea why this worked. Apparently when I did all those customizations, something went wrong.

I'm just a little worried that I've broken something in the system from the tests I've done trying to fix the problem, but apparently everything is fine...

1 Like

Well, if something comes up broken later...

Off we will go on another whirlwind adventure. :grin:

1 Like

Only for the Case, You want add Swap again, here is a Tutorial:

1 Like