How to access external samba server through the terminal in order to copy files from a different server via...












0















I have access to an external samba server through the GUI method outlined here:



https://help.ubuntu.com/stable/ubuntu-help/nautilus-connect.html.en



which has worked fine and I have access to all the files. However, I cannot access the files through the terminal. When I right click to find the location of the folder, it says the location is smb://<university URL>/shared/. However I cannot access this folder through the terminal.



I have tried at length to mount the server onto a local folder using cifs and I cannot get it to work - usually I get mount error (6). I have basically given up on accessing through this method and I think it might be a problem on the server end rather than on my end. However considering I can access the files through the gui method I am wondering if there is just some way of accessing through the terminal that does not explicitly involve mounting it onto a local folder.



The reason why I need to do this is simply to move some very large datafiles from an external supercomputer server via ssh to my university shared server and I have to do it through the terminal. I am running Ubuntu 18.04.1



Edit: I have located the folder in the following location:



/run/user/1001/gvfs/smb-share:server=<university URL>,share=shared


however, when I try to move files from the external supercomputer server to my university server using the following command:



scp -r <username>@<supercomputer URL>:<path to folder> /run/user/1001/gvfs/smb-share:server=<university URL>,share=shared/<path to desired folder>


it does not work and I get the following error:



/run/user/1001/gvfs/smb-share:server=<university URL>,share=shared/<path to desired folder>/<folder>/<file1>: Invalid argument


and throws this error for every file in the folder. I have also tried using rsync rather than scp and this also does not work.










share|improve this question

























  • I have found the mount command options necessary vary with Ubuntu release (so user68186's question is spot on) as samba versions change and issues because of WannaCry and the like caused the changes.

    – guiverc
    Jan 22 at 0:42











  • Please feel free to answer your own question so that it may help others. Then you should accept your own answer.

    – user68186
    Jan 22 at 1:29
















0















I have access to an external samba server through the GUI method outlined here:



https://help.ubuntu.com/stable/ubuntu-help/nautilus-connect.html.en



which has worked fine and I have access to all the files. However, I cannot access the files through the terminal. When I right click to find the location of the folder, it says the location is smb://<university URL>/shared/. However I cannot access this folder through the terminal.



I have tried at length to mount the server onto a local folder using cifs and I cannot get it to work - usually I get mount error (6). I have basically given up on accessing through this method and I think it might be a problem on the server end rather than on my end. However considering I can access the files through the gui method I am wondering if there is just some way of accessing through the terminal that does not explicitly involve mounting it onto a local folder.



The reason why I need to do this is simply to move some very large datafiles from an external supercomputer server via ssh to my university shared server and I have to do it through the terminal. I am running Ubuntu 18.04.1



Edit: I have located the folder in the following location:



/run/user/1001/gvfs/smb-share:server=<university URL>,share=shared


however, when I try to move files from the external supercomputer server to my university server using the following command:



scp -r <username>@<supercomputer URL>:<path to folder> /run/user/1001/gvfs/smb-share:server=<university URL>,share=shared/<path to desired folder>


it does not work and I get the following error:



/run/user/1001/gvfs/smb-share:server=<university URL>,share=shared/<path to desired folder>/<folder>/<file1>: Invalid argument


and throws this error for every file in the folder. I have also tried using rsync rather than scp and this also does not work.










share|improve this question

























  • I have found the mount command options necessary vary with Ubuntu release (so user68186's question is spot on) as samba versions change and issues because of WannaCry and the like caused the changes.

    – guiverc
    Jan 22 at 0:42











  • Please feel free to answer your own question so that it may help others. Then you should accept your own answer.

    – user68186
    Jan 22 at 1:29














0












0








0








I have access to an external samba server through the GUI method outlined here:



https://help.ubuntu.com/stable/ubuntu-help/nautilus-connect.html.en



which has worked fine and I have access to all the files. However, I cannot access the files through the terminal. When I right click to find the location of the folder, it says the location is smb://<university URL>/shared/. However I cannot access this folder through the terminal.



I have tried at length to mount the server onto a local folder using cifs and I cannot get it to work - usually I get mount error (6). I have basically given up on accessing through this method and I think it might be a problem on the server end rather than on my end. However considering I can access the files through the gui method I am wondering if there is just some way of accessing through the terminal that does not explicitly involve mounting it onto a local folder.



The reason why I need to do this is simply to move some very large datafiles from an external supercomputer server via ssh to my university shared server and I have to do it through the terminal. I am running Ubuntu 18.04.1



Edit: I have located the folder in the following location:



/run/user/1001/gvfs/smb-share:server=<university URL>,share=shared


however, when I try to move files from the external supercomputer server to my university server using the following command:



scp -r <username>@<supercomputer URL>:<path to folder> /run/user/1001/gvfs/smb-share:server=<university URL>,share=shared/<path to desired folder>


it does not work and I get the following error:



/run/user/1001/gvfs/smb-share:server=<university URL>,share=shared/<path to desired folder>/<folder>/<file1>: Invalid argument


and throws this error for every file in the folder. I have also tried using rsync rather than scp and this also does not work.










share|improve this question
















I have access to an external samba server through the GUI method outlined here:



https://help.ubuntu.com/stable/ubuntu-help/nautilus-connect.html.en



which has worked fine and I have access to all the files. However, I cannot access the files through the terminal. When I right click to find the location of the folder, it says the location is smb://<university URL>/shared/. However I cannot access this folder through the terminal.



I have tried at length to mount the server onto a local folder using cifs and I cannot get it to work - usually I get mount error (6). I have basically given up on accessing through this method and I think it might be a problem on the server end rather than on my end. However considering I can access the files through the gui method I am wondering if there is just some way of accessing through the terminal that does not explicitly involve mounting it onto a local folder.



The reason why I need to do this is simply to move some very large datafiles from an external supercomputer server via ssh to my university shared server and I have to do it through the terminal. I am running Ubuntu 18.04.1



Edit: I have located the folder in the following location:



/run/user/1001/gvfs/smb-share:server=<university URL>,share=shared


however, when I try to move files from the external supercomputer server to my university server using the following command:



scp -r <username>@<supercomputer URL>:<path to folder> /run/user/1001/gvfs/smb-share:server=<university URL>,share=shared/<path to desired folder>


it does not work and I get the following error:



/run/user/1001/gvfs/smb-share:server=<university URL>,share=shared/<path to desired folder>/<folder>/<file1>: Invalid argument


and throws this error for every file in the folder. I have also tried using rsync rather than scp and this also does not work.







server mount ssh samba cifs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 22 at 5:58







agorapotatoes

















asked Jan 21 at 23:45









agorapotatoesagorapotatoes

11




11













  • I have found the mount command options necessary vary with Ubuntu release (so user68186's question is spot on) as samba versions change and issues because of WannaCry and the like caused the changes.

    – guiverc
    Jan 22 at 0:42











  • Please feel free to answer your own question so that it may help others. Then you should accept your own answer.

    – user68186
    Jan 22 at 1:29



















  • I have found the mount command options necessary vary with Ubuntu release (so user68186's question is spot on) as samba versions change and issues because of WannaCry and the like caused the changes.

    – guiverc
    Jan 22 at 0:42











  • Please feel free to answer your own question so that it may help others. Then you should accept your own answer.

    – user68186
    Jan 22 at 1:29

















I have found the mount command options necessary vary with Ubuntu release (so user68186's question is spot on) as samba versions change and issues because of WannaCry and the like caused the changes.

– guiverc
Jan 22 at 0:42





I have found the mount command options necessary vary with Ubuntu release (so user68186's question is spot on) as samba versions change and issues because of WannaCry and the like caused the changes.

– guiverc
Jan 22 at 0:42













Please feel free to answer your own question so that it may help others. Then you should accept your own answer.

– user68186
Jan 22 at 1:29





Please feel free to answer your own question so that it may help others. Then you should accept your own answer.

– user68186
Jan 22 at 1:29










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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%2faskubuntu.com%2fquestions%2f1111798%2fhow-to-access-external-samba-server-through-the-terminal-in-order-to-copy-files%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • 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%2faskubuntu.com%2fquestions%2f1111798%2fhow-to-access-external-samba-server-through-the-terminal-in-order-to-copy-files%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

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?