![]() The box starts booting, it checks the fs, no errors found, it continues and hangs at starting mysqld. I suspect a failing disk so I use tune2fs -C 50 /dev/hda1 to force an e2fck on boot and I reboot the machine. Nothing…it hangs while trying to get it started. ![]() ![]() I can’t see it running on ps so I try starting it via the init.d script. I shut apache2 down via /etc/init.d/apache2 stop. I log in as root, I do a ps ax and the first thing I notice is apache having more than 50 threads running. You can call it a LAMP machine with a neglected CMS which is also running as a mailserver… It’s a debian oldstable (etch) that runs apache2 with xoops CMS + zencart (version unknown), postfix, courier-imap(s)/pop3(s), bind9 and mysqld. – Can I drink my coffee and come over later to check it ? Is it critical ?Īround 14:00 I go over to his company to check on the box. – On machine XXX mysqld is not starting since Saturday. It’s monday morning and I am for coffee in downtown Thessaloniki, a partner calls: Tags: aes, debian, Encryption, gpg, Linux, loop, loop-aes Secure your keyfile.gpg, if it gets lost you won’t _ever_ be able to decrypt what was inside crypto-loop.img!įiled by kargig at 20:59 under Encryption, Linux home/username/crypto-loop.img /mnt/crypt-loop ext2 defaults,noauto,user,loop=/dev/loop7,encryption=AES256,gpgkey=/path/to/keyfile.gpg 0 0 ![]() ![]() # losetup -K /path/to/keyfile.gpg -e AES256 /dev/loop5 /home/username/crypto-loop.img # dd if=/dev/urandom of=/my-encrypted-loop.aes bs=1k count=10000 # head -c 2925 /dev/urandom | uuencode -m - | head -n 66 | tail -n 65| gpg -symmetric -a >/path/to/keyfile.gpg Create the keyfile (keep your computer as busy as possible while doing this to increase entropy) The necessary utilities (patched losetup) Fast howto (mostly a note for personal use) on what’s needed on Debian to use an encrypted loop:ġ. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |