Open embeddedart opened 2 years ago
sudo apt update
passwd
sudo apt install exfat-utils exfat-fuse ntfs-3g
sudo apt-get install samba samba-common-bin
select "Yes" in installation when dialog box occur
lsblk
sudo umount -R /media/pi/backup
sudo mkdir /home/pi/nas
sudo mount /dev/sda1 /home/pi/nas
sudo nano /etc/samba/smb.conf
[RaspberryPi - Server1] comment = "Pi3_B" read only = no writeable = yes browsable = yes path = /external # set path according to your path create mask = 0777 directory mask = 0777 public = no valid users = brijesh
sudo adduser brijesh
sudo useradd -m -G users brijesh
sudo passwd brijesh
sudo smbpasswd -a brijesh
sudo service smbd restart
sudo service nmbd restart
sudo nano /etc/fstab
/dev/sda1 /home/pi/nas auto defaults,nofail 0 2
sudo mkdir /home/pi/nas_pub
Raspberry Pi Update
To change default password, optional command
install hard disk format supported packages
Samba Server Installation:
select "Yes" in installation when dialog box occur
to list all connected drive
unmount drive
create directory, to mount drive to that path
To mount external drive to specified path.
open samba server configuration file
Add these lines at the bottom :
[RaspberryPi - Server1] comment = "Pi3_B" read only = no writeable = yes browsable = yes path = /external # set path according to your path create mask = 0777 directory mask = 0777 public = no valid users = brijesh
Method 1 : create user as per in samba configuration file to Access NAS Server
Method 2 : another method to create user
create password for above created user
Add user to samba
Restart below both samba service
To Auto mount Drives upon Rebooting
add below line to above open file