WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Simple Network drive, NAS  (Read 3305 times)

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Simple Network drive, NAS
« on: May 09, 2016, 08:34:34 AM »
I am a network drive noob.

I want to use an old  256MB model B as a simple NAS for Pikrellcam based cameras.
It is using an old but super reliable 128MB SDcard  to boot from, got heaps left.
Got a USB caddy with a WD 1TB purple.
Don't need samba or any Windows  connectivity.

How do I share this drive to all my Jessie Lite based Pikrellcam motion activated cameras?
I want to use this 1TB as the archive networked drive  for these Pi based  cameras.
Pikrellcams will be using cron to copy files to this drive once a day, different hours for different cameras.
Pikrellcam expects ext4 drives for simple setups.

1) How to setup the model B as a NAS network drive.
2) The settings on Jessie Lite to cp to this network drive.

I have set gpu_mem=16 to max out mem for Linux, waitusb=5 for usb drive start up time.
Can already see the drive and mount it as /mnt/sda1, formatted as ext4.
MC for some reason sees this drive as a 200MB?

Now what?



Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Simple Network drive, NAS
« Reply #1 on: May 09, 2016, 01:49:40 PM »
For such write-only copying that happens rarely, I would just use scp.
The only barriers that can stop you are the ones you create yourself.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 722
Re: Simple Network drive, NAS
« Reply #2 on: May 09, 2016, 02:30:01 PM »
Why not start a nfs server.
http://wiki.tinycorelinux.net/wiki:fileserver

What i can see. There are some old extension nfs-utils to make a nfs server.
You maybe contact the maintainer of this extension to ask to compile to newer version of tcl.
http://tinycorelinux.net/5.x/armv6/tcz/nfs-utils.tcz.info

« Last Edit: May 09, 2016, 02:34:07 PM by patrikg »

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: Simple Network drive, NAS
« Reply #3 on: May 09, 2016, 09:33:31 PM »
Hi curaga,

I guess I was making it too complicated, wood for the trees, duh!
scp, good idea, so simple, never used it before so it never occurred to me.

Hi patrikg,

I did see nfs-utils in some old posts but it was not in the current tcz list.

I will try scp first.
One line in crontab, and a few lines of shell script.

Thanks guys.