# 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](https://timoxa0.su/share/nabu/manual/gpt_both0.bin)
### Restore GPT
> Replace `````` with the path to the gpt_both0.bin file.
```cmd
fastboot flash partition:0
```
### Erase userdata to avoid bootloop and restore FS size
```cmd
fastboot -w
```