ntfs-3g.usermap fails with “You have defined no user” on 16.04












0














The ntfs-3g.usermap command doesn't seem to work for me on an NTFS disk:



$ lsblk -no name,fstype | grep sdb1
└─sdb1 ntfs
$ umount /dev/sdb1
$ mount | grep sdb1
$ sudo ntfs-3g.usermap /dev/sdb1

This tool will help you to build a mapping of Windows users
to Linux users.
Be prepared to give Linux user id (uid) and group id (gid)
for owners of files which will be selected.
"/dev/sdb1" opened

* Scanning "/dev/sdb1" (two levels)
* Search for "Documents and Settings" and "Users"
* Search for other directories /

in directory "/"
file "Autorun.inf" has no mapped group
By which Linux login should this file be owned ?
Enter gid of login, or just press "enter" if this file
does not belong to a user, or you do not known to whom

Group :
"/dev/sdb1" closed

You have defined no user, no mapping can be built

$ ls UserMap*
ls: cannot access 'UserMap*': No such file or directory


The result is the same regardless if I just press <Enter> for the Group : prompt, or type some specific user name followed by <Enter>.



What can I do? I don't even know why it fails, can I find a more detailed error message somewhere?










share|improve this question



























    0














    The ntfs-3g.usermap command doesn't seem to work for me on an NTFS disk:



    $ lsblk -no name,fstype | grep sdb1
    └─sdb1 ntfs
    $ umount /dev/sdb1
    $ mount | grep sdb1
    $ sudo ntfs-3g.usermap /dev/sdb1

    This tool will help you to build a mapping of Windows users
    to Linux users.
    Be prepared to give Linux user id (uid) and group id (gid)
    for owners of files which will be selected.
    "/dev/sdb1" opened

    * Scanning "/dev/sdb1" (two levels)
    * Search for "Documents and Settings" and "Users"
    * Search for other directories /

    in directory "/"
    file "Autorun.inf" has no mapped group
    By which Linux login should this file be owned ?
    Enter gid of login, or just press "enter" if this file
    does not belong to a user, or you do not known to whom

    Group :
    "/dev/sdb1" closed

    You have defined no user, no mapping can be built

    $ ls UserMap*
    ls: cannot access 'UserMap*': No such file or directory


    The result is the same regardless if I just press <Enter> for the Group : prompt, or type some specific user name followed by <Enter>.



    What can I do? I don't even know why it fails, can I find a more detailed error message somewhere?










    share|improve this question

























      0












      0








      0







      The ntfs-3g.usermap command doesn't seem to work for me on an NTFS disk:



      $ lsblk -no name,fstype | grep sdb1
      └─sdb1 ntfs
      $ umount /dev/sdb1
      $ mount | grep sdb1
      $ sudo ntfs-3g.usermap /dev/sdb1

      This tool will help you to build a mapping of Windows users
      to Linux users.
      Be prepared to give Linux user id (uid) and group id (gid)
      for owners of files which will be selected.
      "/dev/sdb1" opened

      * Scanning "/dev/sdb1" (two levels)
      * Search for "Documents and Settings" and "Users"
      * Search for other directories /

      in directory "/"
      file "Autorun.inf" has no mapped group
      By which Linux login should this file be owned ?
      Enter gid of login, or just press "enter" if this file
      does not belong to a user, or you do not known to whom

      Group :
      "/dev/sdb1" closed

      You have defined no user, no mapping can be built

      $ ls UserMap*
      ls: cannot access 'UserMap*': No such file or directory


      The result is the same regardless if I just press <Enter> for the Group : prompt, or type some specific user name followed by <Enter>.



      What can I do? I don't even know why it fails, can I find a more detailed error message somewhere?










      share|improve this question













      The ntfs-3g.usermap command doesn't seem to work for me on an NTFS disk:



      $ lsblk -no name,fstype | grep sdb1
      └─sdb1 ntfs
      $ umount /dev/sdb1
      $ mount | grep sdb1
      $ sudo ntfs-3g.usermap /dev/sdb1

      This tool will help you to build a mapping of Windows users
      to Linux users.
      Be prepared to give Linux user id (uid) and group id (gid)
      for owners of files which will be selected.
      "/dev/sdb1" opened

      * Scanning "/dev/sdb1" (two levels)
      * Search for "Documents and Settings" and "Users"
      * Search for other directories /

      in directory "/"
      file "Autorun.inf" has no mapped group
      By which Linux login should this file be owned ?
      Enter gid of login, or just press "enter" if this file
      does not belong to a user, or you do not known to whom

      Group :
      "/dev/sdb1" closed

      You have defined no user, no mapping can be built

      $ ls UserMap*
      ls: cannot access 'UserMap*': No such file or directory


      The result is the same regardless if I just press <Enter> for the Group : prompt, or type some specific user name followed by <Enter>.



      What can I do? I don't even know why it fails, can I find a more detailed error message somewhere?







      16.04 ntfs






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 11 at 12:58









      akavel

      181118




      181118






















          1 Answer
          1






          active

          oldest

          votes


















          0














          In the end, I did write a dummy UserMapping file on the disk and re-mounted it, and this seems to have helped by enabling permissions on the drive. Still, that's more like a workaround; I'm still curious what's the proper solution to the original question.



          What I did:



          $ mkdir /media/akavel/Maxtor/.NTFS-3G
          $ echo '::S-1-5-21-3333333333-222222222-111111111-10000' > /media/akavel/Maxtor/.NTFS-3G/UserMapping
          $ umount /dev/sdb1
          $ # click in File Explorer to mount automatically again





          share|improve this answer





















            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%2f1100038%2fntfs-3g-usermap-fails-with-you-have-defined-no-user-on-16-04%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














            In the end, I did write a dummy UserMapping file on the disk and re-mounted it, and this seems to have helped by enabling permissions on the drive. Still, that's more like a workaround; I'm still curious what's the proper solution to the original question.



            What I did:



            $ mkdir /media/akavel/Maxtor/.NTFS-3G
            $ echo '::S-1-5-21-3333333333-222222222-111111111-10000' > /media/akavel/Maxtor/.NTFS-3G/UserMapping
            $ umount /dev/sdb1
            $ # click in File Explorer to mount automatically again





            share|improve this answer


























              0














              In the end, I did write a dummy UserMapping file on the disk and re-mounted it, and this seems to have helped by enabling permissions on the drive. Still, that's more like a workaround; I'm still curious what's the proper solution to the original question.



              What I did:



              $ mkdir /media/akavel/Maxtor/.NTFS-3G
              $ echo '::S-1-5-21-3333333333-222222222-111111111-10000' > /media/akavel/Maxtor/.NTFS-3G/UserMapping
              $ umount /dev/sdb1
              $ # click in File Explorer to mount automatically again





              share|improve this answer
























                0












                0








                0






                In the end, I did write a dummy UserMapping file on the disk and re-mounted it, and this seems to have helped by enabling permissions on the drive. Still, that's more like a workaround; I'm still curious what's the proper solution to the original question.



                What I did:



                $ mkdir /media/akavel/Maxtor/.NTFS-3G
                $ echo '::S-1-5-21-3333333333-222222222-111111111-10000' > /media/akavel/Maxtor/.NTFS-3G/UserMapping
                $ umount /dev/sdb1
                $ # click in File Explorer to mount automatically again





                share|improve this answer












                In the end, I did write a dummy UserMapping file on the disk and re-mounted it, and this seems to have helped by enabling permissions on the drive. Still, that's more like a workaround; I'm still curious what's the proper solution to the original question.



                What I did:



                $ mkdir /media/akavel/Maxtor/.NTFS-3G
                $ echo '::S-1-5-21-3333333333-222222222-111111111-10000' > /media/akavel/Maxtor/.NTFS-3G/UserMapping
                $ umount /dev/sdb1
                $ # click in File Explorer to mount automatically again






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 11 at 13:08









                akavel

                181118




                181118






























                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f1100038%2fntfs-3g-usermap-fails-with-you-have-defined-no-user-on-16-04%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

                    flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                    Mangá

                     ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕