Quick Server – Raspberry Pi

Currently running Lubuntu 18.04.2 LTS (Bionic Beaver) as my primary desktop OS.

When I decided to set up a Raspberry Pi for a quick test server, I thought I’d do everything from the terminal to refresh myself with some basic commands.

I found an SD card with an image of some Raspbian on it already, however it was erroring on boot, possibly from a mounted removal of the device. Whoops..

First I checked what the system recognized the device as with sudo fdisk -l

The device was /dev/sdf and showed a small partition of /dev/sdf1 and a larger partition of /dev/sdf2

I removed both partitions with parted after verifying they were unmounted
:~$sudo umount /dev/sdf1
:~$sudo umount /dev/sdf2

:~$sudo parted /dev/sdf rm 1
:~$sudo parted /dev/sdf rm 2

Prior to this I downloaded the latest Raspbian img from

From the Downloads directory (where the img resides) I ran the following to copy the img to the SD card

sudo dd bs=1M if=2019-06-20-raspbian-buster-lite.img of=/dev/sdf

As a side note, to detail exactly what version of Linux I am using I used the following command
:~$cat /etc/os-release