Meditation
Posts: 6
Joined: Fri Jan 31, 2014 8:59 pm

Help For Making RPi a NAS

Fri Jan 31, 2014 9:07 pm

Hi !
I'm french and 16 so sorry for my bad english

So, i followed the steps here : http://elinux.org/R-Pi_NAS to make my rpi a nas server (i've got a external hard drive 1 to)

But when I try to change things in the folder "disk1" in the network it says i don't have the power to do this (not administrator or something like that in french)

Image

So i think something in the tutorial misses like I don't know "Sudo AllUsersAdministrators = true" I know this doesn't exists but this is to show you
I would like all the people connected to the nas to can copy/delete/place files in the external hard drive

Thank's and have a nice evening !

TyroneSlothrop
Posts: 10
Joined: Wed Nov 20, 2013 9:18 pm

Re: Help For Making RPi a NAS

Fri Jan 31, 2014 9:20 pm

Do you mind posting your Samba config file for troubleshooting. That is where I would assume the problem is.

Also, did you restart the SAMBA service after making configuration changes?

Meditation
Posts: 6
Joined: Fri Jan 31, 2014 8:59 pm

Re: Help For Making RPi a NAS

Fri Jan 31, 2014 9:29 pm

EDIT :

Ok i think i found the problem (i post from the rpi)
when i right click on tje disk1 and permission and put "read and write" i get this : Error setting permissions: Read-only file system
disk1: Error setting permissions: Read-only file system
$RECYCLE.BIN: Error setting permissions: Read-only file system
S-1-5-21-3439970929-1517373091-3907186-1001: Error setting permissions: Read-only file system


and i put the smb.conf in attachement
Last edited by Meditation on Fri Jan 31, 2014 9:40 pm, edited 1 time in total.

TyroneSlothrop
Posts: 10
Joined: Wed Nov 20, 2013 9:18 pm

Re: Help For Making RPi a NAS

Fri Jan 31, 2014 9:39 pm

Have you set:
security = user
Somewhere in smb.conf?

Does the user you are trying to login as have an account on the Pi and is that account in the users group?

Otherwise, looks good to me. Are there any errors in the Samba log?

Meditation
Posts: 6
Joined: Fri Jan 31, 2014 8:59 pm

Re: Help For Making RPi a NAS

Fri Jan 31, 2014 9:50 pm

yes security = user is somewhere in this file

Image

here is a screen to show you

Edit : I think i know from where it is bad

Code: Select all

[public]
  comment = Public Storage
  path = /home/shares/public
  valid users = @users
  force group = users
  create mask = 0660
  directory mask = 0771
  read only = no
So actually if i understand it well the public storage is only on /home/shares/public
So my directory /home/shares/public/disk1 isn't taken on it ? For it it would be something like path = /home/shares/public/* isn't it ?
I won't modify the code without confirmation :p

Edit 2 : I tried this isn't it

I think i'll make the entire tutorial another time just to be sure and format my hard drive another time
If i get same errors i'll post here

Meditation
Posts: 6
Joined: Fri Jan 31, 2014 8:59 pm

Re: Help For Making RPi a NAS

Fri Jan 31, 2014 10:19 pm

Code: Select all

pi@raspberrypi ~ $ sudo chown -R root:users /home/shares/public
chown: changing ownership of `/home/shares/public/disk1': Read-only file system
pi@raspberrypi ~ $ sudo chmod -R ug=rwx,o=rx /home/shares/public
chmod: changing permissions of `/home/shares/public/disk1': Read-only file system
pi@raspberrypi ~ $
Yeah the problem really comes from the "read only"

How can i change that ?

TyroneSlothrop
Posts: 10
Joined: Wed Nov 20, 2013 9:18 pm

Re: Help For Making RPi a NAS

Fri Jan 31, 2014 10:40 pm

If you enter:
mount
At the command line, what does the line that shows your USB drive look like?
It will probably be /dev/sdb1 or something, will show on the Pi where it is mounted.

Meditation
Posts: 6
Joined: Fri Jan 31, 2014 8:59 pm

Re: Help For Making RPi a NAS

Fri Jan 31, 2014 10:42 pm

Code: Select all

pi@raspberrypi ~ $ mount
/dev/root on / type ext4 (rw,noatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=215824k,nr_inodes=53956,mode=75                                            5)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=44820k,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=89620k)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=43                                            7,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda1 on /home/shares/public/disk1 type ntfs (ro,noatime,uid=1000,gid=1000,f                                            mask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1)
:lol:

TyroneSlothrop
Posts: 10
Joined: Wed Nov 20, 2013 9:18 pm

Re: Help For Making RPi a NAS

Fri Jan 31, 2014 10:54 pm

There you go.
/dev/sda1 on /home/shares/public/disk1 type ntfs (ro,noatime,uid=1000,gid=1000,fmask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1)

The drive is mounted ro, or read only. Do you have NTFS drivers installed. If memory serves me correctly, you should be able to install thusly:
sudo apt-get install ntfs-3g

Once that is done I would do:
sudo umount /home/shares/public/disk1
sudo mount -t ntfs /dev/sda1 /home/shares/public/disk1

Once that is done, run mount again, and look to see if the 'ro' turns into 'rw' on the entry for your drive.

Good luck.

Meditation
Posts: 6
Joined: Fri Jan 31, 2014 8:59 pm

Re: Help For Making RPi a NAS

Fri Jan 31, 2014 11:01 pm

Seems like to work (I will try later because I tried to do something and now it's other problems but that's my problem i'll fix it don't worry)

Thank you really ! The problem came "only just" because of drivers haha what a story


Edit : i fixed my problem and ...


IT WORKS ! REALLY THANK YOU SO MUUUUUUUUCH
Finally someone that really helps !!! :P :P :P

TyroneSlothrop
Posts: 10
Joined: Wed Nov 20, 2013 9:18 pm

Re: Help For Making RPi a NAS

Sat Feb 01, 2014 2:44 am

You are very welcome. Enjoy your new NAS!

Return to “Beginners”