From c7bf2534e73f5107cfe2461b1d940075ea2ad41d Mon Sep 17 00:00:00 2001 From: Marc Fonvieille Date: Sat, 21 Aug 2010 20:49:54 +0000 Subject: [PATCH] Update Emergency Restore Procedure section to use the livefs CDROM instead of a fixit floppy (the given fixit floppy build procedure does not work). I had this change on my todo list since 2003... PR: Submitted by: Reviewed by: Approved by: Obtained from: MFC after: Security: --- .../books/handbook/disks/chapter.sgml | 204 ++---------------- 1 file changed, 23 insertions(+), 181 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/disks/chapter.sgml b/en_US.ISO8859-1/books/handbook/disks/chapter.sgml index 2cb910307e..36421a8b77 100644 --- a/en_US.ISO8859-1/books/handbook/disks/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/disks/chapter.sgml @@ -2686,187 +2686,36 @@ sa0(ncr1:4:0): Logical unit is in process of becoming ready two copies of each. - fix-it floppies - Second, determine that the boot and fix-it floppies - (boot.flp and fixit.flp) - have all your devices. The easiest way to check is to reboot your - machine with the boot floppy in the floppy drive and check the boot - messages. If all your devices are listed and functional, skip on to - step three. - - Otherwise, you have to create two custom bootable - floppies which have a kernel that can mount all of your disks - and access your tape drive. These floppies must contain: - fdisk, bsdlabel, - newfs, mount, and - whichever backup program you use. These programs must be - statically linked. If you use dump, the - floppy must contain restore. + livefs CD + Second, burn a livefs CDROM. This CDROM + contains support for booting into a &os; + livefs rescue mode allowing the user to + perform many tasks like running &man.dump.8;, + &man.restore.8;, &man.fdisk.8;, &man.bsdlabel.8;, + &man.newfs.8;, &man.mount.8;, and more. Livefs CD image for + &os;/&arch.i386; &rel.current;-RELEASE is available + from . Third, create backup tapes regularly. Any changes that you make after your last backup may be irretrievably lost. Write-protect the backup tapes. - Fourth, test the floppies (either boot.flp - and fixit.flp or the two custom bootable - floppies you made in step two.) and backup tapes. Make notes of the - procedure. Store these notes with the bootable floppy, the + Fourth, test the livefs CDROM + you made in step two and backup tapes. Make notes of the + procedure. Store these notes with the CDROM, the printouts and the backup tapes. You will be so distraught when restoring that the notes may prevent you from destroying your backup tapes (How? In place of tar xvf /dev/sa0, you might accidentally type tar cvf /dev/sa0 and over-write your backup tape). - For an added measure of security, make bootable floppies and two + For an added measure of security, make livefs CDROM and two backup tapes each time. Store one of each at a remote location. A remote location is NOT the basement of the same office building. A number of firms in the World Trade Center learned this lesson the hard way. A remote location should be physically separated from your computers and disk drives by a significant distance. - - - A Script for Creating a Bootable Floppy - - /mnt/sbin/init -gzip -c -best /sbin/fsck > /mnt/sbin/fsck -gzip -c -best /sbin/mount > /mnt/sbin/mount -gzip -c -best /sbin/halt > /mnt/sbin/halt -gzip -c -best /sbin/restore > /mnt/sbin/restore - -gzip -c -best /bin/sh > /mnt/bin/sh -gzip -c -best /bin/sync > /mnt/bin/sync - -cp /root/.profile /mnt/root - -chmod 500 /mnt/sbin/init -chmod 555 /mnt/sbin/fsck /mnt/sbin/mount /mnt/sbin/halt -chmod 555 /mnt/bin/sh /mnt/bin/sync -chmod 6555 /mnt/sbin/restore - -# -# create minimum file system table -# -cat > /mnt/etc/fstab < /mnt/etc/passwd < /mnt/etc/master.passwd < - - - @@ -2879,23 +2728,16 @@ echo "The floppy has been unmounted and is now ready."]]> If the hardware has been damaged, the parts should be replaced before attempting to use the computer. - If your hardware is okay, check your floppies. If you are using - a custom boot floppy, boot single-user (type -s - at the boot: prompt). Skip the following - paragraph. - - If you are using the boot.flp and - fixit.flp floppies, keep reading. Insert the - boot.flp floppy in the first floppy drive and + If your hardware is okay, insert the + livefs CDROM in the CDROM drive and boot the computer. The original install menu will be displayed on - the screen. Select the Fixit--Repair mode with CDROM or - floppy. option. Insert the - fixit.flp when prompted. + the screen. Select the correct country, then choose + Fixit -- Repair mode with CDROM/DVD/floppy or + start a shell. option and select the + CDROM/DVD -- Use the live filesystem + CDROM/DVD item. The tool restore and the other programs that you need are - located in /mnt2/rescue - (/mnt2/stand for - &os; versions older than 5.2). - + located in /mnt2/rescue. Recover each file system separately. @@ -2913,7 +2755,7 @@ echo "The floppy has been unmounted and is now ready."]]> bsdlabel was damaged, use bsdlabel to re-partition and label the disk to match the label that you printed and saved. Use newfs to re-create the file systems. Re-mount the root - partition of the floppy read-write (mount -u -o rw + partition of the disk read-write (mount -u -o rw /mnt). Use your backup program and backup tapes to recover the data for this file system (e.g. restore vrf /dev/sa0). Unmount the file system (e.g. umount