14
- Disk Setup
This will cause a list of files that exist on the 1st partition of the dump tape to be listed. Following along from the
above
examples, 1 would be your root (/) file system.
To see what resides on the 2nd tape partition and send the output to a file, you would use a command similar to:
#
/sbin/restore -tvs 2 -f /dev/rst0 > /home/me/list.txt
If you have a mount
table like the simple one, 2 would be /usr, if yours is a more advanced mount table 2 might
be /var or another fs. The sequence number matches the order in which the file systems are written to tape.
Restoring from tape:
The example scenario listed below would be useful if your fixed drive has failed completely.
In the event you
want to restore a single file from tape, review the restore man page and pay attention
to the interactive mode
instructions.
If you have prepared properly, replacing a disk and restoring your data from tape can be a very quick process. The
standard OpenBSD install/boot floppy already contains the required restore utility as well
as the binaries required
to partition and make your new drive bootable. In most cases, this floppy and your most
recent dump tape is all
you'll need to get back up and running.
After physically replacing the failed disk drive, the basic steps to restore your data are as follows:
●
Boot from the OpenBSD install/boot floppy.
At the menu selection, choose Shell. Write protect and insert
your most recent back up tape into the drive.
●
Using the
fdisk(8)
command, create a primary OpenBSD partition on this newly installed drive. Example:
#
fdisk -e sd0
See
fdisk FAQ
for more info.
●
Using
the disklabel command, recreate your OpenBSD partition table inside that primary OpenBSD
Do'stlaringiz bilan baham: