Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I dont know much about ubuntu ,I want to mount a ubuntu share on one machine to other ubuntu.

 mount -t smbfs //windowsmachine/sharefolder /mnt/share -o username=user,password=pass

(smbfs or cifs) This works for only to mount a windows share on ubuntu. But how to mount a ubuntu share on ubuntu.Please help me to solve my problem.

Thank you in advance

share|improve this question
up vote 0 down vote accepted

Well, the command you typed should work (except that you put two U in uusername) if you configured your Ubuntu share through Samba. It would not work if you used some other type of file sharing method, like NFS, but I believe the default method privileged by Ubuntu on the desktop is Samba.

Maybe your Ubuntu machine is not announcing its hostname on your network, and that is why you would not be able to access your shares list when typing //ubuntu_machine. You may want to try using your Ubuntu machine's IP address. Instead of using a machine name, you would type for example:

sudo mount.cifs // /mnt/share -o username=USER,password=PASSWORD

where would be your IP address -- you have to substitute it by your actual IP address.

Try this, and give us some feedback!

share|improve this answer
@Alexander thank you so much.It works for me I should give IP in the place of machine name,thanks again – Sharadhi Ballal Apr 19 '13 at 8:02
Glad I could help! Now, I don't know about your network setup, but if it's not already the case, you can always configure a static IP address for your Ubuntu machine (either by configuring it statically in Ubuntu or by configuring a DHCP reservation in your DHCP server), so the machine will always have the same IP address. And if you don't have a lot of machines in your network, you can add an entry in /etc/hosts to resolve your machine name to that IP address. That is not mandatory, though, as using the IP address will always work. – Alexandre P. Apr 19 '13 at 17:08
@Alexander K,Thank you – Sharadhi Ballal Apr 22 '13 at 6:41

I would suggest to use NFS to share between Ubuntu (Linux) machines.

Take a look at

Maybe be you have to install the package rpcbind additionally.

share|improve this answer
thank you.But I also want to mount a windows share on linux. Is there any common command to do both? – Sharadhi Ballal Apr 19 '13 at 4:39

There are issues with NFS mounts in Ubuntu 15.04. At least on this hardware.

Samba is ONE way to go.

But will a Samba equipped Machine share directories and files with another LINUX machine??

No WinXX or AppleOS machines to be seen here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.