what the diff between remount to umount/mount?

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











up vote
2
down vote

favorite












when we perform this ( on linux redhat 7.x)



umount /grop/sdc
umount: /grop/sdc: target is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))


we can see that mount failed on busy



but when we do remount then ...
remount is success as the following:



mount -o rw,remount /grop/sdc
echo $?
0


so very interesting



dose remount use the option like ( umount -l ) ? what the diffrent between remount to umount/mount ?







share|improve this question
























    up vote
    2
    down vote

    favorite












    when we perform this ( on linux redhat 7.x)



    umount /grop/sdc
    umount: /grop/sdc: target is busy.
    (In some cases useful info about processes that use
    the device is found by lsof(8) or fuser(1))


    we can see that mount failed on busy



    but when we do remount then ...
    remount is success as the following:



    mount -o rw,remount /grop/sdc
    echo $?
    0


    so very interesting



    dose remount use the option like ( umount -l ) ? what the diffrent between remount to umount/mount ?







    share|improve this question






















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      when we perform this ( on linux redhat 7.x)



      umount /grop/sdc
      umount: /grop/sdc: target is busy.
      (In some cases useful info about processes that use
      the device is found by lsof(8) or fuser(1))


      we can see that mount failed on busy



      but when we do remount then ...
      remount is success as the following:



      mount -o rw,remount /grop/sdc
      echo $?
      0


      so very interesting



      dose remount use the option like ( umount -l ) ? what the diffrent between remount to umount/mount ?







      share|improve this question












      when we perform this ( on linux redhat 7.x)



      umount /grop/sdc
      umount: /grop/sdc: target is busy.
      (In some cases useful info about processes that use
      the device is found by lsof(8) or fuser(1))


      we can see that mount failed on busy



      but when we do remount then ...
      remount is success as the following:



      mount -o rw,remount /grop/sdc
      echo $?
      0


      so very interesting



      dose remount use the option like ( umount -l ) ? what the diffrent between remount to umount/mount ?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 '17 at 8:05









      yael

      2,0251145




      2,0251145




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          man mount :




          remount



          Attempt to remount an already-mounted filesystem. This is commonly used to change the mount flags for a filesystem, especially to make a readonly filesystem writeable. It does not change device or mount point.
          The remount functionality follows the standard way how the mount command works with options from fstab. It means the mount command doesn't read fstab (or mtab) only when a device and dir are fully specified.




          The remount option is used when the file system isn't currently in use to modify the mount option from ro to rw.




          target is busy.




          If the file system is already in use you can't umount it properly , you need to find the process which accessed your files (fuser -mu /path/ ) , killing the running process then unmounting the file.






          share|improve this answer






















          • so the remount dose like - umount -l & mount ?
            – yael
            Nov 12 '17 at 8:13

















          up vote
          1
          down vote













          GAD3R's reference to the man page answers your question:




          This is commonly used to change the mount flags for a filesystem,




          No where in the that explanation does it say the remount calls a umount function.



          Perhaps you can find your answers in these manpages



          man 2 mount:




          • A call to mount() performs one of a number of general types of operation, depending on the bits specified in mountflags. The choice of which operation to perform is determined by testing the bits set in mountflags, with the tests being conducted in the order listed here:

          • Remount an existing mount: mountflags includes MS_REMOUNT.


          • Remounting an existing mount
            An existing mount may be remounted by specifying MS_REMOUNT in mountflags. This allows you to change the mountflags and data of an existing mount without having to unmount and remount the filesystem. target should be the same value specified in the initial mount() call.







          share|improve this answer






















          • Please include a relevant quote from those man pages ...
            – Pierre.Vriens
            Nov 12 '17 at 8:39










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          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%2f404006%2fwhat-the-diff-between-remount-to-umount-mount%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote



          accepted










          man mount :




          remount



          Attempt to remount an already-mounted filesystem. This is commonly used to change the mount flags for a filesystem, especially to make a readonly filesystem writeable. It does not change device or mount point.
          The remount functionality follows the standard way how the mount command works with options from fstab. It means the mount command doesn't read fstab (or mtab) only when a device and dir are fully specified.




          The remount option is used when the file system isn't currently in use to modify the mount option from ro to rw.




          target is busy.




          If the file system is already in use you can't umount it properly , you need to find the process which accessed your files (fuser -mu /path/ ) , killing the running process then unmounting the file.






          share|improve this answer






















          • so the remount dose like - umount -l & mount ?
            – yael
            Nov 12 '17 at 8:13














          up vote
          1
          down vote



          accepted










          man mount :




          remount



          Attempt to remount an already-mounted filesystem. This is commonly used to change the mount flags for a filesystem, especially to make a readonly filesystem writeable. It does not change device or mount point.
          The remount functionality follows the standard way how the mount command works with options from fstab. It means the mount command doesn't read fstab (or mtab) only when a device and dir are fully specified.




          The remount option is used when the file system isn't currently in use to modify the mount option from ro to rw.




          target is busy.




          If the file system is already in use you can't umount it properly , you need to find the process which accessed your files (fuser -mu /path/ ) , killing the running process then unmounting the file.






          share|improve this answer






















          • so the remount dose like - umount -l & mount ?
            – yael
            Nov 12 '17 at 8:13












          up vote
          1
          down vote



          accepted







          up vote
          1
          down vote



          accepted






          man mount :




          remount



          Attempt to remount an already-mounted filesystem. This is commonly used to change the mount flags for a filesystem, especially to make a readonly filesystem writeable. It does not change device or mount point.
          The remount functionality follows the standard way how the mount command works with options from fstab. It means the mount command doesn't read fstab (or mtab) only when a device and dir are fully specified.




          The remount option is used when the file system isn't currently in use to modify the mount option from ro to rw.




          target is busy.




          If the file system is already in use you can't umount it properly , you need to find the process which accessed your files (fuser -mu /path/ ) , killing the running process then unmounting the file.






          share|improve this answer














          man mount :




          remount



          Attempt to remount an already-mounted filesystem. This is commonly used to change the mount flags for a filesystem, especially to make a readonly filesystem writeable. It does not change device or mount point.
          The remount functionality follows the standard way how the mount command works with options from fstab. It means the mount command doesn't read fstab (or mtab) only when a device and dir are fully specified.




          The remount option is used when the file system isn't currently in use to modify the mount option from ro to rw.




          target is busy.




          If the file system is already in use you can't umount it properly , you need to find the process which accessed your files (fuser -mu /path/ ) , killing the running process then unmounting the file.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 12 '17 at 8:46

























          answered Nov 12 '17 at 8:11









          GAD3R

          22.7k154895




          22.7k154895











          • so the remount dose like - umount -l & mount ?
            – yael
            Nov 12 '17 at 8:13
















          • so the remount dose like - umount -l & mount ?
            – yael
            Nov 12 '17 at 8:13















          so the remount dose like - umount -l & mount ?
          – yael
          Nov 12 '17 at 8:13




          so the remount dose like - umount -l & mount ?
          – yael
          Nov 12 '17 at 8:13












          up vote
          1
          down vote













          GAD3R's reference to the man page answers your question:




          This is commonly used to change the mount flags for a filesystem,




          No where in the that explanation does it say the remount calls a umount function.



          Perhaps you can find your answers in these manpages



          man 2 mount:




          • A call to mount() performs one of a number of general types of operation, depending on the bits specified in mountflags. The choice of which operation to perform is determined by testing the bits set in mountflags, with the tests being conducted in the order listed here:

          • Remount an existing mount: mountflags includes MS_REMOUNT.


          • Remounting an existing mount
            An existing mount may be remounted by specifying MS_REMOUNT in mountflags. This allows you to change the mountflags and data of an existing mount without having to unmount and remount the filesystem. target should be the same value specified in the initial mount() call.







          share|improve this answer






















          • Please include a relevant quote from those man pages ...
            – Pierre.Vriens
            Nov 12 '17 at 8:39














          up vote
          1
          down vote













          GAD3R's reference to the man page answers your question:




          This is commonly used to change the mount flags for a filesystem,




          No where in the that explanation does it say the remount calls a umount function.



          Perhaps you can find your answers in these manpages



          man 2 mount:




          • A call to mount() performs one of a number of general types of operation, depending on the bits specified in mountflags. The choice of which operation to perform is determined by testing the bits set in mountflags, with the tests being conducted in the order listed here:

          • Remount an existing mount: mountflags includes MS_REMOUNT.


          • Remounting an existing mount
            An existing mount may be remounted by specifying MS_REMOUNT in mountflags. This allows you to change the mountflags and data of an existing mount without having to unmount and remount the filesystem. target should be the same value specified in the initial mount() call.







          share|improve this answer






















          • Please include a relevant quote from those man pages ...
            – Pierre.Vriens
            Nov 12 '17 at 8:39












          up vote
          1
          down vote










          up vote
          1
          down vote









          GAD3R's reference to the man page answers your question:




          This is commonly used to change the mount flags for a filesystem,




          No where in the that explanation does it say the remount calls a umount function.



          Perhaps you can find your answers in these manpages



          man 2 mount:




          • A call to mount() performs one of a number of general types of operation, depending on the bits specified in mountflags. The choice of which operation to perform is determined by testing the bits set in mountflags, with the tests being conducted in the order listed here:

          • Remount an existing mount: mountflags includes MS_REMOUNT.


          • Remounting an existing mount
            An existing mount may be remounted by specifying MS_REMOUNT in mountflags. This allows you to change the mountflags and data of an existing mount without having to unmount and remount the filesystem. target should be the same value specified in the initial mount() call.







          share|improve this answer














          GAD3R's reference to the man page answers your question:




          This is commonly used to change the mount flags for a filesystem,




          No where in the that explanation does it say the remount calls a umount function.



          Perhaps you can find your answers in these manpages



          man 2 mount:




          • A call to mount() performs one of a number of general types of operation, depending on the bits specified in mountflags. The choice of which operation to perform is determined by testing the bits set in mountflags, with the tests being conducted in the order listed here:

          • Remount an existing mount: mountflags includes MS_REMOUNT.


          • Remounting an existing mount
            An existing mount may be remounted by specifying MS_REMOUNT in mountflags. This allows you to change the mountflags and data of an existing mount without having to unmount and remount the filesystem. target should be the same value specified in the initial mount() call.








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 12 '17 at 8:49









          GAD3R

          22.7k154895




          22.7k154895










          answered Nov 12 '17 at 8:33









          iudicare

          112




          112











          • Please include a relevant quote from those man pages ...
            – Pierre.Vriens
            Nov 12 '17 at 8:39
















          • Please include a relevant quote from those man pages ...
            – Pierre.Vriens
            Nov 12 '17 at 8:39















          Please include a relevant quote from those man pages ...
          – Pierre.Vriens
          Nov 12 '17 at 8:39




          Please include a relevant quote from those man pages ...
          – Pierre.Vriens
          Nov 12 '17 at 8:39

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f404006%2fwhat-the-diff-between-remount-to-umount-mount%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)