tag:blogger.com,1999:blog-6586814948089606304.post2112595452900206707..comments2024-03-27T10:42:29.853+02:00Comments on DATAPUISTOKEMISTI: Headless Ubuntu 14.04 Server with full disk encryption, remote unlock, software RAID, LVM and EFI for over 2TB disk supportasiantuntijakaverihttp://www.blogger.com/profile/16838888075236759392noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6586814948089606304.post-59160070594967336042015-08-09T10:47:55.553+03:002015-08-09T10:47:55.553+03:00So, when you log into the busybox shell and run un...So, when you log into the busybox shell and run unlock, you're just trusting that the code on that partition has not been tampered with such that someone can't log your unlock phrase?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6586814948089606304.post-65527015047841091422015-02-11T02:00:06.762+02:002015-02-11T02:00:06.762+02:00just plain thank you.
saved me lots of Trouble and...just plain thank you.<br />saved me lots of Trouble and some royal pain in the back while Setting up some stubborn 1&1 dedicated Server.mrfreezerhttp://www.dahastdu.denoreply@blogger.comtag:blogger.com,1999:blog-6586814948089606304.post-8008122762980081002015-02-10T15:04:26.768+02:002015-02-10T15:04:26.768+02:00First off, thanks for this post. Very helpful!
Her...First off, thanks for this post. Very helpful!<br />Here's my version of "zzmdarraytryharder". I was getting a '/dev/md is a directory' error with your script. Basically it checks for inactive arrays and forcibly assembles them with all the disks that are listed for that array in /proc/mdstat.<br />I hope the codes doesn't get broken when posting it here:<br /><br /><br /><strong><br />#!/bin/sh<br />PREREQ=""<br />prereqs() {<br /> echo "$PREREQ"<br />}<br />case "$1" in<br /> prereqs)<br /> prereqs<br /> exit 0<br /> ;;<br />esac<br />. /scripts/functions<br /><br />sleep 10<br />echo "Looking for inactive arrays ..."<br />cat /proc/mdstat<br />echo ""<br />i=0;<br />for md in $(cat /proc/mdstat | grep inactive | cut -d\ -f1); do<br /> devs="$(cat /proc/mdstat | grep ^$md | cut -d\ -f5- | sed -e 's/\[[0-9]\]//g' -e 's/sd/\/dev\/sd/g')"<br /> echo "$md is inactive. Devices: $devs"<br /> echo "Stopping $md ..."<br /> mdadm --stop /dev/$md<br /> echo "Assembling $md ..."<br /> mdadm --assemble --force /dev/$md $devs || ( echo "Assembling $md (--force) ..."; mdadm --assemble --force /dev/$md $devs)<br /> echo ""<br /> i=$(( $i + 1 ))<br />done<br />echo ""<br />if [ $i -gt 0 ]; then<br /> echo "$i arrays were inactive."<br /> echo "/proc/mdstat is now:"<br /> cat /proc/mdstat<br /> sleep 5<br />else<br /> echo "All arrays seem to be active"<br />fi<br />echo ""<br /></strong>Anonymousnoreply@blogger.com