Git Product home page Git Product logo

Comments (2)

r0m30 avatar r0m30 commented on August 17, 2024

Hi,

It looks like you are having an Alignment Granularity issue. If you look at the output of a query command you will see the locking range alignment requirements. The Crucial drives I have tested are usually Alignment granularity 8, so you need to define your locking ranges on 8 block boundaries (start AND end).

The setuplockingrange command is startblock, number of blocks. This means that to protect blocks 0-2047 you would need to use startblock 0 and number of blocks 2048, this would also probably fix your alignment issue.

The PBA only unlocks the global range (0), if you want to protect the mbr and partition table, I would recommend that you use the readonlyLockingRange command it has the same syntax as the setupLockingRange but only activates write locking. Then the mbr and partition table will be readable but not writable until you manually unlock the range. If you do use this method then you want to make sure you unlock the range before you proceed with an OS install and do not power cycle the drive until you have finished the disk configuration.

from sedutil.

Tokodomo avatar Tokodomo commented on August 17, 2024

Thank you so much. It's working now!

I had simply misunderstood the setuplockingrange command. It is indeed startblock, number of blocks and NOT startblock, endblock (like in most apps out there).
So, startblock 0 and number of blocks 2048 works with my Crucial boot drive (Alignment granularity 8).

An enhanced Wiki section about locking ranges and user management would be much appreciated.

For the record, booting Rescue.img:
sedutil-cli --reverttper password /dev/sda
sedutil-cli --initialsetup password /dev/sda
sedutil-cli --setupLockingRange 1 0 2048 password /dev/sda
sedutil-cli --loadPBAimage password pbafilename /dev/sda
sedutil-cli --setMBREnable on password /dev/sda
sedutil-cli --enableLockingRange 0 password /dev/sda
sedutil-cli --readonlyLockingRange 1 password /dev/sda

Power off the computer to lock the drive.

Power the computer on. The PBA ask for the password and unlocks the global range (LR0) if password is right.

LR1 (blocks 0-2047) is still write protected (read only), booting Rescue.img:
sedutil-cli --setLockingRange 1 rw password /dev/sda

Proceed with all OS installs.

Power off the computer to lock the drive OR booting Rescue.img:
sedutil-cli --setLockingRange 1 ro password /dev/sda

Great stuff. :-)

from sedutil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.