Mounting Windows Share from Ubuntu Announcing the arrival of Valued Associate #679: Cesar...

Putting Ant-Man on house arrest

How to leave only the following strings?

2 sample t test for sample sizes - 30,000 and 150,000

Will I be more secure with my own router behind my ISP's router?

Is my guitar’s action too high?

Weaponising the Grasp-at-a-Distance spell

Why does BitLocker not use RSA?

Suing a Police Officer Instead of the Police Department

Determine the generator of an ideal of ring of integers

What came first? Venom as the movie or as the song?

How to mute a string and play another at the same time

A journey... into the MIND

Why does my GNOME settings mention "Moto C Plus"?

Married in secret, can marital status in passport be changed at a later date?

Can the van der Waals coefficients be negative in the van der Waals equation for real gases?

How to ask rejected full-time candidates to apply to teach individual courses?

Should man-made satellites feature an intelligent inverted "cow catcher"?

How to get a single big right brace?

tabularx column has extra padding at right?

Does using the Inspiration rules for character defects encourage My Guy Syndrome?

Why do people think Winterfell crypts is the safest place for women, children & old people?

Kepler's 3rd law: ratios don't fit data

"Destructive force" carried by a B-52?

Short story about an alien named Ushtu(?) coming from a future Earth, when ours was destroyed by a nuclear explosion



Mounting Windows Share from Ubuntu



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Permission denied on files in a directory on a CIFS-mounted Windows share in LinuxWrite to windows share mounted in Ubuntupermanent NAS-mount in Ubuntu - wrong fs type, bad option, bad superblockNFS server Windows 2008 - mounting via linux - input/output error helpIssue with mount.cifs in Ubuntu [while accessing Windows samba share using a localServerUser]PHP-CLI cannot execute scripts on Samba Share (using cifs) inside a guest VM (Centos 6)Create a share with System Rescue CDdoes rsync's delta algorithm work on a samba share?CHMOD permission denied on SMB shareOutput of 'ls' changes every time it runs in CIFS mounted windows share - RHEL 4





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I've a windows shared folder which I can access by typing sharefiles in "run" or address tab of windows file explorer.



I need to use that in Ubuntu. So I added



\sharefiles /mnt/share/ cifs  guest,uid=0,iocharset=utf8  0  0


in /etc/fstab. And then issued mount -a. I got directory not resolvable error mount error: could not resolve address for share: Unknown error.



I tried adding



//share/files/ /mnt/share/ cifs  guest,uid=0,iocharset=utf8  0  0


in /etc/fstab and issuing mount -a command and got same error.



I used id -u and got 0, used that in uid=0.



I could ping the relevant IP.



Edit:
I used IP and got this output while trying to mount



Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)









share|improve this question
















bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • You write you can ping the IP but seem to use name instead of an IP in your /etc/fstab. Have you checked that the name you use in the /etc/fstab resolves correctly to an IP address? PS: No need to apologize for being new here, we all have been new here once.

    – Sami Laine
    Oct 4 '14 at 6:03













  • I recommend getting shares to mount using the "mount" or "mount.cifs" command before mucking around with fstab. eg: "mount.cifs //share/files/ /mnt/share/ --verbose -o guest,uid=0,iocharset=utf8"

    – Andy
    Oct 4 '14 at 7:06











  • I updated the question a bit, can you guys please check?

    – IFightCode
    Oct 4 '14 at 7:50


















0















I've a windows shared folder which I can access by typing sharefiles in "run" or address tab of windows file explorer.



I need to use that in Ubuntu. So I added



\sharefiles /mnt/share/ cifs  guest,uid=0,iocharset=utf8  0  0


in /etc/fstab. And then issued mount -a. I got directory not resolvable error mount error: could not resolve address for share: Unknown error.



I tried adding



//share/files/ /mnt/share/ cifs  guest,uid=0,iocharset=utf8  0  0


in /etc/fstab and issuing mount -a command and got same error.



I used id -u and got 0, used that in uid=0.



I could ping the relevant IP.



Edit:
I used IP and got this output while trying to mount



Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)









share|improve this question
















bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • You write you can ping the IP but seem to use name instead of an IP in your /etc/fstab. Have you checked that the name you use in the /etc/fstab resolves correctly to an IP address? PS: No need to apologize for being new here, we all have been new here once.

    – Sami Laine
    Oct 4 '14 at 6:03













  • I recommend getting shares to mount using the "mount" or "mount.cifs" command before mucking around with fstab. eg: "mount.cifs //share/files/ /mnt/share/ --verbose -o guest,uid=0,iocharset=utf8"

    – Andy
    Oct 4 '14 at 7:06











  • I updated the question a bit, can you guys please check?

    – IFightCode
    Oct 4 '14 at 7:50














0












0








0


1






I've a windows shared folder which I can access by typing sharefiles in "run" or address tab of windows file explorer.



I need to use that in Ubuntu. So I added



\sharefiles /mnt/share/ cifs  guest,uid=0,iocharset=utf8  0  0


in /etc/fstab. And then issued mount -a. I got directory not resolvable error mount error: could not resolve address for share: Unknown error.



I tried adding



//share/files/ /mnt/share/ cifs  guest,uid=0,iocharset=utf8  0  0


in /etc/fstab and issuing mount -a command and got same error.



I used id -u and got 0, used that in uid=0.



I could ping the relevant IP.



Edit:
I used IP and got this output while trying to mount



Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)









share|improve this question
















I've a windows shared folder which I can access by typing sharefiles in "run" or address tab of windows file explorer.



I need to use that in Ubuntu. So I added



\sharefiles /mnt/share/ cifs  guest,uid=0,iocharset=utf8  0  0


in /etc/fstab. And then issued mount -a. I got directory not resolvable error mount error: could not resolve address for share: Unknown error.



I tried adding



//share/files/ /mnt/share/ cifs  guest,uid=0,iocharset=utf8  0  0


in /etc/fstab and issuing mount -a command and got same error.



I used id -u and got 0, used that in uid=0.



I could ping the relevant IP.



Edit:
I used IP and got this output while trying to mount



Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)






linux server-message-block






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 4 '14 at 8:01









masegaloeh

16.3k74085




16.3k74085










asked Oct 4 '14 at 5:36









IFightCodeIFightCode

1016




1016





bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 10 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • You write you can ping the IP but seem to use name instead of an IP in your /etc/fstab. Have you checked that the name you use in the /etc/fstab resolves correctly to an IP address? PS: No need to apologize for being new here, we all have been new here once.

    – Sami Laine
    Oct 4 '14 at 6:03













  • I recommend getting shares to mount using the "mount" or "mount.cifs" command before mucking around with fstab. eg: "mount.cifs //share/files/ /mnt/share/ --verbose -o guest,uid=0,iocharset=utf8"

    – Andy
    Oct 4 '14 at 7:06











  • I updated the question a bit, can you guys please check?

    – IFightCode
    Oct 4 '14 at 7:50



















  • You write you can ping the IP but seem to use name instead of an IP in your /etc/fstab. Have you checked that the name you use in the /etc/fstab resolves correctly to an IP address? PS: No need to apologize for being new here, we all have been new here once.

    – Sami Laine
    Oct 4 '14 at 6:03













  • I recommend getting shares to mount using the "mount" or "mount.cifs" command before mucking around with fstab. eg: "mount.cifs //share/files/ /mnt/share/ --verbose -o guest,uid=0,iocharset=utf8"

    – Andy
    Oct 4 '14 at 7:06











  • I updated the question a bit, can you guys please check?

    – IFightCode
    Oct 4 '14 at 7:50

















You write you can ping the IP but seem to use name instead of an IP in your /etc/fstab. Have you checked that the name you use in the /etc/fstab resolves correctly to an IP address? PS: No need to apologize for being new here, we all have been new here once.

– Sami Laine
Oct 4 '14 at 6:03







You write you can ping the IP but seem to use name instead of an IP in your /etc/fstab. Have you checked that the name you use in the /etc/fstab resolves correctly to an IP address? PS: No need to apologize for being new here, we all have been new here once.

– Sami Laine
Oct 4 '14 at 6:03















I recommend getting shares to mount using the "mount" or "mount.cifs" command before mucking around with fstab. eg: "mount.cifs //share/files/ /mnt/share/ --verbose -o guest,uid=0,iocharset=utf8"

– Andy
Oct 4 '14 at 7:06





I recommend getting shares to mount using the "mount" or "mount.cifs" command before mucking around with fstab. eg: "mount.cifs //share/files/ /mnt/share/ --verbose -o guest,uid=0,iocharset=utf8"

– Andy
Oct 4 '14 at 7:06













I updated the question a bit, can you guys please check?

– IFightCode
Oct 4 '14 at 7:50





I updated the question a bit, can you guys please check?

– IFightCode
Oct 4 '14 at 7:50










1 Answer
1






active

oldest

votes


















0














The error you're getting is indicating that it cannot connect to the Windows computer to access the share. What seems to be happening is you're not setting the computer name correctly, the computer you're trying to access doesn't respond to mDNS, or you're not defining the first field (the CIFS source) properly.



The syntax for adding a cifs share in /etc/fstab should look something like one of these:



//computername/sharename/  /mnt/share  cifs  guest,uid=0,iocharset=utf8 0 0
//10.10.10.100/sharename/ /mnt/share cifs guest,uid=0,iocharset=utf8 0 0


The structure for the first field is //<hostname or ip>/<the name of the share>/.



If you cannot contact the Windows computer using its name you can try using its IP address.






share|improve this answer
























  • I used IP instead of path and got the following error message Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Any idea?

    – IFightCode
    Oct 4 '14 at 7:50











  • Either the share doesn't permit guest access, the share name isn't correct, it's another configuration issue, or there's a bug with the samba software. Verify the share on the windows computer permits guest access. Additionally verify you have the most recent version of smbclient installed on your Ubuntu box. Then update your initial question with your current configuration plus any errors from dmesg or /var/log/syslog that are related to samba/cifs.

    – Gene
    Oct 4 '14 at 7:56














Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f633495%2fmounting-windows-share-from-ubuntu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The error you're getting is indicating that it cannot connect to the Windows computer to access the share. What seems to be happening is you're not setting the computer name correctly, the computer you're trying to access doesn't respond to mDNS, or you're not defining the first field (the CIFS source) properly.



The syntax for adding a cifs share in /etc/fstab should look something like one of these:



//computername/sharename/  /mnt/share  cifs  guest,uid=0,iocharset=utf8 0 0
//10.10.10.100/sharename/ /mnt/share cifs guest,uid=0,iocharset=utf8 0 0


The structure for the first field is //<hostname or ip>/<the name of the share>/.



If you cannot contact the Windows computer using its name you can try using its IP address.






share|improve this answer
























  • I used IP instead of path and got the following error message Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Any idea?

    – IFightCode
    Oct 4 '14 at 7:50











  • Either the share doesn't permit guest access, the share name isn't correct, it's another configuration issue, or there's a bug with the samba software. Verify the share on the windows computer permits guest access. Additionally verify you have the most recent version of smbclient installed on your Ubuntu box. Then update your initial question with your current configuration plus any errors from dmesg or /var/log/syslog that are related to samba/cifs.

    – Gene
    Oct 4 '14 at 7:56


















0














The error you're getting is indicating that it cannot connect to the Windows computer to access the share. What seems to be happening is you're not setting the computer name correctly, the computer you're trying to access doesn't respond to mDNS, or you're not defining the first field (the CIFS source) properly.



The syntax for adding a cifs share in /etc/fstab should look something like one of these:



//computername/sharename/  /mnt/share  cifs  guest,uid=0,iocharset=utf8 0 0
//10.10.10.100/sharename/ /mnt/share cifs guest,uid=0,iocharset=utf8 0 0


The structure for the first field is //<hostname or ip>/<the name of the share>/.



If you cannot contact the Windows computer using its name you can try using its IP address.






share|improve this answer
























  • I used IP instead of path and got the following error message Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Any idea?

    – IFightCode
    Oct 4 '14 at 7:50











  • Either the share doesn't permit guest access, the share name isn't correct, it's another configuration issue, or there's a bug with the samba software. Verify the share on the windows computer permits guest access. Additionally verify you have the most recent version of smbclient installed on your Ubuntu box. Then update your initial question with your current configuration plus any errors from dmesg or /var/log/syslog that are related to samba/cifs.

    – Gene
    Oct 4 '14 at 7:56
















0












0








0







The error you're getting is indicating that it cannot connect to the Windows computer to access the share. What seems to be happening is you're not setting the computer name correctly, the computer you're trying to access doesn't respond to mDNS, or you're not defining the first field (the CIFS source) properly.



The syntax for adding a cifs share in /etc/fstab should look something like one of these:



//computername/sharename/  /mnt/share  cifs  guest,uid=0,iocharset=utf8 0 0
//10.10.10.100/sharename/ /mnt/share cifs guest,uid=0,iocharset=utf8 0 0


The structure for the first field is //<hostname or ip>/<the name of the share>/.



If you cannot contact the Windows computer using its name you can try using its IP address.






share|improve this answer













The error you're getting is indicating that it cannot connect to the Windows computer to access the share. What seems to be happening is you're not setting the computer name correctly, the computer you're trying to access doesn't respond to mDNS, or you're not defining the first field (the CIFS source) properly.



The syntax for adding a cifs share in /etc/fstab should look something like one of these:



//computername/sharename/  /mnt/share  cifs  guest,uid=0,iocharset=utf8 0 0
//10.10.10.100/sharename/ /mnt/share cifs guest,uid=0,iocharset=utf8 0 0


The structure for the first field is //<hostname or ip>/<the name of the share>/.



If you cannot contact the Windows computer using its name you can try using its IP address.







share|improve this answer












share|improve this answer



share|improve this answer










answered Oct 4 '14 at 6:23









GeneGene

3,4081537




3,4081537













  • I used IP instead of path and got the following error message Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Any idea?

    – IFightCode
    Oct 4 '14 at 7:50











  • Either the share doesn't permit guest access, the share name isn't correct, it's another configuration issue, or there's a bug with the samba software. Verify the share on the windows computer permits guest access. Additionally verify you have the most recent version of smbclient installed on your Ubuntu box. Then update your initial question with your current configuration plus any errors from dmesg or /var/log/syslog that are related to samba/cifs.

    – Gene
    Oct 4 '14 at 7:56





















  • I used IP instead of path and got the following error message Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Any idea?

    – IFightCode
    Oct 4 '14 at 7:50











  • Either the share doesn't permit guest access, the share name isn't correct, it's another configuration issue, or there's a bug with the samba software. Verify the share on the windows computer permits guest access. Additionally verify you have the most recent version of smbclient installed on your Ubuntu box. Then update your initial question with your current configuration plus any errors from dmesg or /var/log/syslog that are related to samba/cifs.

    – Gene
    Oct 4 '14 at 7:56



















I used IP instead of path and got the following error message Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Any idea?

– IFightCode
Oct 4 '14 at 7:50





I used IP instead of path and got the following error message Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Any idea?

– IFightCode
Oct 4 '14 at 7:50













Either the share doesn't permit guest access, the share name isn't correct, it's another configuration issue, or there's a bug with the samba software. Verify the share on the windows computer permits guest access. Additionally verify you have the most recent version of smbclient installed on your Ubuntu box. Then update your initial question with your current configuration plus any errors from dmesg or /var/log/syslog that are related to samba/cifs.

– Gene
Oct 4 '14 at 7:56







Either the share doesn't permit guest access, the share name isn't correct, it's another configuration issue, or there's a bug with the samba software. Verify the share on the windows computer permits guest access. Additionally verify you have the most recent version of smbclient installed on your Ubuntu box. Then update your initial question with your current configuration plus any errors from dmesg or /var/log/syslog that are related to samba/cifs.

– Gene
Oct 4 '14 at 7:56




















draft saved

draft discarded




















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f633495%2fmounting-windows-share-from-ubuntu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

Список ссавців Італії Природоохоронні статуси | Список |...

Українські прізвища Зміст Історичні відомості |...