How to turn off hard drive in Ubuntu?

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








up vote
6
down vote

favorite
4












I am running Kubuntu from External Hard Drive. My Internal Hard Drive has Windows on it. I don't want to use it while on Ubuntu and want to turn it off to produce less heat as well consume lower battery. I think spinning down hard drive isn't an option for me. Because, it wear out the hard drive and I don't plan to spend on HDD's :)







share|improve this question




















  • There are similar questions already asked (and answered): askubuntu.com/questions/39760/…
    – Guilhem Soulas
    Sep 8 '15 at 11:01






  • 1




    man hdparm sudo hdparm -Y /dev/sdX
    – earthmeLon
    Sep 8 '15 at 21:08











  • @GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
    – AhmedBilal
    Sep 9 '15 at 7:42














up vote
6
down vote

favorite
4












I am running Kubuntu from External Hard Drive. My Internal Hard Drive has Windows on it. I don't want to use it while on Ubuntu and want to turn it off to produce less heat as well consume lower battery. I think spinning down hard drive isn't an option for me. Because, it wear out the hard drive and I don't plan to spend on HDD's :)







share|improve this question




















  • There are similar questions already asked (and answered): askubuntu.com/questions/39760/…
    – Guilhem Soulas
    Sep 8 '15 at 11:01






  • 1




    man hdparm sudo hdparm -Y /dev/sdX
    – earthmeLon
    Sep 8 '15 at 21:08











  • @GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
    – AhmedBilal
    Sep 9 '15 at 7:42












up vote
6
down vote

favorite
4









up vote
6
down vote

favorite
4






4





I am running Kubuntu from External Hard Drive. My Internal Hard Drive has Windows on it. I don't want to use it while on Ubuntu and want to turn it off to produce less heat as well consume lower battery. I think spinning down hard drive isn't an option for me. Because, it wear out the hard drive and I don't plan to spend on HDD's :)







share|improve this question












I am running Kubuntu from External Hard Drive. My Internal Hard Drive has Windows on it. I don't want to use it while on Ubuntu and want to turn it off to produce less heat as well consume lower battery. I think spinning down hard drive isn't an option for me. Because, it wear out the hard drive and I don't plan to spend on HDD's :)









share|improve this question











share|improve this question




share|improve this question










asked Sep 8 '15 at 10:49









AhmedBilal

1772411




1772411











  • There are similar questions already asked (and answered): askubuntu.com/questions/39760/…
    – Guilhem Soulas
    Sep 8 '15 at 11:01






  • 1




    man hdparm sudo hdparm -Y /dev/sdX
    – earthmeLon
    Sep 8 '15 at 21:08











  • @GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
    – AhmedBilal
    Sep 9 '15 at 7:42
















  • There are similar questions already asked (and answered): askubuntu.com/questions/39760/…
    – Guilhem Soulas
    Sep 8 '15 at 11:01






  • 1




    man hdparm sudo hdparm -Y /dev/sdX
    – earthmeLon
    Sep 8 '15 at 21:08











  • @GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
    – AhmedBilal
    Sep 9 '15 at 7:42















There are similar questions already asked (and answered): askubuntu.com/questions/39760/…
– Guilhem Soulas
Sep 8 '15 at 11:01




There are similar questions already asked (and answered): askubuntu.com/questions/39760/…
– Guilhem Soulas
Sep 8 '15 at 11:01




1




1




man hdparm sudo hdparm -Y /dev/sdX
– earthmeLon
Sep 8 '15 at 21:08





man hdparm sudo hdparm -Y /dev/sdX
– earthmeLon
Sep 8 '15 at 21:08













@GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
– AhmedBilal
Sep 9 '15 at 7:42




@GuilhemSoulas My question is not about spinning down hard drive. Mine is how to turn off hard drive.
– AhmedBilal
Sep 9 '15 at 7:42










2 Answers
2






active

oldest

votes

















up vote
9
down vote



accepted










sudo hdparm -Y /dev/sdX


where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably control which device is being turned off.



In this case, you'd run:



sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE



man hdparm



 -Y Force an IDE drive to immediately enter the lowest power
consumption sleep mode, causing it to shut down completely. A
hard or soft reset is required before the drive can be accessed
again (the Linux IDE driver will automatically handle issuing a
reset if/when needed). The current power mode status can be
checked using the -C option.





share|improve this answer





























    up vote
    0
    down vote













    You can use the following (here sdc is the name of corresponding block device of interest):



    sync
    echo 1 > /sys/block/sdc/device/delete





    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',
      convertImagesToLinks: true,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      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%2faskubuntu.com%2fquestions%2f671683%2fhow-to-turn-off-hard-drive-in-ubuntu%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
      9
      down vote



      accepted










      sudo hdparm -Y /dev/sdX


      where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably control which device is being turned off.



      In this case, you'd run:



      sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE



      man hdparm



       -Y Force an IDE drive to immediately enter the lowest power
      consumption sleep mode, causing it to shut down completely. A
      hard or soft reset is required before the drive can be accessed
      again (the Linux IDE driver will automatically handle issuing a
      reset if/when needed). The current power mode status can be
      checked using the -C option.





      share|improve this answer


























        up vote
        9
        down vote



        accepted










        sudo hdparm -Y /dev/sdX


        where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably control which device is being turned off.



        In this case, you'd run:



        sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE



        man hdparm



         -Y Force an IDE drive to immediately enter the lowest power
        consumption sleep mode, causing it to shut down completely. A
        hard or soft reset is required before the drive can be accessed
        again (the Linux IDE driver will automatically handle issuing a
        reset if/when needed). The current power mode status can be
        checked using the -C option.





        share|improve this answer
























          up vote
          9
          down vote



          accepted







          up vote
          9
          down vote



          accepted






          sudo hdparm -Y /dev/sdX


          where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably control which device is being turned off.



          In this case, you'd run:



          sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE



          man hdparm



           -Y Force an IDE drive to immediately enter the lowest power
          consumption sleep mode, causing it to shut down completely. A
          hard or soft reset is required before the drive can be accessed
          again (the Linux IDE driver will automatically handle issuing a
          reset if/when needed). The current power mode status can be
          checked using the -C option.





          share|improve this answer














          sudo hdparm -Y /dev/sdX


          where /dev/sdX is the device you'd like to turn off. You can also run sudo blkid to determine the device's 'fingerprint' (UUID), which would allow you to more reliably control which device is being turned off.



          In this case, you'd run:



          sudo hdparm -Y /dev/disk/by-uuid/DEVICE-IDENT-HERE



          man hdparm



           -Y Force an IDE drive to immediately enter the lowest power
          consumption sleep mode, causing it to shut down completely. A
          hard or soft reset is required before the drive can be accessed
          again (the Linux IDE driver will automatically handle issuing a
          reset if/when needed). The current power mode status can be
          checked using the -C option.






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 20 '17 at 7:53









          muru

          129k19272462




          129k19272462










          answered Sep 8 '15 at 21:12









          earthmeLon

          5,8431547




          5,8431547






















              up vote
              0
              down vote













              You can use the following (here sdc is the name of corresponding block device of interest):



              sync
              echo 1 > /sys/block/sdc/device/delete





              share|improve this answer
























                up vote
                0
                down vote













                You can use the following (here sdc is the name of corresponding block device of interest):



                sync
                echo 1 > /sys/block/sdc/device/delete





                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  You can use the following (here sdc is the name of corresponding block device of interest):



                  sync
                  echo 1 > /sys/block/sdc/device/delete





                  share|improve this answer












                  You can use the following (here sdc is the name of corresponding block device of interest):



                  sync
                  echo 1 > /sys/block/sdc/device/delete






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 20 '17 at 7:35









                  Orient

                  199111




                  199111



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f671683%2fhow-to-turn-off-hard-drive-in-ubuntu%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                      Trouble downloading packages list due to a “Hash sum mismatch” error

                      How do I move numbers in filenames, in a batch renaming operation?