Fi-NAL-1-dragged3c6aujc680da269ba35279.gif

Raspi-Drive

Raspberry Pi NAS server

View project on GitHub

version 1.0

Raspi Drive makes your Raspberry Pi into a wireless NAS server

Contents

Screenshots

Requirements

A Raspberry Pi that has wifi support and a USB port.

A micro sd card.

And either a USB stick or a USB hard drive.

Setup USB Drive or USB Stick

  1. Plug the hard drive or USB stick into your computer
  2. Open Disk Utility if you are using a mac computer or Windows Explorer if your are using a Windows Computer
  3. For Windows users right click on the drive and click format
  4. For Mac users select the drive then click erase
  5. When you get to the format/erase page format the drive to be ExFat then click Erase/Start
  6. Let it load until it says complete then make sure its formated in ExFat
  7. Eject the drive from your computer

Setup Raspberry Pi

  1. Flash Rasbian Lite on to the micro sd card. Download Latest Version Here.
  2. Unzip the downloaded file.
  3. Flash 2019-09-26-raspbian-buster-lite.img using Etcher.
  4. remount the micro sd card (unplug it and replug it back into your computer)
  5. Open Terminal in mac or command prompt in windows
  6. Run the following command to enable SSH
    touch /Volumes/boot/ssh
    
  7. Next, we need to set up wifi. Download this file named wpa_supplicant.conf.
  8. Now open up the file that you just downloaded and change the SSID to your network name and the psk to your networks password.
  9. Copy the file you just edited and paste it to the boot partition of your micro sd card
  10. Unplug the micro sd card from your computer and insert it in your pi.
  11. SSH to your pi. (I use termius on my mac to use SSH with my pi)
  12. Plug the drive you formated in to your pi

Skip the steps above if you already set up your raspberry pi with ssh and wifi.

Running the Installer Script

Install Raspi Drive by entering this into your ssh command line

wget -q https://git.io/JewLJ -O /tmp/raspi-drive && bash /tmp/raspi-drive

After the installation is complete please reboot your pi with sudo reboot Note: This is the fastest way to get Raspi Drive on your Raspberry Pi.

Manual Installation

If you would like to manually install this then you can follow these instructions.

  1. Update your packages with sudo apt-get update
  2. Upgrade your system with sudo apt-get upgrade -y
  3. Install exfat-fuse and exfat-utils with sudo apt-get install exfat-fuse exfat-utils
  4. Create the hard drive mount directory with sudo mkdir /mnt/drive
  5. Mount your hard drive to the mount directory with sudo mount /dev/sda2 /mnt/drive
  6. Reboot your pi with sudo reboot

Note: This is everything the Installer Script does but just faster.

Connect to Raspi Drive with a Mac

  1. Find out what your Raspberry Pi’s IP Address is with hostname -I (The real IP Address is the first one that it shows)
  2. Download Fuse and SSHFS on your mac.
  3. Run and follow the instructions for both of the installers.
  4. Make a folder named Drive on your desktop.
  5. In Terminal run the command sshfs pi@Your-IP-Address:/mnt/drive /Drive Folder (Replace Your IP Address with your IP Address and /Drive Folder with the path to the folder you created in step 4 :)
  6. Put in your password for the pi (The default is raspberry)
  7. You should see a drive on the desktop named OSXFUSE Volume 0 (sshfs) if you see that drive it means it worked!
  8. All Done!

Connect to Raspi Drive with a Windows Computer

  1. Find out what your Raspberry Pi’s IP Address is with hostname -I (The real IP Address is the first one that it shows)
  2. Install SFTP Drive from NSoftware
  3. Follow the instructions to install it.
  4. Open the app up and then click on the Drives tab and then the New button
  5. On the Edit Drive dialog input a drive name (It can be anything) and SFTP server information (The default username and password is pi and raspberry). Click Test SSH Connection to verify the connection to the SFTP server, then press OK to save the new drive configuration.
  6. Press Start on the main window to connect to the drive.
  7. You should now be able to access your drive from file explorer
  8. All Done!

Raspberry Pi NAS Server Raspberry Pi NAS Server Raspberry Pi NAS Server Raspberry Pi NAS Server Raspberry Pi NAS Server
Wireless Storage Wireless Storage Wireless Storage Wireless Storage Wireless Storage Wireless Storage Wireless Storage Wireless Storage
Raspberry Pi Raspberry Pi Raspberry Pi Raspberry Pi Raspberry Pi
diy diy diy diy diy diy diy diy diy diy diy diy diy diy diy
free free free free free free free free free free free free free
Open Source Open Source Open Source Open Source Open Source Open Source Open Source Open Source Open Source Open Source