Guide-Linux-Nabu/guide/English/restore-stock-en.md
2024-01-15 23:19:45 +05:00

29 lines
801 B
Markdown

<img align="right" src="../../assets/nabu.png" width="425" alt="Linux Running On A Xiaomi Pad 5">
# Running Linux on the Xiaomi Pad 5
## Uninstallation
### Why is this needed?
If you want to uninstall linux this is used instead of deleting partitions manually to avoid human error + writing a whole dedicated guide to just uninstalling.
If you want to relock your bootloader you'll need your partition table to be stock.
### Prerequisites
- [ADB & Fastboot](https://developer.android.com/studio/releases/platform-tools)
- [gpt_both0.bin]()
### Restore GPT
> Replace ```<gpt_both0.bin>``` with the path to the gpt_both0.bin file.
```cmd
fastboot flash partition:0 <gpt_both0.bin>
```
### Erase userdata to avoid bootloop and restore FS size
```cmd
fastboot -w
```