Appendix
-19
B.2.4.1
To Copy the Boot Block and Root File System Contents To the
New Boot Disk
1. Install the boot block on the root (/) file system of the new disk.
The following example uses the
installboot
(1M) command to install the boot
block. The boot block resides in the
/usr/platform/
platform_name
/lib/fs/ufs/bootblk
directory. The example
shows invoking the
uname
command with the
-i
option between left single quotes
on the command line to specify the platform name.
For more information, see the instructions on how to install a boot block in the
Solaris system administration documentation.
2. Mount the root file system from slice 0 of the new boot disk onto the
/mnt
mount
point.
3. Use the
ufsdump
(1M) and
ufsrestore
(1M) commands to copy the contents of
the root file system from the temporary boot disk to the root slice of the new boot
disk (on the
/mnt
mount point).
# /usr/sbin/installboot /usr/platform/‘uname -i‘/lib/fs/ufs/bootblk \
/dev/rdsk/c7t16d0s0
# mount /dev/dsk/c7t16d0s0 /mnt
# ufsdump 0f - /dev/rdsk/c0t0d0s0 | ( cd /mnt; ufsrestore rf -)
DUMP: Writing 32 Kilobyte records
DUMP: Date of this level 0 dump: Tue 19 Feb 2002 02:44:35 PM PST
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rdsk/c7t16d0s0 (hba2-81:/) to standard
output.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Estimated 1818082 blocks (887.74MB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
Warning: ./lost+found: File exists
DUMP: 88.77% done, finished in 0:01
DUMP: 1818046 blocks (887.72MB) on 1 volume at 1363 KB/sec
DUMP: DUMP IS DONE
#
Содержание StorEdge X6767A
Страница 7: ...vii This page is intentionally left blank...
Страница 20: ......
Страница 24: ...6 Sun StorEdge 2G FC PCI Single Channel Network Adapter Installation Guide May 2002...
Страница 36: ...12 Sun StorEdge 2G FC PCI Single Channel Network Adapter Installation Guide May 2002...
Страница 68: ...24 Sun StorEdge 2G FC PCI Single Channel Network Adapter Installation Guide May 2002...