Can’t two droplets mount each others filesystems ? it should be Straight forward
I have two ubuntu droplets “number 1” and “number 2” number 1 has a volume attached and mounted in the /mnt/volume_ams3_01/ directory both have private networking enabled and can ping each other.
I created a directory /mnt/volume_ams3_01/data I create a symlink to the directory in /mnt ln -s /mnt/volume_ams3_01/data /mnt/dd
What I want is to make a samba share of /mnt/dd and then mount it on number 2 via cifs
smb.conf:
[sambashare] comment = Samba on Ubuntu path = /mnt/dd read only = no browsable = yes
on “number 2”
mkdir -p /mnt/data mount -t cifs //<private ip of number 1>/dd /mnt/data -o username=root, password =password Retrying with upper case share name mount error(6): No such device or address Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
What is wrong ???
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
You can consider following these steps to troubleshoot the issue:
smb.conf is correct on “number 1” droplet. Also, restart the Samba service after making any changes to the configuration file:- sudo systemctl restart smbd
- sudo systemctl restart nmbd
ufw to manage the firewall settings.- smbclient -L ///sambashare -U username%password
- sudo mkdir -p /mnt/data
- sudo mount -t cifs ///sambashare /mnt/data -o username=root, password=password
If you’re still facing issues, please refer to the following DigitalOcean document on how to set up a Samba file server: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-samba-share-on-ubuntu-18-04
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.