NAS on DietPi?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
fritzg
Posts: 7
Joined: Tue May 30, 2017 12:38 am

NAS on DietPi?

Post by fritzg »

What has worked best for you? Looking for hardware and software recommendations. Moving from a old 2-bay Synology.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: NAS on DietPi?

Post by Fourdee »

fritzg wrote:What has worked best for you? Looking for hardware and software recommendations. Moving from a old 2-bay Synology.
Samba server http://dietpi.com/phpbb/viewtopic.php?f ... art=10#p56

Have one running on my XU4 as NAS (USB3.0)

C2 and NanoPi Neo 2 makes a good fileserver (Gbit eth), but lacks USB3.0.

If your running RPi 1, then proftpd would offer more performance/throughput, however, you'd need a FTP client.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
fritzg
Posts: 7
Joined: Tue May 30, 2017 12:38 am

Re: NAS on DietPi?

Post by fritzg »

Thanks. I am on a Pi3 at present as Roon endpoint. Thanks for your help on the Roon forums.

I asked this in another thread but will here, too. I did a ROCK installation on a NUC and tried to access the internal share (one connects as Guest) via dietpi and couldn't. I could access my NAS so I don't think think it is a network issue. Is there an issue in dietpi' setup connecting as Guest?
diggy_dude
Posts: 10
Joined: Sat Oct 01, 2016 4:41 pm

Re: NAS on DietPi?

Post by diggy_dude »

I just set this up tonight.

* RPi 3
* 2x refurb Western Digital My Passport 1TB USB HDDs
* HooToo HT-UH010 USB hub
* Samba

The choice of HDDs is tricky. I read that a certain Seagate drive would work when connected through a hub, but found the newer model that replaced it didn't work. On the other hand, certain WD drives are said not to work through a hub, but the ones I bought did happen to work. You'll have to do some research before you buy HDDs.

To my surprise, DietPi detects and mounts the HDDs automatically when you boot a fresh image for the first time with the hub and drives connected. Not too crazy about the dir names it chooses for the mount points, but whatever.

Follow these steps:

1. Plug the drives into the hub
2. Plug the power adapter into the hub
3. Connect the hub to the RPi
4. Plug the power adapter into a mains socket
5. Put the SD card with fresh DietPi image into the RPi
6. Power up the RPi and install DietPi as usual
7. Install Samba
8. Find the HDD mount points in /mnt (these will have large integers as filenames)
8. Set up Samba shares on one of the HDDs and restart Samba
9. Create a new crontab, add this line, and save the crontab

0 3 * * * rsync -av --delete /mnt/1234567890 /mnt/0987654321/

This will backup the HDD mounted at /mnt/1234567890 to the other HDD at /mnt/0987654321 every morning at 3 o'clock. Edit to suit your own backup schedule.
diggy_dude
Posts: 10
Joined: Sat Oct 01, 2016 4:41 pm

Re: NAS on DietPi?

Post by diggy_dude »

I forgot to point out that the choice of USB hubs is important if the HDDs don't have their own separate power adapters. Most cheap hubs don't supply power to the connected devices, and the RPi 3 struggles to power even one HDD. The HooToo model above works beautifully. Expect to spend at least $40 for a good Anker or HooToo hub.
equusgrevyi

Re: NAS on DietPi?

Post by equusgrevyi »

Fourdee wrote:
fritzg wrote:What has worked best for you? Looking for hardware and software recommendations. Moving from a old 2-bay Synology.
Samba server http://dietpi.com/phpbb/viewtopic.php?f ... art=10#p56

Have one running on my XU4 as NAS (USB3.0)

C2 and NanoPi Neo 2 makes a good fileserver (Gbit eth), but lacks USB3.0.

If your running RPi 1, then proftpd would offer more performance/throughput, however, you'd need a FTP client.
Is the XU4 worth the money Fourdee? I'm having serious performance issues with syncing on NextCloud and I believe it's down to the limitations of the Pi3 board (namely the shared eth/usb BUS - At least that's what I'm told). Processing changes for large folders on sync and actually uploading anything above 40+MB in size is painfully slow and pauses a lot. I'd be willing to pay for it just to not have the estimated 16 day timeframe for downloading my music again...
kaosnews
Posts: 13
Joined: Sun Jun 11, 2017 11:49 am

Re: NAS on DietPi?

Post by kaosnews »

I tried to use OpenMediaVault and it was a bit difficult. I only need to share a 3TB USB disc with some of my devices, so OpenMediaVault was really overkill. Read this topic and installed DietPi with only Samba and voila - excellent NAS system ;)
It's now copying all my files with rsync from my Synology NAS and that also works great. True Rpi3 doesn't have USB3 - but for storing movies and music it's not really necessary.
User avatar
WarHawk
Posts: 631
Joined: Thu Jul 20, 2017 8:55 am

Re: NAS on DietPi?

Post by WarHawk »

The 100Mb/s ethernet will always be the choke point in any NAS...if it has gigabit, then awesome...otherwise you will only get 11.5~MB/s thruput, but it will do it at crazy low power consumption rather than setting up an older desktop as a file server
Post Reply