GithubHelp home page GithubHelp logo

Comments (11)

mheppner avatar mheppner commented on May 30, 2024 1

@Rodgers13 I had this issue too, on Debian 11. mount was failing for the partition containing the key file, with an error message of "device does not exist."

I found this unlock-root.sh script. Instead of adding a filesystem and mounting it on boot, the keyfile is written directly to the first partition. The script just uses dd to read in the raw disk content.

Also, a big thank you to mevdschee for this repo and the very well-written blog post, I found it to be very helpful 🥇


# find your USB stick in /dev/disk/by-id/usb-*
export $KEY=/dev/disk/by-id/usb-THE-DEVICE-YOU-WANT-TO-USE-part1

# write the keyfile contents to the first partition
dd if=keyfile-you-created.lek of=$KEY bs=1 count=256

# use the script above, fill out $KEY and set $LEN=256

from bitlocker-luks-tools.

palemium avatar palemium commented on May 30, 2024 1

@mevdschee Hi, I am not sure if It's related but I was following https://tqdev.com/2022-luks-with-usb-unlock to set it up on debian 11. And I had to add usb_storage to /etc/initramfs-tools/modules to fix the issue with loading. I use non gui version - maybe that was the reason it did not work out of box. Thanks for the article!

from bitlocker-luks-tools.

palemium avatar palemium commented on May 30, 2024 1

@mevdschee yes, I saw it - I thought open Ubuntu issue can be related since it is based on Debian. The article works for me (Debian 11, no GUI) when this single line in modules file was added.

BTW, I saw similar continuous loop when I was trying to debug the script and added additional echo statements. Probably, these symptoms mean some copy-paste error in the script.

from bitlocker-luks-tools.

mevdschee avatar mevdschee commented on May 30, 2024

Hi Rodgers13, I'm sorry to hear that. I haven't tested on Ubuntu 22.04 yet, but I sure will (and update this issue). I don't expect it to be a hardware issue, as the solution is quite generic. Kind regards, Maurits

from bitlocker-luks-tools.

mevdschee avatar mevdschee commented on May 30, 2024

I'll review the installation instructions and scripts for 22.04 .. just downloaded mint xfce 21 and ubuntu 22.04.1.. I'll let you know.

from bitlocker-luks-tools.

mevdschee avatar mevdschee commented on May 30, 2024

I installed the script and it works flawless on Mint XFCE 21 (ubuntu 22.04 based). I'll try normal Ubuntu 22.04 now..

from bitlocker-luks-tools.

mevdschee avatar mevdschee commented on May 30, 2024

I've checked Ubuntu 22.04 (desktop) and it works without modification as well.

from bitlocker-luks-tools.

mevdschee avatar mevdschee commented on May 30, 2024

Is there and issue with 22.04 that you might be aware of? Could it be a hardware problem?

@Rodgers13 I've tested with a clean install (in a vm) and can't reproduce the problem you have, can you help me reproduce?

Kind regards, Maurits

from bitlocker-luks-tools.

mevdschee avatar mevdschee commented on May 30, 2024

@palemium, thank you, I updated the article, did you see #2?

from bitlocker-luks-tools.

mevdschee avatar mevdschee commented on May 30, 2024

and added additional echo statements

Yes, you can't add echo statements, but that is different issue (due to input/output redirection).

Probably, these symptoms mean some copy-paste error in the script.

Maybe indeed that is what went wrong for @Rodgers13, thank you for suggesting this.

from bitlocker-luks-tools.

mevdschee avatar mevdschee commented on May 30, 2024

Closing this issue as the instructions seem to work for both Ubuntu 22.04 and Debian 11

from bitlocker-luks-tools.

Related Issues (3)

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.