How to mount a drive from command line

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












1















I normally mount my drives just by opening it from filesystem. It automatically mount when I click on a drive. But I wanted to mount a drive from command line. I did ran this command



sudo mount -o exec /media/john/Study


but I get this error



mount: /dev/sda8 already mounted or /media/john/Study busy
mount: according to mtab, /dev/sda8 is already mounted on /media/john/Study


This error show when I already mounted the Study drive by opening it from filesystem. But if I unmount the drive and then run the same command I get this error



mount: can't find /media/john/Study in /etc/fstab or /etc/mtab


How can I mount a drive from commandline?



This is very annoying to mount each time I restart or start my pc. A bonus would be if you could tell me how can I automatically mount my drives automatically when I start my pc.










share|improve this question


























    1















    I normally mount my drives just by opening it from filesystem. It automatically mount when I click on a drive. But I wanted to mount a drive from command line. I did ran this command



    sudo mount -o exec /media/john/Study


    but I get this error



    mount: /dev/sda8 already mounted or /media/john/Study busy
    mount: according to mtab, /dev/sda8 is already mounted on /media/john/Study


    This error show when I already mounted the Study drive by opening it from filesystem. But if I unmount the drive and then run the same command I get this error



    mount: can't find /media/john/Study in /etc/fstab or /etc/mtab


    How can I mount a drive from commandline?



    This is very annoying to mount each time I restart or start my pc. A bonus would be if you could tell me how can I automatically mount my drives automatically when I start my pc.










    share|improve this question
























      1












      1








      1








      I normally mount my drives just by opening it from filesystem. It automatically mount when I click on a drive. But I wanted to mount a drive from command line. I did ran this command



      sudo mount -o exec /media/john/Study


      but I get this error



      mount: /dev/sda8 already mounted or /media/john/Study busy
      mount: according to mtab, /dev/sda8 is already mounted on /media/john/Study


      This error show when I already mounted the Study drive by opening it from filesystem. But if I unmount the drive and then run the same command I get this error



      mount: can't find /media/john/Study in /etc/fstab or /etc/mtab


      How can I mount a drive from commandline?



      This is very annoying to mount each time I restart or start my pc. A bonus would be if you could tell me how can I automatically mount my drives automatically when I start my pc.










      share|improve this question














      I normally mount my drives just by opening it from filesystem. It automatically mount when I click on a drive. But I wanted to mount a drive from command line. I did ran this command



      sudo mount -o exec /media/john/Study


      but I get this error



      mount: /dev/sda8 already mounted or /media/john/Study busy
      mount: according to mtab, /dev/sda8 is already mounted on /media/john/Study


      This error show when I already mounted the Study drive by opening it from filesystem. But if I unmount the drive and then run the same command I get this error



      mount: can't find /media/john/Study in /etc/fstab or /etc/mtab


      How can I mount a drive from commandline?



      This is very annoying to mount each time I restart or start my pc. A bonus would be if you could tell me how can I automatically mount my drives automatically when I start my pc.







      linux filesystems mount






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 14 '16 at 18:02









      user3128796user3128796

      1365




      1365




















          1 Answer
          1






          active

          oldest

          votes


















          0














          First, if you want to permanently mount it, you must make an entry for it in /etc/fstab file like this:



          /dev/sda8 /media/john/Study ext4 defaults 0 0


          Second, if you just want to mount it from the command line each time, then use the full command, indicating the drive and mount point.



          mount /dev/sda8 /media/john/Study





          share|improve this answer

























          • Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory

            – user3128796
            Feb 14 '16 at 21:16











          • ok then make the directory /media/bcc/Study first

            – Ijaz Ahmad Khan
            Feb 14 '16 at 21:20











          • This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"

            – user3128796
            Feb 14 '16 at 21:23










          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%2f262217%2fhow-to-mount-a-drive-from-command-line%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














          First, if you want to permanently mount it, you must make an entry for it in /etc/fstab file like this:



          /dev/sda8 /media/john/Study ext4 defaults 0 0


          Second, if you just want to mount it from the command line each time, then use the full command, indicating the drive and mount point.



          mount /dev/sda8 /media/john/Study





          share|improve this answer

























          • Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory

            – user3128796
            Feb 14 '16 at 21:16











          • ok then make the directory /media/bcc/Study first

            – Ijaz Ahmad Khan
            Feb 14 '16 at 21:20











          • This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"

            – user3128796
            Feb 14 '16 at 21:23















          0














          First, if you want to permanently mount it, you must make an entry for it in /etc/fstab file like this:



          /dev/sda8 /media/john/Study ext4 defaults 0 0


          Second, if you just want to mount it from the command line each time, then use the full command, indicating the drive and mount point.



          mount /dev/sda8 /media/john/Study





          share|improve this answer

























          • Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory

            – user3128796
            Feb 14 '16 at 21:16











          • ok then make the directory /media/bcc/Study first

            – Ijaz Ahmad Khan
            Feb 14 '16 at 21:20











          • This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"

            – user3128796
            Feb 14 '16 at 21:23













          0












          0








          0







          First, if you want to permanently mount it, you must make an entry for it in /etc/fstab file like this:



          /dev/sda8 /media/john/Study ext4 defaults 0 0


          Second, if you just want to mount it from the command line each time, then use the full command, indicating the drive and mount point.



          mount /dev/sda8 /media/john/Study





          share|improve this answer















          First, if you want to permanently mount it, you must make an entry for it in /etc/fstab file like this:



          /dev/sda8 /media/john/Study ext4 defaults 0 0


          Second, if you just want to mount it from the command line each time, then use the full command, indicating the drive and mount point.



          mount /dev/sda8 /media/john/Study






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 16 '18 at 2:54









          Jeff Schaller

          40.9k1056130




          40.9k1056130










          answered Feb 14 '16 at 20:54









          Ijaz Ahmad KhanIjaz Ahmad Khan

          3,47431535




          3,47431535












          • Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory

            – user3128796
            Feb 14 '16 at 21:16











          • ok then make the directory /media/bcc/Study first

            – Ijaz Ahmad Khan
            Feb 14 '16 at 21:20











          • This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"

            – user3128796
            Feb 14 '16 at 21:23

















          • Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory

            – user3128796
            Feb 14 '16 at 21:16











          • ok then make the directory /media/bcc/Study first

            – Ijaz Ahmad Khan
            Feb 14 '16 at 21:20











          • This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"

            – user3128796
            Feb 14 '16 at 21:23
















          Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory

          – user3128796
          Feb 14 '16 at 21:16





          Now I get this error fuse: failed to access mountpoint /media/bcc/Study: No such file or directory

          – user3128796
          Feb 14 '16 at 21:16













          ok then make the directory /media/bcc/Study first

          – Ijaz Ahmad Khan
          Feb 14 '16 at 21:20





          ok then make the directory /media/bcc/Study first

          – Ijaz Ahmad Khan
          Feb 14 '16 at 21:20













          This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"

          – user3128796
          Feb 14 '16 at 21:23





          This gives error "mount: can't find /media/bcc/Study in /etc/fstab or /etc/mtab"

          – user3128796
          Feb 14 '16 at 21:23

















          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%2f262217%2fhow-to-mount-a-drive-from-command-line%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

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)