Profile cover photo
Profile photo
Maciej Korzeń
About
Maciej's posts

Post has attachment
Soma FM Internet radio station and it's Groove Salad channel. The best one that I've found to listen during work. :-)

Post has attachment
NSA operation ORCHESTRA: Annual Status Report
Poul-Henning Kamp's presentation.
It looks like encryption is weak and broken by design.

Post has attachment

Post has attachment
Dużo ciekawych spostrzeżeń związanych mniej lub bardziej z programowaniem i IT.

Post has attachment
Polecam książkę "Guns, Germs, and Steel" Jareda Diamonda (http://en.wikipedia.org/wiki/Guns,_Germs,_and_Steel). To powinna być podstawowa lektura na zajęciach z historii w szkole. Ciężko jest opisać ją jednym zdaniem, bo opisuje masę zagadnień. M.in. próbuje wyjaśnić dlaczego jedne narody w toku historii ludzkości poradziły sobie lepiej niż inne.
I jeszcze równie ciekawa prezentacja Wojciecha Kuśmierka z +Osec Barcamp  z której dowiedziałem się o tej książce: https://www.youtube.com/watch?v=uapvOL-XSyQ.

Post has attachment
I problem z brakiem synchronizacji schowka pomiędzy Linuksem na laptopie a Windowsem do którego łączę się przez rdesktop został rozwiązany. Trzeba zabić na Windowsie proces rdpclip.exe i uruchomić go ponownie. :-]

Post has shared content

For a second time I had a #problem with #Dracut on #CentOS /#RHEL 6. After installation of a new kernel (or even simple initrd rebuild) system won't boot. Kernel is not able to find boot device.
It's because dracut does not add required storage drivers to initrd.
So before rebooting with new kernel (and new initrd), run following command to build initrd that includes all currently loaded modules:

# dracut -d "lsmod | tail -n +2 | awk '{ print $1; }' | tr '\n' ' '" --force /boot/initramfs-KERNEL_VERSION.img KERNEL_VERSION

Downside of this solution is that you will have big initrd with modules that are not required to start the system. But it is quick fix and it works. :-) In my case initrd was bigger about 2MB comparing to initrd generated with dracut without the "-d ..." argument.

If you have rebooted your system without prior generating good initrd then boot it from live/rescue CD. Use RedHat/CentOS live/rescue system, not Debian/Ubuntu/etc. based. I assume that your unbootable system is located at /dev/sdb1. Follow this procedure:
1) mkdir /mnt/sdb1
2) for i in proc sys dev dev/pts dev/shm; do mount -B /$i /mnt/sdb1/$i
3) chroot /mnt/sdb1 /bin/bash
4) Download and run following script to regenerate initrd's for all installed kernels: https://gist.github.com/maciejkorzen/5585739. 4a) Download and run it automatically:
cd /tmp
curl -O 'https://gist.github.com/maciejkorzen/5585739/raw/f2043b2c5b29a16c90829eea75b92a35a50b9757/dracut-regenerate.sh'
chmod 700 dracut-regenerate.sh
./dracut-regenerate.sh
4b) Or run all commands by hand (if you don't trust scripts downloaded from the Internet ;-)):
mymodules=$(lsmod | tail -n +2 | awk '{ print $1; }' | tr '\n' ' ')
cd /lib/modules
for i in *; do echo "[i] $i"; dracut d "$mymodules" --force /boot/initramfs${i}.img $i; done
5) Exit from chroot:
exit
6) cd /; mount | fgrep /mnt/sdb1 | awk '{ print $3; }' | tac | xargs umount

Post has attachment

Post has attachment
Wait while more posts are being loaded