Linux - notes, cheatsheets and stuff

My current linux of choice is Gentoo.


Resurrect GRUB

Resurrection of GRUB after Windows installation on another partition:

# grub
grub> find /boot/grub/stage1
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
linux.txt · Last modified: 2009/06/30 17:08 by funtom
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki