stevexcraig
Posts: 1
Joined: Thu Oct 01, 2020 6:50 pm

NAS on pi

Thu Oct 01, 2020 6:53 pm

I want to create a NAS server with my pi and a HD, but every time I do it, I can read it but not write to it.
This is all a bit over my head and could use some help or direction to a decent tutorial on how to do it so I can use the drive.

User avatar
thagrol
Posts: 4046
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: NAS on pi

Fri Oct 02, 2020 12:19 pm

Arguing with strangers on the internet since 1993.

User avatar
pi-anazazi
Posts: 901
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

Re: NAS on pi

Fri Oct 02, 2020 1:17 pm

Many, many chances to mess up... from the user and read/write permissions of the directory the HDD is mounted to the user rights granted by samba. Nice puzzle every time to make that work... ;-)
Kind regards

anazazi

Caillou2001
Posts: 2
Joined: Sun May 12, 2013 1:01 pm

Re: NAS on pi

Sat Nov 14, 2020 8:25 pm

Try with Openmediavault.
It’s verry simple and complete.

LTolledo
Posts: 4553
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: NAS on pi

Sat Nov 14, 2020 9:09 pm

My usual procedure for making a RPi/Linux based NAS (without going to the dirty details)

1. setup the OS
2. update and upgrade
3. install required file system drivers (i.e. ntfs-3g, etc)
4. install the HDD (includes partitioning and formatting if required)
5. define the drive mount point
6. change ownership and permissions on the drive (see chmod and chown)
7. edit /etc/fstab for permanent mounting of drive every boot up
8. install samba
9. define HDD share at /etc/samba/smb.conf
10. set samba password.
11. reboot and test
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

richonguzman
Posts: 65
Joined: Fri Aug 28, 2020 4:38 pm
Location: Chile

Re: NAS on pi

Thu Nov 19, 2020 2:42 pm

stevexcraig wrote:
Thu Oct 01, 2020 6:53 pm
I want to create a NAS server with my pi and a HD, but every time I do it, I can read it but not write to it.
This is all a bit over my head and could use some help or direction to a decent tutorial on how to do it so I can use the drive.
what filesystem has your HDD?? hope not EX-FAT

User avatar
thagrol
Posts: 4046
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: NAS on pi

Thu Nov 19, 2020 3:19 pm

richonguzman wrote:
Thu Nov 19, 2020 2:42 pm
what filesystem has your HDD?? hope not EX-FAT
Why not?

Yeah exFAT doesn't have any of the features your average linux filesystem has but it's still usable and may be an apropriate choice if you may need to disconect the HDD from the Pi and connect it to a windows machine or other device at some point in the future.

It is supported under linux but I'm not sure whether the driver is present on the default RPiOS. If not it's only an sudo apt update && sudo apt install -y exfat-fuse exfat-utils away.
Arguing with strangers on the internet since 1993.

Return to “Networking and servers”