Root Partition Backup and Restore
on ifmwera1 and ifmwera2
Backup:
Shut down the running system
Remove both data disks (/dev/sda1 and /dev/sdb1) and plug in a "free
harddisk" containing a filesystem (reiserfs or ext 3 or ...)
Start a RESCUE System from the original DVD, CD or FLOPPY as distributed
by SuSE.
(kernel version 2.4.19)
Login as root
Insert the diskette with hpt37x2.o driver module for RocketRaid133
Controller.
Mount the floppy ( mount /dev/fd0 /floppy )
Load the hpt driver module ( lsmod /floppy/hpt37x2.o )
Mount the output disk to store the root disk image ( mount /dev/sda1
/mnt )
( it is assumed that the removable hard disk on /dev/sda1 is a formatted
block device AND containes NO data )
create the mountpoint eg. /org ( mkdir /org )
mount the root partition to /org ( mount /dev/hda2 /org )
Copy the mounted root partition (/org) into a tar-archive on (/mnt)
( cd /org; tar -cpvf /mnt/hda2.tar .) , time to copy (or coffee
break): about 30 minutes or more
Restore:
Shut down the running system
Remove both data disks (/dev/sda1 and /dev/sdb1) and plug in the backup
disk containing the tar-archive of /dev/hda2
Start a RESCUE System from the original DVD, CD or FLOPPY as distributed
by SuSE.
(kernel version 2.4.19)
Login as root
Insert the diskette with hpt37x2.o driver module for RocketRaid133
Controller.
Mount the floppy ( mount /dev/fd0 /floppy )
Load the hpt driver module ( lsmod /floppy/hpt37x2.o )
Mount the disk containing the compressed "root disk image"
( mount /dev/sda1 /mnt )
Create desired partitions on /dev/hda
( fdisk /dev/hda )
press <m> for help: create a swap partition "/dev/hda1"
(1-300 blocks), create a primary partition "/dev/hda2" (301-rest blocks)
press <w> to write the new partition table on the disk,
the type of partition can be changed with <t>, type 82 for
linux swap, type 83 for Linux primary part.
restart the computer by real hardware reset
Create a reiser-filesystem on /dev/hda2 (mkreiserfs /dev/hda2
)
Create a mount point, eg. /org ( mkdir /org )
Mount the new disk ( mount /dev/hda2 /org )
Decompress and copy the tar-archive to the desired partition
( tar -xpv -C /org -f /mnt/hda2.tar ), time to copy (or coffee
break): about 30 minutes or more
Repair grub on the boot disk: ( cd /org/sbin ) ( grub ) ( grub> root (hd0,1) ) ( grub> setup (hd0) ) ( grub> quit ) ( shutdown -r now ) "restart the computer"