Table of Contents

Linux - notes, cheatsheets and stuff

My current linux of choice is 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 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; source)

dd if=/dev/zero bs=1M count=1024 | bzip2 -c > dummy.bz2