Score:0

Tried to install Windows 10 and deleted a partition that had my ubuntu (unsure)

cn flag

I will chronologically list the issues.

  1. 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

guiverc avatar
cn flag
Does this answer your question? [How to remove Ubuntu and put Windows back on?](https://askubuntu.com/questions/133533/how-to-remove-ubuntu-and-put-windows-back-on)
guiverc avatar
cn flag
Ubuntu was in control of booting your system, until you removed it. You need to fix it from your windows media; as Ubuntu is gone (you likely removed the partition where grub was stored; ie. /boot/grub/ so it's code is gone, only the dangling pointer removes & limited rescue). The tools you use to fix that are whatever OS you want to boot; ie. windows 11 which isn't on-topic for this site.
John Sabu Mathew hs17h009 avatar
cn flag
@guiverc but I said in point 7, windows also wouldn't install. Error0x80070570.. Now I have no idea what to do
guiverc avatar
cn flag
Well then you have no OS installed, and just install the OS that you want. Your description implies Ubuntu is gone - thus the error message; a windows failed to replace the `grub` pointer due to error; thus it no longer points anywhere valid. When you install an OS correctly; the *dangling* pointer will be replaced by that OSes pointer.
Will avatar
id flag
To be honest there’s a lot of unnecessary detail in your question. Bottom line is - you had Ubuntu; you deleted it and installed windows but that installation failed and now you have no os. That’s a relatively simple question - you’re starting from scratch installing an os. Check your installation media is ok, repartition the drive and do a clean install.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.