Mapped remote Samba server folders Linux machine boot client.
Steps
[1] Update system
Command: apt-get update
Command: apt-get upgrade
[2] Install Samba Client
Command: apt-get install smbclient
[3] Check remote shares
Command: smbclient
-U SambaUser -L 10.10.10.10
Description: Test connection
[4] Check manual connection
Command: smbclient
//10.10.10.10/SambaDiskShare -U SambaUser
Description: Map net share
[5] Configure start system to map samba remote shares
Command: sudo mkdir /media/usbremoto
Description: Create mount point
Command: sudo cp /etc/fstab /etc/fstab.old
Description: Backup fstab file
Command: sudo nano /etc/fstab
Description: Modify fstab file
//10.10.10.10/SambaDiskShare /media/usbremoto cifs username=SambaUser,password=XXXXXXXXX 0 0
Expecial for Raspberry Pi
//10.10.10.10/SambaDiskShare /media/usbremoto cifs username=SambaUser,password=XXXXXXXXX,,x-systemd.automount 0 0
[6] Manual mount
Command: sudo mount -a
[7] Manual and visual verification
Command: ls /media/usbremoto
Future improvements
- Hidden user & password
- Modify share folders (read only)
- Configure FW rules
Check at Linux
by GoN | Published: May 29, 2020 | Last Updated: