Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mount does not work for LUKS partitions #26

Open
carlos22 opened this issue Mar 5, 2018 · 6 comments
Open

mount does not work for LUKS partitions #26

carlos22 opened this issue Mar 5, 2018 · 6 comments

Comments

@carlos22
Copy link

carlos22 commented Mar 5, 2018

If the root is crypted, then the "mount exsisting" should call cryptsetup luksOpen /dev/<id> root and then mount /dev/mapper/root /mnt. This is useful if you run the archfi multiple times (e.g. if you forgot something). Great script 👍

@MatMoul
Copy link
Owner

MatMoul commented Mar 6, 2018

You'r right, archfi is made to be launched multiple time and crypted partition is not handled on second mount.
At this time, you can mount your partition manualy with a second TTY.
I don't have tested how I can detect a crypted part, I'll try to find a solution.

@carlos22
Copy link
Author

carlos22 commented Mar 7, 2018

I think the parition type is "e8" LUKS (see: e8 https://www.win.tue.nl/~aeb/partitions/partition_types-1.html).

Easy method to find out (as root):

$ blkid -o value -s TYPE /dev/sda4
crypto_LUKS

@MatMoul
Copy link
Owner

MatMoul commented Mar 7, 2018

Thanks for the tricks... I'll try to add it to the script

@MatMoul
Copy link
Owner

MatMoul commented Jan 1, 2019

Sorry for the late response to this request ...
I made a lot of changes on archfi which prepares the possibility to manage the detection of luks ...

@MatMoul MatMoul removed the question label Jan 1, 2019
@TheLinuxNinja
Copy link
Contributor

Is this something you need me to work on? When exiting archfi, any luksOpen commands that were run should be followed up with a luksClose to be able to leave a clean slate for the next archfi run.

@MatMoul
Copy link
Owner

MatMoul commented Jun 8, 2019

@TheLinuxNinja You're right, on install when you reboot, it isn't a problem but if you use it on an existing system, this can be a problem...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants