SUMMARY Restoring "/" fs

From: Psarras Nikos (psarnik@it.teithe.gr)
Date: Thu Jul 20 2000 - 07:53:41 CDT


thanks to:
Moti Levy <mlevy@lannet.com>
Bruce R. Zimmer <isdfgbrz@all-phase.com>
Satinder S Mangat <mangat_satinder@jpmorgan.com>
rniziak@harvard.net
Christian Haul <haul@dvs1.informatik.tu-darmstadt.de>

SPARC os:2.7 same slice
~~~~~~~~~~~~~~~~~~~~~~~
actions:
insert solaris cd
insert tape
ok boot cdrom -s
cd /tmp/root
mkdir aroot
newfs -v /dev/rdsk/cNtNdNsN (N=number i will use c0t0d0s0)
fsck /dev/rdsk/c0t0d0s0
mount /dev/dsk/c0t0d0s0 /tmp/root/aroot
cd /tmp/root/aroot
ufsrestore rvf /dev/rmt/0 (as many times as needed -levels)
rm restoresymtable
cd ..
umount /tmp/root/aroot
fsck /dev/rdsk/c0t0d0s0
installboot /usr/platform/`uname-i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
/etc/reboot

restore in onother slice
~~~~~~~~~~~~~~~~~~~~~~~~~
actions:
insert tape
/etc/telinit S (not nessesary)
create the slice on some disk
newfs -v /dev/rdsk/cNtNdNsN
fsck /dev/rdsk/cNtNdNsN
mount /dev/dsk/cNtNdNsN /mnt
cd /mnt
ufsrestore rvf /dev/rmt/0 (as many times as needed -levels)
rm restoresymtable
cd ..
umount /mnt
fsck /dev/rdsk/cNtNdNsN
installboot /usr/platform/`uname-i`/lib/fs/ufs/bootblk /dev/rdsk/cNtNdNsN
ufsdump 0ucf /dev/rmt/0 /dev/rdsk/cNtNdNsNB
mount /dev/dsk/cNtNdNsN /mnt
cd /mnt/etc
change the vfstab file that /dev/dsk/cNtNdNsN is mounted on "/"
/etc/telinit 0
ok setenv boot-device diskN:N ... and whatever you want
ok boot

take care

salaGatoR oN-00f
Psarras Nicholas

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:12 CDT