I will chronologically list the issues.
- Had an error in Ubuntu that showed a black screen and the following code:
3.256804) tpm tpmo: A TPM error (378) occurredget tpm pcr allocation
[ 3.331069] Problem loading UEFI:db X.509 certificate (-65)
[ 3.331113] Problem loading UEFI:db X.509 certificate (-65)
[ 3.331297] Couldn't get size: 0x800000000000000e
/dev/sda2 contains a file system with errors, check forced.
Inodes that were part of a corrupted orphan linked list found.
/dev/sda2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck exited with status code 4
The root filesystem on /dev/sda2 requires a manual fsck
BusyBox v1.27.2 (Ubuntu 1:1.27.2-2ubuntus. 1) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramps)```
2. This was solved by typing in ```fsck``` and giving yes to all questions about errors.
3. I was able to access my ubuntu os 18.04 two to three times. Again it prompted me to type ```fsck``` kinda long codes came up.
4. I was feeling irritated. I decided to install windows 1110 although I knew nothing about booting and installing os. I downloaded windows 10 iso from telegram and created a bootable pen drive with rufus (don't even know if what i did was correct).
5. My system booted the installation correctly. I was prompted to do something with the disks (it was related to disk partition if i remember correctly) in the windows 10 installation process. There were two disks shown (one had a capacity in mbs and other in gbs).
6. I was dumb. My whole logic was to remove ubuntu completely(data in the system was irrelevant) and install windows. I gave delete disk/ storage of the disk in gbs thinking that it had ubuntu.
7. But in one of the next steps, i got "error code 0x80070570" while installing windows 10. I was promted to cancel the installation.
8. When the boot happened and the "acer" written on black screen comes up, I am shown
```error: unknown filesystem.
ntering rescue mode...
grub rescue>```
9. I tried the following stuff after googling
```ls
(hd0) (hd0,gpt3) (hd0,gpt2) (hd0gpt1) (cd0)"
10. After trying
```ls (hd0,gpt1)
ls (hd0,gpt2)
ls (hd0,gpt3)```
It shows "Filesystem is unknown"
11. Then I saw somewhere and did this-
```set
cmdpath=(hd0,gpt1)/EFI/Boot
prefix=(hd0,gpt2)/boot/grub
root=hd0,gpt2```
12. Then I did
```set boot=(hd0,gpt2)
set prefix=(hd0,gpt2)
insmod normal```
it returns error: unknown filesystem.
PS: I am not even beginner level in this stuff. Any help will be really appreciated.
acer es1533p21L