Resumo
Install Documents
Copyright (C) 2004 NTT Corporation
Install preparation
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.
Install
GRUB config.
# mkdir /grub/grub
# emacs /grub/grub/menu.lst
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/
Setup
GRUB
# cd /grub/grub
# ./grub
grub> root
(hd0,8)
......
grub>
setup (hd0)
......
grub>
quit
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
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
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!