Monthly Archives: December 2012

Grub with virtio disk

When coding around with the pentoo-installer in virtual machines, grub simply refused to detect the virtual device mounted on /dev/vda. The solution was in this article: # grub > device (hd0) /dev/vda > root (hd0,0) > setup (hd0) > quit Also put this in /boot/grub/ (hd0) /dev/vda Advertisements

Gentoo : Autoconfigure number of CPU in make.conf

Ever wanted a script that just adapts make.conf to number of cpu cores. Well, here’s my script, surely improvable but maybe useful. It will count the number of cpu nodes. Then make.conf gets backuped and edited accordingly. Example: We have 8 cpu cores, so anything like: MAKEOPTS=”-j2 MAKEOPTS=”-j2 -l1“ MAKEOPTS=”${MAKEOPTS} -j5 -l3.85“ EMERGE_DEFAULT_OPTS=”${EMERGE_DEFAULT_OPTS} -j4 –load-average=3.75“ […]