Results 1 to 2 of 2

Thread: How Safe is Hdparm Drive Locking?

  1. #1
    Join Date
    Jul 2011
    Beans
    70

    How Safe is Hdparm Drive Locking?

    I discovered the hdparm drive locking feature on my WD drives. I can enable a password by using the following command:
    Code:
    hdparm --user-master u --security-set-pass (your-password-here) /dev/sdx
    (replace sdx with your drive letter).
    When this is enabled, if you turn off your computer, you cannot load your drives. If anything they can be appear 'dead'. To unlock them, you have to run:
    Code:
    hdparm --security-unlock (YOUR PASSWORD HERE) /dev/sdx
    and in order to permanently unlock them, you have to run that command before running:
    Code:
    hdparm --security-disable (YOUR PASSWORD HERE) /dev/sdx
    I would like to know how 'safe' this is, considering that I have not encrypted the data. It's likely to prevent average-joe from accessing your data if he steals your machine, but would it be able to prevent a private security agency if they were not unable to brute force your password?

    Regards,
    Stu

  2. #2
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How Safe is Hdparm Drive Locking?

    If the password is stored in the firmware of the drive, then one could presumably take the platters out of one tray and place them in another to read the data. If the password is stored on the drive, then presumably one could hack the firmware of the drive to ignore it. So one would have to assume that without physical security, your data is at a small risk with a simple password.

    A much bigger risk, in my opinion, is simple use of the computer while connected to the internet. A keylogger would simply capture your hdparm commands, including a hard disk password, which defeats the purpose of this type of security.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •