Can not safely remove external hard drive?












3














Notice



I could not find the solution but after installing Ubuntu 16.04.2 LTS the problem no longer exists!





The Problem



I have a 1TB Transcend external hdd (inner chip is WDC_WD10JPVX-22JC3T0_WD-WX11A15R3AC8) and when I try to safely remove it either from file manager or even from command line with udisksctl unmount -b /dev/sdb1 and then udisksctl power-off -b /dev/sdb1, it immediately pops up again and won't power off.



I'm using Ubuntu 16.04.1 LTS.




  • It happens either USB2 or USB3.

  • It can safely be removed in either Mac or Windows!

  • I tried 16.04 live and could not safely remove! but my HD can be safely removed in a live 16.04 booted in another PC, and also can be safely removed in my laptop in Windows!


These are some output after running udisksctl unmount -b /dev/sdb1 and then udisksctl power-off -b /dev/sdb:




  1. udevadm monitor

  2. udisksctl monitor










share|improve this question
























  • Is this plugged into a USB3 port?
    – heynnema
    Nov 2 '16 at 1:04










  • @heynnema, yes it is. :)
    – Masked Man
    Nov 2 '16 at 7:43










  • Try plugging it into a USB2 port, and see if it still occurs. I'm checking on reports that it may be a USB3 issue. Report back.
    – heynnema
    Nov 2 '16 at 14:03












  • @heynnema, no it's the same :)
    – Masked Man
    Nov 2 '16 at 19:42






  • 1




    @user.dz, dpkg -l smart and udevadm-monitor and udisksctl-monitor
    – Masked Man
    Nov 26 '16 at 19:32


















3














Notice



I could not find the solution but after installing Ubuntu 16.04.2 LTS the problem no longer exists!





The Problem



I have a 1TB Transcend external hdd (inner chip is WDC_WD10JPVX-22JC3T0_WD-WX11A15R3AC8) and when I try to safely remove it either from file manager or even from command line with udisksctl unmount -b /dev/sdb1 and then udisksctl power-off -b /dev/sdb1, it immediately pops up again and won't power off.



I'm using Ubuntu 16.04.1 LTS.




  • It happens either USB2 or USB3.

  • It can safely be removed in either Mac or Windows!

  • I tried 16.04 live and could not safely remove! but my HD can be safely removed in a live 16.04 booted in another PC, and also can be safely removed in my laptop in Windows!


These are some output after running udisksctl unmount -b /dev/sdb1 and then udisksctl power-off -b /dev/sdb:




  1. udevadm monitor

  2. udisksctl monitor










share|improve this question
























  • Is this plugged into a USB3 port?
    – heynnema
    Nov 2 '16 at 1:04










  • @heynnema, yes it is. :)
    – Masked Man
    Nov 2 '16 at 7:43










  • Try plugging it into a USB2 port, and see if it still occurs. I'm checking on reports that it may be a USB3 issue. Report back.
    – heynnema
    Nov 2 '16 at 14:03












  • @heynnema, no it's the same :)
    – Masked Man
    Nov 2 '16 at 19:42






  • 1




    @user.dz, dpkg -l smart and udevadm-monitor and udisksctl-monitor
    – Masked Man
    Nov 26 '16 at 19:32
















3












3








3







Notice



I could not find the solution but after installing Ubuntu 16.04.2 LTS the problem no longer exists!





The Problem



I have a 1TB Transcend external hdd (inner chip is WDC_WD10JPVX-22JC3T0_WD-WX11A15R3AC8) and when I try to safely remove it either from file manager or even from command line with udisksctl unmount -b /dev/sdb1 and then udisksctl power-off -b /dev/sdb1, it immediately pops up again and won't power off.



I'm using Ubuntu 16.04.1 LTS.




  • It happens either USB2 or USB3.

  • It can safely be removed in either Mac or Windows!

  • I tried 16.04 live and could not safely remove! but my HD can be safely removed in a live 16.04 booted in another PC, and also can be safely removed in my laptop in Windows!


These are some output after running udisksctl unmount -b /dev/sdb1 and then udisksctl power-off -b /dev/sdb:




  1. udevadm monitor

  2. udisksctl monitor










share|improve this question















Notice



I could not find the solution but after installing Ubuntu 16.04.2 LTS the problem no longer exists!





The Problem



I have a 1TB Transcend external hdd (inner chip is WDC_WD10JPVX-22JC3T0_WD-WX11A15R3AC8) and when I try to safely remove it either from file manager or even from command line with udisksctl unmount -b /dev/sdb1 and then udisksctl power-off -b /dev/sdb1, it immediately pops up again and won't power off.



I'm using Ubuntu 16.04.1 LTS.




  • It happens either USB2 or USB3.

  • It can safely be removed in either Mac or Windows!

  • I tried 16.04 live and could not safely remove! but my HD can be safely removed in a live 16.04 booted in another PC, and also can be safely removed in my laptop in Windows!


These are some output after running udisksctl unmount -b /dev/sdb1 and then udisksctl power-off -b /dev/sdb:




  1. udevadm monitor

  2. udisksctl monitor







16.04 hard-drive lts unmount






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 16 '17 at 19:09







Masked Man

















asked Nov 1 '16 at 8:11









Masked ManMasked Man

131111




131111












  • Is this plugged into a USB3 port?
    – heynnema
    Nov 2 '16 at 1:04










  • @heynnema, yes it is. :)
    – Masked Man
    Nov 2 '16 at 7:43










  • Try plugging it into a USB2 port, and see if it still occurs. I'm checking on reports that it may be a USB3 issue. Report back.
    – heynnema
    Nov 2 '16 at 14:03












  • @heynnema, no it's the same :)
    – Masked Man
    Nov 2 '16 at 19:42






  • 1




    @user.dz, dpkg -l smart and udevadm-monitor and udisksctl-monitor
    – Masked Man
    Nov 26 '16 at 19:32




















  • Is this plugged into a USB3 port?
    – heynnema
    Nov 2 '16 at 1:04










  • @heynnema, yes it is. :)
    – Masked Man
    Nov 2 '16 at 7:43










  • Try plugging it into a USB2 port, and see if it still occurs. I'm checking on reports that it may be a USB3 issue. Report back.
    – heynnema
    Nov 2 '16 at 14:03












  • @heynnema, no it's the same :)
    – Masked Man
    Nov 2 '16 at 19:42






  • 1




    @user.dz, dpkg -l smart and udevadm-monitor and udisksctl-monitor
    – Masked Man
    Nov 26 '16 at 19:32


















Is this plugged into a USB3 port?
– heynnema
Nov 2 '16 at 1:04




Is this plugged into a USB3 port?
– heynnema
Nov 2 '16 at 1:04












@heynnema, yes it is. :)
– Masked Man
Nov 2 '16 at 7:43




@heynnema, yes it is. :)
– Masked Man
Nov 2 '16 at 7:43












Try plugging it into a USB2 port, and see if it still occurs. I'm checking on reports that it may be a USB3 issue. Report back.
– heynnema
Nov 2 '16 at 14:03






Try plugging it into a USB2 port, and see if it still occurs. I'm checking on reports that it may be a USB3 issue. Report back.
– heynnema
Nov 2 '16 at 14:03














@heynnema, no it's the same :)
– Masked Man
Nov 2 '16 at 19:42




@heynnema, no it's the same :)
– Masked Man
Nov 2 '16 at 19:42




1




1




@user.dz, dpkg -l smart and udevadm-monitor and udisksctl-monitor
– Masked Man
Nov 26 '16 at 19:32






@user.dz, dpkg -l smart and udevadm-monitor and udisksctl-monitor
– Masked Man
Nov 26 '16 at 19:32












3 Answers
3






active

oldest

votes


















2














I have a cheap WD Black that has the same issue and there is no firmware update available. As I use it as a back-up drive that I only attach 1/week, I stopped worrying about it and unmount all partitions and then just unplug it...



Has been successful for the last 4 years or so.






share|improve this answer





















  • I know it is not so harmful to unplug it after unmounting as I can hear it spins down itself, but I'm looking for the right way! so I upvoted your answer but did not accept it :)
    – Masked Man
    Nov 1 '16 at 21:56












  • Thanks... The only solution is a firmware upgrade, as the "hardware" doesn't support it. Didn't look into your specific chipset, but looked into mine and there wasn't one, so I stopped looking after 6 months or so as it was a cheap one meant for backup anyway.
    – Fabby
    Nov 2 '16 at 6:57






  • 1




    I don't think it to be a firmware issue as it was neither Windows nor OSx couldn't safely remove it but they can! :)
    – Masked Man
    Nov 2 '16 at 7:45










  • @Fabby note that WD drives have internal parameters that you can tweak, using a WD tool that runs under Windows (see wd.com), and even hdparm in Ubuntu can get to some of them. As memory serves... some parameters had to do with idle time, spin up/down, power saving, etc.
    – heynnema
    Nov 3 '16 at 15:56










  • @heynnema Yup, I know, but I don;t have Windows and hdparam did not show that parameter... ;)
    – Fabby
    Nov 25 '16 at 10:02



















0














I had the same problem with a 1TB external Seagate hdd. Whenever I safely removed it or ejected it, it got unmounted and remounted within seconds.



The first thing I did was to zero fill the entire hdd with the dd command, because it had some weird partitioning on its own.



Then I created an MBR (msdos) partition table and a unique primary ntfs partition with parted.



This solved the problem of the hdd being automatically remounted after being safely removed or ejected. Also, this keeps the hdd from mounting on its own when plugged to the pc/laptop (for some reason I do not understand).



However, even in the unmounted state, the drive continued spinning. To completely shut it down before removing it from my pc/laptop, I do:



sudo hdparm -Y /dev/sdb


This works for me.






share|improve this answer





























    0














    Gnome-disk-utility has "power of this disk" option which I use to power off my external disks safely. Please check the image attached. I'm running Linux Mint 19.1 Tessa






    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%2f844096%2fcan-not-safely-remove-external-hard-drive%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      I have a cheap WD Black that has the same issue and there is no firmware update available. As I use it as a back-up drive that I only attach 1/week, I stopped worrying about it and unmount all partitions and then just unplug it...



      Has been successful for the last 4 years or so.






      share|improve this answer





















      • I know it is not so harmful to unplug it after unmounting as I can hear it spins down itself, but I'm looking for the right way! so I upvoted your answer but did not accept it :)
        – Masked Man
        Nov 1 '16 at 21:56












      • Thanks... The only solution is a firmware upgrade, as the "hardware" doesn't support it. Didn't look into your specific chipset, but looked into mine and there wasn't one, so I stopped looking after 6 months or so as it was a cheap one meant for backup anyway.
        – Fabby
        Nov 2 '16 at 6:57






      • 1




        I don't think it to be a firmware issue as it was neither Windows nor OSx couldn't safely remove it but they can! :)
        – Masked Man
        Nov 2 '16 at 7:45










      • @Fabby note that WD drives have internal parameters that you can tweak, using a WD tool that runs under Windows (see wd.com), and even hdparm in Ubuntu can get to some of them. As memory serves... some parameters had to do with idle time, spin up/down, power saving, etc.
        – heynnema
        Nov 3 '16 at 15:56










      • @heynnema Yup, I know, but I don;t have Windows and hdparam did not show that parameter... ;)
        – Fabby
        Nov 25 '16 at 10:02
















      2














      I have a cheap WD Black that has the same issue and there is no firmware update available. As I use it as a back-up drive that I only attach 1/week, I stopped worrying about it and unmount all partitions and then just unplug it...



      Has been successful for the last 4 years or so.






      share|improve this answer





















      • I know it is not so harmful to unplug it after unmounting as I can hear it spins down itself, but I'm looking for the right way! so I upvoted your answer but did not accept it :)
        – Masked Man
        Nov 1 '16 at 21:56












      • Thanks... The only solution is a firmware upgrade, as the "hardware" doesn't support it. Didn't look into your specific chipset, but looked into mine and there wasn't one, so I stopped looking after 6 months or so as it was a cheap one meant for backup anyway.
        – Fabby
        Nov 2 '16 at 6:57






      • 1




        I don't think it to be a firmware issue as it was neither Windows nor OSx couldn't safely remove it but they can! :)
        – Masked Man
        Nov 2 '16 at 7:45










      • @Fabby note that WD drives have internal parameters that you can tweak, using a WD tool that runs under Windows (see wd.com), and even hdparm in Ubuntu can get to some of them. As memory serves... some parameters had to do with idle time, spin up/down, power saving, etc.
        – heynnema
        Nov 3 '16 at 15:56










      • @heynnema Yup, I know, but I don;t have Windows and hdparam did not show that parameter... ;)
        – Fabby
        Nov 25 '16 at 10:02














      2












      2








      2






      I have a cheap WD Black that has the same issue and there is no firmware update available. As I use it as a back-up drive that I only attach 1/week, I stopped worrying about it and unmount all partitions and then just unplug it...



      Has been successful for the last 4 years or so.






      share|improve this answer












      I have a cheap WD Black that has the same issue and there is no firmware update available. As I use it as a back-up drive that I only attach 1/week, I stopped worrying about it and unmount all partitions and then just unplug it...



      Has been successful for the last 4 years or so.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Nov 1 '16 at 20:19









      FabbyFabby

      26.5k1360159




      26.5k1360159












      • I know it is not so harmful to unplug it after unmounting as I can hear it spins down itself, but I'm looking for the right way! so I upvoted your answer but did not accept it :)
        – Masked Man
        Nov 1 '16 at 21:56












      • Thanks... The only solution is a firmware upgrade, as the "hardware" doesn't support it. Didn't look into your specific chipset, but looked into mine and there wasn't one, so I stopped looking after 6 months or so as it was a cheap one meant for backup anyway.
        – Fabby
        Nov 2 '16 at 6:57






      • 1




        I don't think it to be a firmware issue as it was neither Windows nor OSx couldn't safely remove it but they can! :)
        – Masked Man
        Nov 2 '16 at 7:45










      • @Fabby note that WD drives have internal parameters that you can tweak, using a WD tool that runs under Windows (see wd.com), and even hdparm in Ubuntu can get to some of them. As memory serves... some parameters had to do with idle time, spin up/down, power saving, etc.
        – heynnema
        Nov 3 '16 at 15:56










      • @heynnema Yup, I know, but I don;t have Windows and hdparam did not show that parameter... ;)
        – Fabby
        Nov 25 '16 at 10:02


















      • I know it is not so harmful to unplug it after unmounting as I can hear it spins down itself, but I'm looking for the right way! so I upvoted your answer but did not accept it :)
        – Masked Man
        Nov 1 '16 at 21:56












      • Thanks... The only solution is a firmware upgrade, as the "hardware" doesn't support it. Didn't look into your specific chipset, but looked into mine and there wasn't one, so I stopped looking after 6 months or so as it was a cheap one meant for backup anyway.
        – Fabby
        Nov 2 '16 at 6:57






      • 1




        I don't think it to be a firmware issue as it was neither Windows nor OSx couldn't safely remove it but they can! :)
        – Masked Man
        Nov 2 '16 at 7:45










      • @Fabby note that WD drives have internal parameters that you can tweak, using a WD tool that runs under Windows (see wd.com), and even hdparm in Ubuntu can get to some of them. As memory serves... some parameters had to do with idle time, spin up/down, power saving, etc.
        – heynnema
        Nov 3 '16 at 15:56










      • @heynnema Yup, I know, but I don;t have Windows and hdparam did not show that parameter... ;)
        – Fabby
        Nov 25 '16 at 10:02
















      I know it is not so harmful to unplug it after unmounting as I can hear it spins down itself, but I'm looking for the right way! so I upvoted your answer but did not accept it :)
      – Masked Man
      Nov 1 '16 at 21:56






      I know it is not so harmful to unplug it after unmounting as I can hear it spins down itself, but I'm looking for the right way! so I upvoted your answer but did not accept it :)
      – Masked Man
      Nov 1 '16 at 21:56














      Thanks... The only solution is a firmware upgrade, as the "hardware" doesn't support it. Didn't look into your specific chipset, but looked into mine and there wasn't one, so I stopped looking after 6 months or so as it was a cheap one meant for backup anyway.
      – Fabby
      Nov 2 '16 at 6:57




      Thanks... The only solution is a firmware upgrade, as the "hardware" doesn't support it. Didn't look into your specific chipset, but looked into mine and there wasn't one, so I stopped looking after 6 months or so as it was a cheap one meant for backup anyway.
      – Fabby
      Nov 2 '16 at 6:57




      1




      1




      I don't think it to be a firmware issue as it was neither Windows nor OSx couldn't safely remove it but they can! :)
      – Masked Man
      Nov 2 '16 at 7:45




      I don't think it to be a firmware issue as it was neither Windows nor OSx couldn't safely remove it but they can! :)
      – Masked Man
      Nov 2 '16 at 7:45












      @Fabby note that WD drives have internal parameters that you can tweak, using a WD tool that runs under Windows (see wd.com), and even hdparm in Ubuntu can get to some of them. As memory serves... some parameters had to do with idle time, spin up/down, power saving, etc.
      – heynnema
      Nov 3 '16 at 15:56




      @Fabby note that WD drives have internal parameters that you can tweak, using a WD tool that runs under Windows (see wd.com), and even hdparm in Ubuntu can get to some of them. As memory serves... some parameters had to do with idle time, spin up/down, power saving, etc.
      – heynnema
      Nov 3 '16 at 15:56












      @heynnema Yup, I know, but I don;t have Windows and hdparam did not show that parameter... ;)
      – Fabby
      Nov 25 '16 at 10:02




      @heynnema Yup, I know, but I don;t have Windows and hdparam did not show that parameter... ;)
      – Fabby
      Nov 25 '16 at 10:02













      0














      I had the same problem with a 1TB external Seagate hdd. Whenever I safely removed it or ejected it, it got unmounted and remounted within seconds.



      The first thing I did was to zero fill the entire hdd with the dd command, because it had some weird partitioning on its own.



      Then I created an MBR (msdos) partition table and a unique primary ntfs partition with parted.



      This solved the problem of the hdd being automatically remounted after being safely removed or ejected. Also, this keeps the hdd from mounting on its own when plugged to the pc/laptop (for some reason I do not understand).



      However, even in the unmounted state, the drive continued spinning. To completely shut it down before removing it from my pc/laptop, I do:



      sudo hdparm -Y /dev/sdb


      This works for me.






      share|improve this answer


























        0














        I had the same problem with a 1TB external Seagate hdd. Whenever I safely removed it or ejected it, it got unmounted and remounted within seconds.



        The first thing I did was to zero fill the entire hdd with the dd command, because it had some weird partitioning on its own.



        Then I created an MBR (msdos) partition table and a unique primary ntfs partition with parted.



        This solved the problem of the hdd being automatically remounted after being safely removed or ejected. Also, this keeps the hdd from mounting on its own when plugged to the pc/laptop (for some reason I do not understand).



        However, even in the unmounted state, the drive continued spinning. To completely shut it down before removing it from my pc/laptop, I do:



        sudo hdparm -Y /dev/sdb


        This works for me.






        share|improve this answer
























          0












          0








          0






          I had the same problem with a 1TB external Seagate hdd. Whenever I safely removed it or ejected it, it got unmounted and remounted within seconds.



          The first thing I did was to zero fill the entire hdd with the dd command, because it had some weird partitioning on its own.



          Then I created an MBR (msdos) partition table and a unique primary ntfs partition with parted.



          This solved the problem of the hdd being automatically remounted after being safely removed or ejected. Also, this keeps the hdd from mounting on its own when plugged to the pc/laptop (for some reason I do not understand).



          However, even in the unmounted state, the drive continued spinning. To completely shut it down before removing it from my pc/laptop, I do:



          sudo hdparm -Y /dev/sdb


          This works for me.






          share|improve this answer












          I had the same problem with a 1TB external Seagate hdd. Whenever I safely removed it or ejected it, it got unmounted and remounted within seconds.



          The first thing I did was to zero fill the entire hdd with the dd command, because it had some weird partitioning on its own.



          Then I created an MBR (msdos) partition table and a unique primary ntfs partition with parted.



          This solved the problem of the hdd being automatically remounted after being safely removed or ejected. Also, this keeps the hdd from mounting on its own when plugged to the pc/laptop (for some reason I do not understand).



          However, even in the unmounted state, the drive continued spinning. To completely shut it down before removing it from my pc/laptop, I do:



          sudo hdparm -Y /dev/sdb


          This works for me.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 21 '17 at 16:07









          MikeMike

          264




          264























              0














              Gnome-disk-utility has "power of this disk" option which I use to power off my external disks safely. Please check the image attached. I'm running Linux Mint 19.1 Tessa






              share|improve this answer


























                0














                Gnome-disk-utility has "power of this disk" option which I use to power off my external disks safely. Please check the image attached. I'm running Linux Mint 19.1 Tessa






                share|improve this answer
























                  0












                  0








                  0






                  Gnome-disk-utility has "power of this disk" option which I use to power off my external disks safely. Please check the image attached. I'm running Linux Mint 19.1 Tessa






                  share|improve this answer












                  Gnome-disk-utility has "power of this disk" option which I use to power off my external disks safely. Please check the image attached. I'm running Linux Mint 19.1 Tessa







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 25 '18 at 6:39









                  denideni

                  111




                  111






























                      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%2f844096%2fcan-not-safely-remove-external-hard-drive%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

                      Mouse cursor on multiple screens with different PPI

                      Agildo Ribeiro

                      Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”