Friday, September 23, 2005

Paragliding from Nebelhorn to Obermaiselstein, Allgäu, Germany

Monday, September 05, 2005

Adding a swap partition to my Debian or Knoppix saved me again

I have a dual boot setup with Win XP and Debian Sarge and Lilo installed on the mbr. In the begining, Debain was installed in a hurry and not for serious use.

Using Partition Magic 8.0 one can nicely reorganize the partitions and set up a swap partition. But now Lilo does boot Linux anymore :-((.

Now, it is time for Knoppix to save the world:
  • Boot Knoppix
  • mount -o dev /mnt/hdaX - mount the Debian partition
  • chroot /mnt/hdaX - change the root directory to the Debian /root
  • edit /etc/lilo.conf with your favourite editor (emacs, vi, pico, ...)
  • lilo -v
Reboot and pray!

No, everything should be fine now :-)

Oh, maybe you want to activate your swap:
  • add one line for each swap partition:
[path to swap] swap swap defaults 0 0
  • swapon -a - turn on all swap partitions
  • look if you were successful with:
more /proc/swaps

So now - enjoy!