How to mount the “root” file system of a Windows Samba Share with cifs?












1















Is it possible to mount the "root" of a Windows Samba Share?
I have successfully mounted a specific Samba share with this:



mount.cifs //server/share /mnt -o username=blub


What I would like to mount is the overview of all accessible shares, which Windows shows if you enter \server in the Explorer.



But mounting like this:



mount.cifs //server /mnt --verbose -o username=blub


fails with:



Password for blub@//server:  ********
mount.cifs kernel mount options: ip=172.16.83.13,unc=\server,user=blub,prefixpath=mnt,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Reading the manpage did not lead me to anything.
Is it even possible to do such things with CIFS?
I have neither read that this specific thing is impossible or that it should be possible.
All examples are just mounting \servershare and not the share overview.



I am using Gentoo Linux with cifs-utils 6.1, Kernel 3.18.7.










share|improve this question























  • AFAIK you need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ..., if that's what you're after. You can't mount the "root" of multiple NFS exports either.

    – wurtel
    Mar 9 '15 at 15:42






  • 1





    @wurtel well, actually, with NFSv4 you can, but that's beside the point.

    – derobert
    Mar 9 '15 at 15:48











  • Well, that's a pity. I thought this is quite a nice thing, but then I will mount each share separately. Thanks for your answers!

    – Andi
    Mar 9 '15 at 16:20






  • 1





    @wurtel I hate to see questions languish without an answer so I've copied your comment as an answer (Community Wiki).

    – Anthony Geoghegan
    Feb 4 at 16:11
















1















Is it possible to mount the "root" of a Windows Samba Share?
I have successfully mounted a specific Samba share with this:



mount.cifs //server/share /mnt -o username=blub


What I would like to mount is the overview of all accessible shares, which Windows shows if you enter \server in the Explorer.



But mounting like this:



mount.cifs //server /mnt --verbose -o username=blub


fails with:



Password for blub@//server:  ********
mount.cifs kernel mount options: ip=172.16.83.13,unc=\server,user=blub,prefixpath=mnt,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Reading the manpage did not lead me to anything.
Is it even possible to do such things with CIFS?
I have neither read that this specific thing is impossible or that it should be possible.
All examples are just mounting \servershare and not the share overview.



I am using Gentoo Linux with cifs-utils 6.1, Kernel 3.18.7.










share|improve this question























  • AFAIK you need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ..., if that's what you're after. You can't mount the "root" of multiple NFS exports either.

    – wurtel
    Mar 9 '15 at 15:42






  • 1





    @wurtel well, actually, with NFSv4 you can, but that's beside the point.

    – derobert
    Mar 9 '15 at 15:48











  • Well, that's a pity. I thought this is quite a nice thing, but then I will mount each share separately. Thanks for your answers!

    – Andi
    Mar 9 '15 at 16:20






  • 1





    @wurtel I hate to see questions languish without an answer so I've copied your comment as an answer (Community Wiki).

    – Anthony Geoghegan
    Feb 4 at 16:11














1












1








1








Is it possible to mount the "root" of a Windows Samba Share?
I have successfully mounted a specific Samba share with this:



mount.cifs //server/share /mnt -o username=blub


What I would like to mount is the overview of all accessible shares, which Windows shows if you enter \server in the Explorer.



But mounting like this:



mount.cifs //server /mnt --verbose -o username=blub


fails with:



Password for blub@//server:  ********
mount.cifs kernel mount options: ip=172.16.83.13,unc=\server,user=blub,prefixpath=mnt,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Reading the manpage did not lead me to anything.
Is it even possible to do such things with CIFS?
I have neither read that this specific thing is impossible or that it should be possible.
All examples are just mounting \servershare and not the share overview.



I am using Gentoo Linux with cifs-utils 6.1, Kernel 3.18.7.










share|improve this question














Is it possible to mount the "root" of a Windows Samba Share?
I have successfully mounted a specific Samba share with this:



mount.cifs //server/share /mnt -o username=blub


What I would like to mount is the overview of all accessible shares, which Windows shows if you enter \server in the Explorer.



But mounting like this:



mount.cifs //server /mnt --verbose -o username=blub


fails with:



Password for blub@//server:  ********
mount.cifs kernel mount options: ip=172.16.83.13,unc=\server,user=blub,prefixpath=mnt,pass=********
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


Reading the manpage did not lead me to anything.
Is it even possible to do such things with CIFS?
I have neither read that this specific thing is impossible or that it should be possible.
All examples are just mounting \servershare and not the share overview.



I am using Gentoo Linux with cifs-utils 6.1, Kernel 3.18.7.







samba cifs






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 9 '15 at 15:05









AndiAndi

181127




181127













  • AFAIK you need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ..., if that's what you're after. You can't mount the "root" of multiple NFS exports either.

    – wurtel
    Mar 9 '15 at 15:42






  • 1





    @wurtel well, actually, with NFSv4 you can, but that's beside the point.

    – derobert
    Mar 9 '15 at 15:48











  • Well, that's a pity. I thought this is quite a nice thing, but then I will mount each share separately. Thanks for your answers!

    – Andi
    Mar 9 '15 at 16:20






  • 1





    @wurtel I hate to see questions languish without an answer so I've copied your comment as an answer (Community Wiki).

    – Anthony Geoghegan
    Feb 4 at 16:11



















  • AFAIK you need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ..., if that's what you're after. You can't mount the "root" of multiple NFS exports either.

    – wurtel
    Mar 9 '15 at 15:42






  • 1





    @wurtel well, actually, with NFSv4 you can, but that's beside the point.

    – derobert
    Mar 9 '15 at 15:48











  • Well, that's a pity. I thought this is quite a nice thing, but then I will mount each share separately. Thanks for your answers!

    – Andi
    Mar 9 '15 at 16:20






  • 1





    @wurtel I hate to see questions languish without an answer so I've copied your comment as an answer (Community Wiki).

    – Anthony Geoghegan
    Feb 4 at 16:11

















AFAIK you need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ..., if that's what you're after. You can't mount the "root" of multiple NFS exports either.

– wurtel
Mar 9 '15 at 15:42





AFAIK you need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ..., if that's what you're after. You can't mount the "root" of multiple NFS exports either.

– wurtel
Mar 9 '15 at 15:42




1




1





@wurtel well, actually, with NFSv4 you can, but that's beside the point.

– derobert
Mar 9 '15 at 15:48





@wurtel well, actually, with NFSv4 you can, but that's beside the point.

– derobert
Mar 9 '15 at 15:48













Well, that's a pity. I thought this is quite a nice thing, but then I will mount each share separately. Thanks for your answers!

– Andi
Mar 9 '15 at 16:20





Well, that's a pity. I thought this is quite a nice thing, but then I will mount each share separately. Thanks for your answers!

– Andi
Mar 9 '15 at 16:20




1




1





@wurtel I hate to see questions languish without an answer so I've copied your comment as an answer (Community Wiki).

– Anthony Geoghegan
Feb 4 at 16:11





@wurtel I hate to see questions languish without an answer so I've copied your comment as an answer (Community Wiki).

– Anthony Geoghegan
Feb 4 at 16:11










1 Answer
1






active

oldest

votes


















1














This is not actually possible. You need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ...






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f189049%2fhow-to-mount-the-root-file-system-of-a-windows-samba-share-with-cifs%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









    1














    This is not actually possible. You need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ...






    share|improve this answer






























      1














      This is not actually possible. You need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ...






      share|improve this answer




























        1












        1








        1







        This is not actually possible. You need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ...






        share|improve this answer















        This is not actually possible. You need to mount each share separately, as each share may have its own restrictions and allowed users. The list can be obtained with smbclient -L ...







        share|improve this answer














        share|improve this answer



        share|improve this answer








        answered Feb 4 at 16:08


























        community wiki





        Anthony Geoghegan































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f189049%2fhow-to-mount-the-root-file-system-of-a-windows-samba-share-with-cifs%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

            How to make a Squid Proxy server?

            Is this a new Fibonacci Identity?

            19世紀