In this segment we are going to "Install DietPi on Raspberry Pi 3 Model B+ & Move User Data from SD Card to External Drive on Raspberry Pi 3 B+"
What is DietPi ?
DietPi is extremely lightweight operating system, start at 400MB in size (3x lighter than 'Raspbian Lite'). With features of low process/memory footprint and DietPi-RAMlog installed by default, DietPi allows you to get the maximum performance from your device.
Raspberry Pi 3 Model B +
Micro SD Card "Minimum 4 GB"
Ethernet Cord for LAN Connection
External Hard Drive or USB Drive
Raspberry Pi Case
First of all we need of Download the DietPi image from the download links. Then we require a SD Card to flash the image
Formating the SD Card
Now, We need SD Card Formatter tool to format the SD card. Once, We plugged in the SD Card to the computer software will automatically detect the SD Card then you need to click on format to format the Card.
Flashing the SD Card
After the SD card formated successfully then we use Etcher and flash the OpenWrt image to SD card.
Setting up Raspberry Pi
Now we need to plug in the SD card, connect the Ethernet Cable, Power Supply to complete the setup and turn on the Raspberry Pi device it will take up-to 2 minute to boot the DietPi operating system.
After that we need to run Wireless Network Watcher to check the IP Address of Raspberry Pi.
Connecting to Raspberry Pi using SSH
Now, we got the IP address for our DietPi we can go ahead and open Putty then type the Ip Address to connect to DietPi.
- Logging to SSH
- Default Username : root
- Default Password : dietpi
Once, we connected to the DietPi then it require us to change the Root Password and Unix Password. I recommend you to put same password on both places.
Installing DietPi Minimal Image
After we logged in to DietPi, then you need to type a command to access the dietpi-software.
Now, we need to navigate to Install and press OK. After that installation will take around 15-20 min to complete setup.
Once the setup complete the system will reboot to finalize the settings and you are ready to use your DietPi Image.
Format & Mount External Storage
To Format & Mount the SD card, we need to select the option User Data Location.
Once, we open User Data Location, it will generate a list of 3 options for us.List, Custom & Drive. From these options we need to select Drive and press OK
This will bring the list of connected drives to our raspberry pi. Fron here we need to select the drive which is listed under sda and press OK to select the drive.
After that we need to navigate to Format to format the drive and once the format is done the drive will mount automatically.
Once, the format finish, it will provide us with the option to enter the path of the drive. You can either choose the default path or you can type a drive name of your choice.
In my case i named my drive as Store then press OK
Move User_Data to External Storage
Now, we need to select List and press OK
After that we need to select our External Drive. In my case it is /mnt/Store.
Now, when we press ok the user data will start tranfer
From : /mnt/dietpi_userdata To : /mnt/store/dietpi_userdata. i.e to our External Hard Drive.
This will finish moving data from SD Card to External Drive. As you can see in the picture User Data Location is now
[Custom | /mnt/store/dietpi_userdata.
Now, You are ready to use DietPi on your Raspberry Pi 3 Model B Plus. In future we are going to install other packages and check their working on DietPi.
Enjoy using it and share your thoughts.