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.
-
- Posts: 1
- Joined: Thu Oct 01, 2020 6:50 pm
- thagrol
- Posts: 4046
- Joined: Fri Jan 13, 2012 4:41 pm
- Location: Darkest Somerset, UK
- Contact: Website
Re: NAS on pi
Arguing with strangers on the internet since 1993.
- pi-anazazi
- Posts: 901
- Joined: Fri Feb 13, 2015 9:22 pm
- Location: EU
Re: NAS on pi
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
anazazi
-
- Posts: 2
- Joined: Sun May 12, 2013 1:01 pm
Re: NAS on pi
Try with Openmediavault.
It’s verry simple and complete.
It’s verry simple and complete.
Re: NAS on pi
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
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!"
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!"
-
- Posts: 65
- Joined: Fri Aug 28, 2020 4:38 pm
- Location: Chile
Re: NAS on pi
what filesystem has your HDD?? hope not EX-FATstevexcraig wrote: ↑Thu Oct 01, 2020 6:53 pmI 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.
- thagrol
- Posts: 4046
- Joined: Fri Jan 13, 2012 4:41 pm
- Location: Darkest Somerset, UK
- Contact: Website
Re: NAS on pi
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.