Having issues unmounting partition for debian install

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












1














I have a 50gb partition set up on my mac for installing debian, MS-DOS (FAT) format. I blessed it and am now unmounting it in order to copy the img file over. I'm using:
$ diskutil unmountDisk /dev/disk0s5 to unmount and am planning to then use: $ sudo dd if=debian7.8.0-amd64-CD-1.img of=/dev/disk0s5 bs=1m to copy the img file to the partition.



The problem is every time I try to execute the unmount on Term, it gives me Unmount of disk0 failed: at least one volume could not be unmounted. I've verified this is the right disk using diskutil list. Any ideas what is wrong?










share|improve this question




























    1














    I have a 50gb partition set up on my mac for installing debian, MS-DOS (FAT) format. I blessed it and am now unmounting it in order to copy the img file over. I'm using:
    $ diskutil unmountDisk /dev/disk0s5 to unmount and am planning to then use: $ sudo dd if=debian7.8.0-amd64-CD-1.img of=/dev/disk0s5 bs=1m to copy the img file to the partition.



    The problem is every time I try to execute the unmount on Term, it gives me Unmount of disk0 failed: at least one volume could not be unmounted. I've verified this is the right disk using diskutil list. Any ideas what is wrong?










    share|improve this question


























      1












      1








      1







      I have a 50gb partition set up on my mac for installing debian, MS-DOS (FAT) format. I blessed it and am now unmounting it in order to copy the img file over. I'm using:
      $ diskutil unmountDisk /dev/disk0s5 to unmount and am planning to then use: $ sudo dd if=debian7.8.0-amd64-CD-1.img of=/dev/disk0s5 bs=1m to copy the img file to the partition.



      The problem is every time I try to execute the unmount on Term, it gives me Unmount of disk0 failed: at least one volume could not be unmounted. I've verified this is the right disk using diskutil list. Any ideas what is wrong?










      share|improve this question















      I have a 50gb partition set up on my mac for installing debian, MS-DOS (FAT) format. I blessed it and am now unmounting it in order to copy the img file over. I'm using:
      $ diskutil unmountDisk /dev/disk0s5 to unmount and am planning to then use: $ sudo dd if=debian7.8.0-amd64-CD-1.img of=/dev/disk0s5 bs=1m to copy the img file to the partition.



      The problem is every time I try to execute the unmount on Term, it gives me Unmount of disk0 failed: at least one volume could not be unmounted. I've verified this is the right disk using diskutil list. Any ideas what is wrong?







      linux debian unmounting






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 15 at 21:59









      Rui F Ribeiro

      38.9k1479129




      38.9k1479129










      asked Jan 16 '15 at 19:14









      hohos6

      33115




      33115




















          1 Answer
          1






          active

          oldest

          votes


















          1














          At least one process (or the kernel itself with another mount) is using this volume. That may be an open file or just the current working directory.



          If /dev/disk0s5 is mounted to /mnt/tmp then run



          fuser -vm /mnt/tmp


          to find out which processes block the unmounting.



          You find the right mountpoint (under Linux) by searching /proc/mounts for the block device:



          grep ^/dev/disk0s5 /proc/mounts


          Or you may use the command mount.



          But I must admit that I ignored the point that Linux doesn't call it's drives /dev/disk0s5 thus I guess you described what you did under MacOS. That would explain the different fuser behaviour.






          share|improve this answer






















          • I have a couple questions regarding this answer. First off, how can I check where /dev/disk0s5 is mounted? Secondly, I tried using fuser -vm /mnt/tmp, and I got Unknown option: k Unknown option: m fuser: [-cfu] file ... -c file is treated as mount point -f the report is only for the named files -u print username of pid in parenthesis. Suggestions?
            – hohos6
            Jan 18 '15 at 3:14











          • @hohos6 I edited my answer. The problem seems to be that you describe MacOS and my answer describes Linux. You may better ask on the Mac site.
            – Hauke Laging
            Jan 18 '15 at 4:01










          • Haha ok. Thx for the help
            – hohos6
            Jan 18 '15 at 19:54










          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%2f179486%2fhaving-issues-unmounting-partition-for-debian-install%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














          At least one process (or the kernel itself with another mount) is using this volume. That may be an open file or just the current working directory.



          If /dev/disk0s5 is mounted to /mnt/tmp then run



          fuser -vm /mnt/tmp


          to find out which processes block the unmounting.



          You find the right mountpoint (under Linux) by searching /proc/mounts for the block device:



          grep ^/dev/disk0s5 /proc/mounts


          Or you may use the command mount.



          But I must admit that I ignored the point that Linux doesn't call it's drives /dev/disk0s5 thus I guess you described what you did under MacOS. That would explain the different fuser behaviour.






          share|improve this answer






















          • I have a couple questions regarding this answer. First off, how can I check where /dev/disk0s5 is mounted? Secondly, I tried using fuser -vm /mnt/tmp, and I got Unknown option: k Unknown option: m fuser: [-cfu] file ... -c file is treated as mount point -f the report is only for the named files -u print username of pid in parenthesis. Suggestions?
            – hohos6
            Jan 18 '15 at 3:14











          • @hohos6 I edited my answer. The problem seems to be that you describe MacOS and my answer describes Linux. You may better ask on the Mac site.
            – Hauke Laging
            Jan 18 '15 at 4:01










          • Haha ok. Thx for the help
            – hohos6
            Jan 18 '15 at 19:54















          1














          At least one process (or the kernel itself with another mount) is using this volume. That may be an open file or just the current working directory.



          If /dev/disk0s5 is mounted to /mnt/tmp then run



          fuser -vm /mnt/tmp


          to find out which processes block the unmounting.



          You find the right mountpoint (under Linux) by searching /proc/mounts for the block device:



          grep ^/dev/disk0s5 /proc/mounts


          Or you may use the command mount.



          But I must admit that I ignored the point that Linux doesn't call it's drives /dev/disk0s5 thus I guess you described what you did under MacOS. That would explain the different fuser behaviour.






          share|improve this answer






















          • I have a couple questions regarding this answer. First off, how can I check where /dev/disk0s5 is mounted? Secondly, I tried using fuser -vm /mnt/tmp, and I got Unknown option: k Unknown option: m fuser: [-cfu] file ... -c file is treated as mount point -f the report is only for the named files -u print username of pid in parenthesis. Suggestions?
            – hohos6
            Jan 18 '15 at 3:14











          • @hohos6 I edited my answer. The problem seems to be that you describe MacOS and my answer describes Linux. You may better ask on the Mac site.
            – Hauke Laging
            Jan 18 '15 at 4:01










          • Haha ok. Thx for the help
            – hohos6
            Jan 18 '15 at 19:54













          1












          1








          1






          At least one process (or the kernel itself with another mount) is using this volume. That may be an open file or just the current working directory.



          If /dev/disk0s5 is mounted to /mnt/tmp then run



          fuser -vm /mnt/tmp


          to find out which processes block the unmounting.



          You find the right mountpoint (under Linux) by searching /proc/mounts for the block device:



          grep ^/dev/disk0s5 /proc/mounts


          Or you may use the command mount.



          But I must admit that I ignored the point that Linux doesn't call it's drives /dev/disk0s5 thus I guess you described what you did under MacOS. That would explain the different fuser behaviour.






          share|improve this answer














          At least one process (or the kernel itself with another mount) is using this volume. That may be an open file or just the current working directory.



          If /dev/disk0s5 is mounted to /mnt/tmp then run



          fuser -vm /mnt/tmp


          to find out which processes block the unmounting.



          You find the right mountpoint (under Linux) by searching /proc/mounts for the block device:



          grep ^/dev/disk0s5 /proc/mounts


          Or you may use the command mount.



          But I must admit that I ignored the point that Linux doesn't call it's drives /dev/disk0s5 thus I guess you described what you did under MacOS. That would explain the different fuser behaviour.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 18 '15 at 3:59

























          answered Jan 16 '15 at 20:10









          Hauke Laging

          55.7k1285133




          55.7k1285133











          • I have a couple questions regarding this answer. First off, how can I check where /dev/disk0s5 is mounted? Secondly, I tried using fuser -vm /mnt/tmp, and I got Unknown option: k Unknown option: m fuser: [-cfu] file ... -c file is treated as mount point -f the report is only for the named files -u print username of pid in parenthesis. Suggestions?
            – hohos6
            Jan 18 '15 at 3:14











          • @hohos6 I edited my answer. The problem seems to be that you describe MacOS and my answer describes Linux. You may better ask on the Mac site.
            – Hauke Laging
            Jan 18 '15 at 4:01










          • Haha ok. Thx for the help
            – hohos6
            Jan 18 '15 at 19:54
















          • I have a couple questions regarding this answer. First off, how can I check where /dev/disk0s5 is mounted? Secondly, I tried using fuser -vm /mnt/tmp, and I got Unknown option: k Unknown option: m fuser: [-cfu] file ... -c file is treated as mount point -f the report is only for the named files -u print username of pid in parenthesis. Suggestions?
            – hohos6
            Jan 18 '15 at 3:14











          • @hohos6 I edited my answer. The problem seems to be that you describe MacOS and my answer describes Linux. You may better ask on the Mac site.
            – Hauke Laging
            Jan 18 '15 at 4:01










          • Haha ok. Thx for the help
            – hohos6
            Jan 18 '15 at 19:54















          I have a couple questions regarding this answer. First off, how can I check where /dev/disk0s5 is mounted? Secondly, I tried using fuser -vm /mnt/tmp, and I got Unknown option: k Unknown option: m fuser: [-cfu] file ... -c file is treated as mount point -f the report is only for the named files -u print username of pid in parenthesis. Suggestions?
          – hohos6
          Jan 18 '15 at 3:14





          I have a couple questions regarding this answer. First off, how can I check where /dev/disk0s5 is mounted? Secondly, I tried using fuser -vm /mnt/tmp, and I got Unknown option: k Unknown option: m fuser: [-cfu] file ... -c file is treated as mount point -f the report is only for the named files -u print username of pid in parenthesis. Suggestions?
          – hohos6
          Jan 18 '15 at 3:14













          @hohos6 I edited my answer. The problem seems to be that you describe MacOS and my answer describes Linux. You may better ask on the Mac site.
          – Hauke Laging
          Jan 18 '15 at 4:01




          @hohos6 I edited my answer. The problem seems to be that you describe MacOS and my answer describes Linux. You may better ask on the Mac site.
          – Hauke Laging
          Jan 18 '15 at 4:01












          Haha ok. Thx for the help
          – hohos6
          Jan 18 '15 at 19:54




          Haha ok. Thx for the help
          – hohos6
          Jan 18 '15 at 19:54

















          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.





          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%2funix.stackexchange.com%2fquestions%2f179486%2fhaving-issues-unmounting-partition-for-debian-install%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 check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay