farco Posted April 11, 2021 Share Posted April 11, 2021 Moin, Ich hab meine Festplatten alle verschlüsselt und jetzt ist mir aufgefallen das Ich bei jedem Start das Passwort eingeben muss um das Array zu Starten. Geht das nicht irgendwie Automatisch? Ja ich weiß das dann weniger sicher aber trotzdem ist es extrem nervig. Quote Link to comment
farco Posted April 11, 2021 Author Share Posted April 11, 2021 (edited) Funktioniert nicht richtig, ab Version gibt es die Keyfile Datei nicht mehr, also hab ich eine selbstgemacht und diese auf one drive gepackt und diese wird mit wget downgeloadet und nach /root/keyfile kopiert . Nach einem Neustart liegt die Datei auch in root/keyfile aber das array wird nicht gestartet "der key ist wohl falsch" wenn ich mir aber mit Nano diese Datei anschaue steht da exakt nur mein Key drin, wenn ich dann händisch unter main die Datei angebe und genau die Datei aus meinem One Drive nehme klappt es. Hat vielleicht jemand eine Idee? So jetzt der "funny" part. Ich hab die Datei aus meinem Onedrive genommen auf den Stick vom Unraid kopiert und dann per go file in den /root/keyfile kopiert. Dann klappt es aber die Datei mit Nano schaut genauso aus. hier noch der log (wenn es per wget geholt wird): Apr 11 22:30:16 SchackSchack emhttpd: shcmd (22): /usr/sbin/cryptsetup luksOpen /dev/md1 md1 --allow-discards --key-file=/root/keyfile Apr 11 22:30:16 SchackSchack kernel: device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: [email protected] Apr 11 22:30:18 SchackSchack root: No key available with this passphrase. Apr 11 22:30:18 SchackSchack emhttpd: shcmd (22): exit status: 2 Apr 11 22:30:18 SchackSchack emhttpd: shcmd (24): /usr/sbin/cryptsetup luksOpen /dev/md2 md2 --allow-discards --key-file=/root/keyfile Apr 11 22:30:20 SchackSchack root: No key available with this passphrase. Apr 11 22:30:20 SchackSchack emhttpd: shcmd (24): exit status: 2 Apr 11 22:30:20 SchackSchack emhttpd: shcmd (26): /usr/sbin/cryptsetup luksOpen /dev/md3 md3 --allow-discards --key-file=/root/keyfile Apr 11 22:30:22 SchackSchack root: No key available with this passphrase. Apr 11 22:30:22 SchackSchack emhttpd: shcmd (26): exit status: 2 Apr 11 22:30:22 SchackSchack emhttpd: shcmd (28): /usr/sbin/cryptsetup luksOpen /dev/nvme0n1p1 nvme0n1p1 --allow-discards --key-file=/root/keyfile Apr 11 22:30:23 SchackSchack root: No key available with this passphrase. Apr 11 22:30:23 SchackSchack emhttpd: shcmd (28): exit status: 2 Apr 11 22:30:23 SchackSchack emhttpd: Wrong encryption key Edited April 11, 2021 by farco Quote Link to comment
Ford Prefect Posted April 11, 2021 Share Posted April 11, 2021 ...lass mal nano stecken....welche Zeichen sind noch drin, zB CR/LF? Mach mal ein "cat -vet /root/keyfile" Quote Link to comment
mgutt Posted April 11, 2021 Share Posted April 11, 2021 Stimmen die Rechte der Datei? Vielleicht gibt es keine Leserechte? 1 Quote Link to comment
farco Posted April 17, 2021 Author Share Posted April 17, 2021 Moin, sorry das Ich mich erst so spät wieder zurückmelde. Ich will aber noch "meine Lösung schreiben". Es lag wohl wie @mgutt vermutet hatte an den Rechten. Wenn die Datei aus dem OneDrive geladen wurde fehlten die Leserechte. Ich habe diese dann angepasst und jetzt "stimmen" diese auch nach jedem Reboot und das Array wird gestartet. Danke nochmals für den Hinweis. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.