Multiple Samba Client connections.

Hey there,

first of all: Awesome work! Thx a lot for your time! I appreciate that a lot!

I have a few samba-questions and maybe someone could help me out.

  1. I used dietpi-config to mount a samba-share which is mounted on boot-time in /mnt/samba.
    Is it possible to mount the share in another place on boot-time, e.g. /mnt/samba/data? And if thats possible, which files to I have to edit?

  2. I would like to mount not only one samba-share but a few.
    Which file do I have to edit and which do I have to use?

Thx a lot for any hint.

Greets, Michael

Hi Micheal,

DietPi-Config is only designed to work with one samba mount, so you will need to do another one manually. I would also advise you dont use the dietpi-config samba menu option after doing this, so your multiple setup is not accidentally overwritten.

You will find all the system and samba mounts in:


If you want to make multiple samba mounts, edit fstab:

nano /etc/fstab

Add another line, change sharename/username/password to your details as required:

// /mnt/samba_2 cifs username=root,password=mypassword,_netdev,iocharset=utf8,sec=ntlm,nofail  0  0

Save a exit nano ctrl+x , then say yes.

Generate the folder for your new mount:

mkdir -p /mnt/samba_2

Attempt to mount:

mount -a

You can use the following command to check if the mount worked, look for /mnt/samba_2:

df -h

List files in /mnt/samba_2

ls -lha /mnt/samba_2

Thx a lot. Worked like a charm!