Set a password for external hard disk without format it











up vote
0
down vote

favorite












My external hard disk is 1TB in size and nearly 900GB data on it. I want to set up a password without format it. Is it possible?
file format is ext4.










share|improve this question







New contributor




Leckose is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote

    favorite












    My external hard disk is 1TB in size and nearly 900GB data on it. I want to set up a password without format it. Is it possible?
    file format is ext4.










    share|improve this question







    New contributor




    Leckose is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      My external hard disk is 1TB in size and nearly 900GB data on it. I want to set up a password without format it. Is it possible?
      file format is ext4.










      share|improve this question







      New contributor




      Leckose is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      My external hard disk is 1TB in size and nearly 900GB data on it. I want to set up a password without format it. Is it possible?
      file format is ext4.







      hard-drive password format ext4






      share|improve this question







      New contributor




      Leckose is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Leckose is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Leckose is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 18 at 6:03









      Leckose

      1




      1




      New contributor




      Leckose is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Leckose is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Leckose is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          Yes that's possible.



          That's called ATA password. You can either set it through your EFI/BIOS firmware, if it allows you to do so. Or you can use hdparm to set such a password.



          I would recommend to use your EFI firmware if applicable because hdparm comes with a lot of warning that it can brik your disk. That's kind of scary, even it is unlikely to happen. That are just cautious and warn you of the worst.



          So if you want to use hdparm, it's something like:



          sudo hdparm --user-master u --security-set-passwd "Secret" /dev/sdx


          That is to set a user password 'Secret'. This will let the master password as set by the manufacturer (and let anyone knowing it unlock the drive).



          You can eventually also set a master password. But read documentation before to know the consequences.



          A good read is this admin-magazine.com article



          Note: if the drive with the ATA password is plugged-in while booting, your EFI firmware should ask you for that password. If you plugged it in after booting, I don't know how it is dealt with by ubuntu, but you might have to unlock the drive by issuing another hdparm command from a terminal, like



          sudo hdparm --security-unlock 'Secret' --user-master u /dev/sdx


          if we use the same variable in our previous example.



          Another possibility is to use ext4 built-in encryption, but it only encrypts per directory. Meaning, if you have multiple top directory on your HDD, you will need a password for each directory, unless you move them under the same top root directory. More instruction in the archlinux wiki on how to enable ext4 encryption. This works on new files, so you will have to move all your data to the new encrpyted directory, just to encrypt them.






          share|improve this answer























          • @Leckose If you think this is the answer, please mark it as the accepted answer by ticking the mark. thanks.
            – solsTiCe
            yesterday











          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: 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
          });


          }
          });






          Leckose is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093897%2fset-a-password-for-external-hard-disk-without-format-it%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








          up vote
          2
          down vote













          Yes that's possible.



          That's called ATA password. You can either set it through your EFI/BIOS firmware, if it allows you to do so. Or you can use hdparm to set such a password.



          I would recommend to use your EFI firmware if applicable because hdparm comes with a lot of warning that it can brik your disk. That's kind of scary, even it is unlikely to happen. That are just cautious and warn you of the worst.



          So if you want to use hdparm, it's something like:



          sudo hdparm --user-master u --security-set-passwd "Secret" /dev/sdx


          That is to set a user password 'Secret'. This will let the master password as set by the manufacturer (and let anyone knowing it unlock the drive).



          You can eventually also set a master password. But read documentation before to know the consequences.



          A good read is this admin-magazine.com article



          Note: if the drive with the ATA password is plugged-in while booting, your EFI firmware should ask you for that password. If you plugged it in after booting, I don't know how it is dealt with by ubuntu, but you might have to unlock the drive by issuing another hdparm command from a terminal, like



          sudo hdparm --security-unlock 'Secret' --user-master u /dev/sdx


          if we use the same variable in our previous example.



          Another possibility is to use ext4 built-in encryption, but it only encrypts per directory. Meaning, if you have multiple top directory on your HDD, you will need a password for each directory, unless you move them under the same top root directory. More instruction in the archlinux wiki on how to enable ext4 encryption. This works on new files, so you will have to move all your data to the new encrpyted directory, just to encrypt them.






          share|improve this answer























          • @Leckose If you think this is the answer, please mark it as the accepted answer by ticking the mark. thanks.
            – solsTiCe
            yesterday















          up vote
          2
          down vote













          Yes that's possible.



          That's called ATA password. You can either set it through your EFI/BIOS firmware, if it allows you to do so. Or you can use hdparm to set such a password.



          I would recommend to use your EFI firmware if applicable because hdparm comes with a lot of warning that it can brik your disk. That's kind of scary, even it is unlikely to happen. That are just cautious and warn you of the worst.



          So if you want to use hdparm, it's something like:



          sudo hdparm --user-master u --security-set-passwd "Secret" /dev/sdx


          That is to set a user password 'Secret'. This will let the master password as set by the manufacturer (and let anyone knowing it unlock the drive).



          You can eventually also set a master password. But read documentation before to know the consequences.



          A good read is this admin-magazine.com article



          Note: if the drive with the ATA password is plugged-in while booting, your EFI firmware should ask you for that password. If you plugged it in after booting, I don't know how it is dealt with by ubuntu, but you might have to unlock the drive by issuing another hdparm command from a terminal, like



          sudo hdparm --security-unlock 'Secret' --user-master u /dev/sdx


          if we use the same variable in our previous example.



          Another possibility is to use ext4 built-in encryption, but it only encrypts per directory. Meaning, if you have multiple top directory on your HDD, you will need a password for each directory, unless you move them under the same top root directory. More instruction in the archlinux wiki on how to enable ext4 encryption. This works on new files, so you will have to move all your data to the new encrpyted directory, just to encrypt them.






          share|improve this answer























          • @Leckose If you think this is the answer, please mark it as the accepted answer by ticking the mark. thanks.
            – solsTiCe
            yesterday













          up vote
          2
          down vote










          up vote
          2
          down vote









          Yes that's possible.



          That's called ATA password. You can either set it through your EFI/BIOS firmware, if it allows you to do so. Or you can use hdparm to set such a password.



          I would recommend to use your EFI firmware if applicable because hdparm comes with a lot of warning that it can brik your disk. That's kind of scary, even it is unlikely to happen. That are just cautious and warn you of the worst.



          So if you want to use hdparm, it's something like:



          sudo hdparm --user-master u --security-set-passwd "Secret" /dev/sdx


          That is to set a user password 'Secret'. This will let the master password as set by the manufacturer (and let anyone knowing it unlock the drive).



          You can eventually also set a master password. But read documentation before to know the consequences.



          A good read is this admin-magazine.com article



          Note: if the drive with the ATA password is plugged-in while booting, your EFI firmware should ask you for that password. If you plugged it in after booting, I don't know how it is dealt with by ubuntu, but you might have to unlock the drive by issuing another hdparm command from a terminal, like



          sudo hdparm --security-unlock 'Secret' --user-master u /dev/sdx


          if we use the same variable in our previous example.



          Another possibility is to use ext4 built-in encryption, but it only encrypts per directory. Meaning, if you have multiple top directory on your HDD, you will need a password for each directory, unless you move them under the same top root directory. More instruction in the archlinux wiki on how to enable ext4 encryption. This works on new files, so you will have to move all your data to the new encrpyted directory, just to encrypt them.






          share|improve this answer














          Yes that's possible.



          That's called ATA password. You can either set it through your EFI/BIOS firmware, if it allows you to do so. Or you can use hdparm to set such a password.



          I would recommend to use your EFI firmware if applicable because hdparm comes with a lot of warning that it can brik your disk. That's kind of scary, even it is unlikely to happen. That are just cautious and warn you of the worst.



          So if you want to use hdparm, it's something like:



          sudo hdparm --user-master u --security-set-passwd "Secret" /dev/sdx


          That is to set a user password 'Secret'. This will let the master password as set by the manufacturer (and let anyone knowing it unlock the drive).



          You can eventually also set a master password. But read documentation before to know the consequences.



          A good read is this admin-magazine.com article



          Note: if the drive with the ATA password is plugged-in while booting, your EFI firmware should ask you for that password. If you plugged it in after booting, I don't know how it is dealt with by ubuntu, but you might have to unlock the drive by issuing another hdparm command from a terminal, like



          sudo hdparm --security-unlock 'Secret' --user-master u /dev/sdx


          if we use the same variable in our previous example.



          Another possibility is to use ext4 built-in encryption, but it only encrypts per directory. Meaning, if you have multiple top directory on your HDD, you will need a password for each directory, unless you move them under the same top root directory. More instruction in the archlinux wiki on how to enable ext4 encryption. This works on new files, so you will have to move all your data to the new encrpyted directory, just to encrypt them.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 days ago

























          answered 2 days ago









          solsTiCe

          5,12721845




          5,12721845












          • @Leckose If you think this is the answer, please mark it as the accepted answer by ticking the mark. thanks.
            – solsTiCe
            yesterday


















          • @Leckose If you think this is the answer, please mark it as the accepted answer by ticking the mark. thanks.
            – solsTiCe
            yesterday
















          @Leckose If you think this is the answer, please mark it as the accepted answer by ticking the mark. thanks.
          – solsTiCe
          yesterday




          @Leckose If you think this is the answer, please mark it as the accepted answer by ticking the mark. thanks.
          – solsTiCe
          yesterday










          Leckose is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          Leckose is a new contributor. Be nice, and check out our Code of Conduct.













          Leckose is a new contributor. Be nice, and check out our Code of Conduct.












          Leckose is a new contributor. Be nice, and check out our Code of Conduct.















           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093897%2fset-a-password-for-external-hard-disk-without-format-it%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

          數位音樂下載

          When can things happen in Etherscan, such as the picture below?

          格利澤436b