# Installing Mainsail

This section explains the process of installing the MainsailOS onto your Raspberry Pi used to run Klipper.

* Download the latest [Raspberry Pi OS - Imager](https://www.raspberrypi.com/software/) and install;
* Insert a microSD card into your computer that you will be using in your Raspberry Pi;

{% hint style="warning" %}
Make sure there is no data on the microSD card, or make sure that you backup any data you would like to keep.  The microSD card will be wiped during the installation of the MainsailOS.
{% endhint %}

* Open the <mark style="color:red;">`Raspberry Pi Imager`</mark> program;

![Main Menu](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2FVmPRhGbHLqFOjhdY5dLe%2FUntitled%20picture.png?alt=media\&token=4a4e61fe-ff70-45bb-9608-e51a6ede4eb1)

* Select <mark style="color:red;">`Choose OS`</mark>;

![Choose OS](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2FsXPyHqe6Od2VFAZ2Kt6v%2FUntitled%20picture2.png?alt=media\&token=dcd8f32d-c7ad-4123-ad0d-edf57deb4164)

* Select <mark style="color:red;">`Other specific-purpose OS`</mark>;

![Other specific-purpose OS](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2FjVjg1xvGTXA1LPik6GoK%2FUntitled%20picture3.png?alt=media\&token=7fe0f005-8ec9-4d01-8709-f175c93c8d35)

* Select <mark style="color:red;">`3D printing`</mark>;

![3D printing](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2Fl9TmX79pwb1m6GusErAR%2FUntitled%20picture4.png?alt=media\&token=a084b52b-cf82-4082-86a0-86a5cf470a51)

* Select <mark style="color:red;">`Mainsail OS`</mark>;

![Mainsail OS](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2F9Ygu9pxR3NNQNpE4T1BE%2FUntitled%20picture5.png?alt=media\&token=6b048c2b-15c9-4217-9190-8247eededb39)

* Select <mark style="color:red;">`Mainsail OS v.0.6.1`</mark>;

![Mainsail OS v0.6.1](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2F6Bv8GIcxwRLWGyKcnhcX%2FUntitled%20picture6.png?alt=media\&token=a87cf9be-aef4-4e14-9cac-68209cd000d5)

{% hint style="info" %}
Please note that the Mainsail OS version may not be the same as it is updated frequently. Choose the version that is available to you in the Raspberry Pi Imager (you will update the versions of Klipper, Moonraker and Mainsail in later steps).
{% endhint %}

* Select <mark style="color:red;">`Choose Storage`</mark>;

![Choose Storage](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2Fn9lZU5M1b9GatUmFVi5Z%2FUntitled%20picture7.png?alt=media\&token=7dbaf708-8678-48f9-a628-ba8cbeddbcc4)

* Select your <mark style="color:red;">`USB Mass Storage Device USB Device`</mark>, make sure it is the SD card you inserted above;

![USB Mass Storage Device USB Device](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2FE3y28cu7IZoxT7EPYBC3%2FUntitled%20picture8.png?alt=media\&token=a99a7d1a-19db-4ce2-8ab2-d05255d342f1)

* Select <mark style="color:red;">`Write`</mark>;

![Write](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2FA21hBpygOkwdN3ncNmkp%2FUntitled%20picture9.png?alt=media\&token=652ab67b-13dc-4afd-b095-1b11d9d1f5d3)

* A message will appear 'All existing data on 'USB Mass Storage Device USB Device' will be erased.  Are you sure you want to continue?';
  * Select <mark style="color:red;">`Yes`</mark>;

![All existing data...](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2FsVNJ7PZOY0Ps2nBKeUos%2FUntitled%20picture10.png?alt=media\&token=f092202f-5e3e-4bc8-a7db-2c3aced3b779)

* Wait for the write and verify to complete (100%);

![Writing...](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2FmGGeZZkRvl4MYv9meSvE%2FUntitled%20picture11.png?alt=media\&token=e38f9370-9626-4123-907c-99f3ba6de565)

![Verifying...](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2FMOv1hGjVfnwAWzVpOLcV%2FUntitled%20picture12.png?alt=media\&token=b213f650-5942-44b7-adea-ae51dab8198a)

* If installation completes successfully you should get this message, 'Mainsail OS v0.6.1 has been written to USB Mass Storage Device USB Device.  You can now remove the SD card from the reader';
  * Select <mark style="color:red;">`Continue`</mark>;

![Write Successful](https://3358793419-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEUZ4ecqSLgI2D4esAcVS%2Fuploads%2FZxSvKE60TvuZ2THgyHGF%2FUntitled%20picture13.png?alt=media\&token=87e654b2-5bcc-4e83-9926-86b9eb53938b)

* Close the Raspberry Pi Imager program;
* Remove the microSD card from your computer;
  * The Raspberry Pi Imager should have 'ejected' your microSD card automatically from the Windows OS.
