====== Linux - notes, cheatsheets and stuff ======
My current linux of choice is [[http://www.gentoo.org|Gentoo]].
===== Notes =====
==== Resurrect GRUB ====
Resurrection of GRUB after Windows installation on another partition: http://zerolab.org/blog/ubuntu/restore-grub-after-windows-install/
# grub
grub> find /boot/grub/stage1
(hd0,0)
grub> root (hd0,0)
grub> setup (hd0)
To run GRUB console I had to boot Gentoo Minimal LiveCD, mount and chroot according to [[http://www.gentoo.org/doc/en/handbook/index.xml|Handbook]].
==== Create dummy file ====
For one very funny bug featuring Windows, old Paradox database and disk free space being dividable by 8 GB, I needed dummy file to manipulate the free space. (bzips to some 785 bytes; [[http://www.computing.net/answers/linux/creating-empty-file/28300.html|source]])
dd if=/dev/zero bs=1M count=1024 | bzip2 -c > dummy.bz2