To put my problem into detail, I was working on a programming homework(just a small simple Deno project) when suddenly running the command ls in the terminal only returned Segmentation fault.
Soon after, I got a black screen with just a cursor. Cursor couldn’t move, and Ctrl + Alt + F2 wasn’t opening the TTY. So I pressed the power button until it rebooted.
On the GRUB Menu, I chose to boot with the initramfs fallback image, but now I am stuck at the emergency mode.
I’m not sure what sort of data or logs I should be providing in this case, nor how to get and provide them. I’m able to open an Ubuntu LiveUSB, would that help to get some logs?
I don’t really understand what these mean, but they make me assume it’s a problem with my hardisk. Is it?
Yes, those warnings are there for a reason. And that reason is: to warn you of something that has a problem. It shouldn’t be ignored. Because, if you do the, you will be sorry later.
Also look at testdisk for data rescue. It’s saved me! I have used it both on Ubuntu as well as Manjaro. But have care to follow the instructions on the website.
Edit:
And Testdisk is in the repositories:
$ pamac search testdisk
testdisk-wip 7.2-1 AUR
Checks and undeletes partitions. Includes PhotoRec signature based recovery tool. WIP version
testdisk-git 7.1.r643.g6d51ce0-1 AUR
Checks and undeletes partitions + PhotoRec, signature based recovery tool
testdisk [Installed] 7.1-2 extra
Checks and undeletes partitions + PhotoRec, signature based recovery tool
So can be installed with:
pamac install testdisk
I can’t remember in Ubuntu since it’s been some time since I’ve done it.
Yes, but don’t expect fsck to recover data. testdisk can, thoug.
You’re feeling extremely gutsy, trusting a hard drive with known problems with your data…I wouldn’t. And, no, they aren’t cheap. But datalos is even more expensive.
Thank you for the warning then, I appreciate it
I guess i’ll start looking into a new hard drive then. ᴵ ˢᵗᶦˡˡ ʰᵒᵖᵉ ᵐʸ ᶜᵘʳʳᵉⁿᵗ ᵒⁿᵉ ᶦˢ ˢᵗᶦˡˡ ᵘˢᵃᵇˡᵉ ᵗʰᵒᵘᵍʰ