Setup NAS on Raspberry Pi 4 - Part 2
Tags: linux, raspberrypi, nas, openmediavault
Published: 2021-12-31 20:22:58

You are reading the second part of the multi part series to Setup NAS on Raspberry Pi.

[Part 1: Motivation](https://dev.to/koditkarvedant/setup-nas-on-raspberry-pi-4-part-1-1pp6)
[Part 2: Bake the Pi](https://dev.to/koditkarvedant/setup-nas-on-raspberry-pi-part-2-37p)
[Part 3: Install OpenMediaVault](https://dev.to/koditkarvedant/setup-nas-on-raspberry-pi-part-3-4m9f)
Part 4: Setup OpenMediaVault **(coming soon...)**

---

## Part 2: Bake the PI

So, Let's setup on Raspberry PI. I've used Raspberry PI 4 Model B 4 GB. You may use any other variant of the device.

First of all we need to install operating system on your Raspberry PI device. For that attach the SD Card to your Desktop/Laptop using card reader.

Download and install Raspberry Pi Imager to a computer https://www.raspberrypi.com/software/

Put the SD card you'll use with your Raspberry Pi into the reader and run Raspberry Pi Imager.

Open Raspberry Pi Imager.
![Raspberry Pi Imager GUI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m8zkjb14ujxzk1avgo1k.png)
 
Click on `CHOOSE OS` button then select `Raspberry Pi OS (other)` option.

![Raspberry Pi image selection](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/99vr4mz9e9gfvu2so17j.png)

Select `Raspberry Pi OS Lite (32-bit)`. This will be just fine for us as we don't need a GUI.

![Raspberry Pi OS Lite image selection](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5yfutbvgjx9tmnioy7a7.png)

Now click on `CHOOSE STORAGE` and select the SD Card you have attached to the computer.

> Warning: make sure you select the correct device as this step will erase any data on the device.

One more thing before we write we have to enable the ssh. For that press `ctrl + shift + x` this will open below Advance options window.

![Advance options](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6md9h5kum0j13g6qisgw.png)

As you can see above check `Enable SSH` and select `Use password authentication` (you may select public-key authentication if need) then insert the password which you will need to ssh into the device later.

Click on `WRITE` button to install the OS on SD card.

This will take some time. It will download the Image from server if it is not already cached so take a coffee break. 

:coffee::coffee::coffee:

### Connect Raspberry PI using ssh

Insert the Memory card in Raspberry Pi. Connect the power cable and attach the Raspberry Pi to network using ethernet cable.

Now we are going to access and log into Raspberry Pi via SSH, but to do that we need to know the IP address. How can we find the IP address? the easiest way is to check your home router. Your home router will give out and IP address to your Raspberry Pi via DHCP, just look at the last device that signed in and got and IP address for me.

Most probably the connected `device type`/`model` will be named Raspberry Pi.

Now once we have IP address in my case it is `192.168.0.30`.

Now lets `ssh` into the device. Open terminal and run the below command.

```bash
ssh pi@192.168.0.30
```

This will ask you `Are you want to continue connection?` just put `yes`. It will ask you to insert password, insert the one you set earlier else default would be `raspberry`.

Now you should be in.

---

That is it for this part you can continue with the reading the rest of parts.

[Part 1: Motivation](https://dev.to/koditkarvedant/setup-nas-on-raspberry-pi-4-part-1-1pp6)
[Part 2: Bake the Pi](https://dev.to/koditkarvedant/setup-nas-on-raspberry-pi-part-2-37p)
[Part 3: Install OpenMediaVault](https://dev.to/koditkarvedant/setup-nas-on-raspberry-pi-part-3-4m9f)
Part 4: Setup OpenMediaVault **(coming soon...)**