Resumo Install Documents
Copyright (C) 2004 NTT Corporation

  1. Install preparation

    1. You need to prepare multiple partition for backup and restore.
      We assume that system has below partition table and has appropriate filesystem.
      /dev/hda1 /boot 100M Linux
      /dev/hda2 / 10G Linux
      /dev/hda3 Linux
      /dev/hda4 extended Linux
      /dev/hda5 10G Linux
      /dev/hda6 100M Linux
      /dev/hda7 10G Linux
      /dev/hda8 100M Linux
      /dev/hda9 30M Linux
      /dev/hda10 512M swap

      On this case we use /dev/hda9 as grub directory, and changed fstab as below;
      /dev/hda9 /grub ext3 defaults 1 3

      Then reboot the system.

    2. Install GRUB config.
      # mkdir /grub/grub
      # emacs /grub/grub/menu.lst


      default=0
      timeout=10
      title Fedora Core (2.4.22-1.2115.nptl)-1
      root (hd0,0)
      /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdb=ide-scsi rhgb
      /boot/initrd-2.4.22-1.2115.nptl.img

      title Fedora Core (2.4.22-1.2115.nptl)-2
      root (hd0,5)
      kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdb=ide-scsi rhgb
      initrd /boot/initrd-2.4.22-1.2115.nptl.img

      title Fedora Core (2.4.22-1.2115.nptl)-3
      root (hd0,7)
      kernel /boot/vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdb=ide-scsi rhgb
      initrd /boot/initrd-2.4.22-1.2115.nptl.img

      Edit boot.lst as below;
      # emacs /grub/grub/boot.lst
      1=1
      2=-2
      3=-3

      Edit bakup.lst as below;
      # emacs /grub/grub/boot.lst
      root=(hd0,0)
      partition=/dev/hda1
      partition=/dev/hda2
      swap=/dev/hda10

      root=(hd0,5)
      partition=/dev/hda6
      partition=/dev/hda5
      swap=/dev/hda10

      root=(hd0,7)
      partition=/dev/hda8
      partition=/dev/hda7
      swap=/dev/hda10
    1. Install GRUB
      # tar xvfz grub-0.94.tar.gz
      # tar xvfz resumo.tgz
      # patch -p0 -d . -E <grub0.94-recovery.patch
      # cd grub-0.94
      # ./configure
      # make
      # cp ./stage1/stage1 ./stage2/stage2 ./grub/grub /grub/grub/

    2. Setup GRUB
      # cd /grub/grub
      # ./grub
      grub> root (hd0,8)
      ......
      grub> setup (hd0)
      ......
      grub> quit

    3. Install commands
      #cd resumo/bin/
      # make
      # cp ./cntinit ./backup /grub/bin

      Add counter file script to rc.sysinit.
      # emacs /etc/rc.sysinit

      You need to below line after line 572.
      # Make recovery counter file.
      /grub/bin/cntinit -c /grub/grub/counter /grub/grub/stage2

    1. Backup filesystem.
      Backup to yesterday backup area.
      # /grub/bin/backup 2 /grub/grub

      Backup to old file backup area.
      # /grub/bin/backup 3 /grub/grub

      Then reboot the system and checks system boot normaly.
      # reboot

    2. Make design faults.
      Intentionally poweroff during kernel boot, and check that system automatically boot from backuped area.

      # reboot
      During kernel loading, load the kernel module which makes panic and reboot (or push the reset button), GRUB automatically selects yesterday backup area.
      Warning! Sudden power off/reset may causes HDD crash! DO IT YOUR OWN RISK!