Creating a NAS server in Pine64
Hello everyone, i just want to know how to create a home-made NAS server with Pine64, first, i need the software needed and some kind of tutorial if you can. Thanks!
The Pine performs quite well as a NAS although you are limited by the USB 2.0 interface. Here is what you can expect in real-world use.
For starters you want an 2.5in USB 2.0/3.0 external HDD, a GbE Ethernet switch and a powered USB 2.0 hub. The reason you want a powered USB 2.0 hub is because the drive may/ will likely pull more power than what the Pine's USB 2.0 socket can deliver. 

There are many more detailed guides out there on how to use samba - just use google fu. But here is a quick overview of the process: 

Having connected everything you will need to mount your HDD. I presume you are running headless so ssh into the Pine and: 


It will list your current disks,size, partitions and their mount points etc: 

Quote:debian@pine64:~$ lsblk
sda           8:0    0  55.9G  0 disk /media/ExtDrive2
sdb           8:16   0 149.1G  0 disk 
└─sdb1        8:17   0 149.1G  0 part /media/ExtDrive
mmcblk0     179:0    0  29.8G  0 disk 
├─mmcblk0p1 179:1    0    50M  0 part /boot
└─mmcblk0p2 179:2    0  29.8G  0 part /

Take note of the output. If you haven't formatted your disk to a particular format, and don't know what format it is in you may want to check it out (e.g.):

sudo file -sL /dev/sda
Now create a mount point int /media (substitute whatever you want for ExtDrive)
cd /media
mkdir ExtDrive

Ok now you can mount your drive (substitute whatever you need for format of the disk, path, etc.) 
sudo mount -t ext4 /dev/sdc1 /media/ExtDrive

Now you have your drive mounted and can create a folder you want to share in it... unless you already have a folder in it you wish to share of course or wish to share the entire drive. 
Next make sure that your Linux installation has samba installed (not sure if all come with it ?) 
sudo apt-get install samba samba-common-bin -y

Set up samba to use your user account. e.g. I am assuming here you'll use longsleep's base image:

sudo smbpasswd -a ubuntu
It will prompt you to provide password. 
Now you will need to configure samba to share the designated folder: 
sudo nano /etc/samba/smb.conf

In the following example I am sharing the mount point of the drive (everything on the drive), but if you want a particular folder shared then just add '/' and name of your shared folder (substitute rest of details as necessary).

only guest=no
create mask=0777
directory mask=0777
Lastly, you'll need to restart samba:
sudo service smbd restart

Now your shared folder / drive should be accessible on your network. 
If you need more info please read this tutorial which is more detailed.
You can find me on IRC, Discord and Twitter

why cant we use 3.0 USB port ?
The PINE64 doesn't have a USB 3.0 port - the Rock64 does, however. USB2.0 can still transfer data at up to 480Mbit/sec, so about half the speed of the gigabit ethernet connection. I don't know what the real world numbers are, but I understand they're not bad in terms of practical use. I'm running a DNS caching server (BIND 9) on mine and thinking of adding NAS functionality.
it doesn't get happy
it doesn't get sad
it just runs programs
Ohhhh, Yeah, right. Mistakend Pine with Rock. My bad

Possibly Related Threads…
Thread Author Replies Views Last Post
  Default Password for New Pine64 KDE Plasma CE? robertb1 3 680 02-01-2021, 04:29 PM
Last Post: cybercricket
  Just discovered Pine64 ! - first Q philip_rhoades 4 2,190 04-29-2020, 10:13 AM
Last Post: tophneal
  A newest user in Pine64 Aliko 1 1,347 04-19-2020, 10:33 PM
Last Post: tllim
  PINE64 Installer - Simple Way to Image Your MicroSD pineadmin 101 74,397 01-15-2020, 12:46 PM
Last Post: tophneal
  Emails from pine64 received as spam by gmail Matan 2 1,493 08-21-2019, 08:30 AM
Last Post: Leiaz
  How to handle a Pine64 correctly gbjensen 6 9,518 03-28-2019, 11:43 PM
Last Post: InsideJob
  Creating bootable Debian backup image Drago 3 2,013 12-11-2018, 03:42 PM
Last Post: evilbunny
  The 6 most common reasons why Pine64 won't boot Andrew2 109 113,440 10-11-2018, 11:35 PM
Last Post: Technolab88
  Linking the boards to make a server? Ramlatus 3 3,039 01-27-2018, 01:02 PM
Last Post: 11b2p508
  Pine64 installer way slow flashing Paraplegic Racehorse 2 1,718 01-10-2018, 04:05 PM
Last Post: dkryder

Forum Jump:

Users browsing this thread: 1 Guest(s)