Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 906
  • Last Modified:

Restoring root partition

The situation: On a Sparc2 with Solaris 2.5, I am replacing the boot disk which has slice0 root, slice 1 swap, slice 7 data.  I ufsdump  the root and data partitions, then booted from cdrom in single user mode with "b cdrom -s".
The Question:  How do ufsrestore the root partition?  It appears that when booted from cdrom the root is mounted from the cdrom.  Therefore I cannot restore to root since it is already there and it is also read-only being that it on the cdrom.  Obviously i'm missing something here, what do i need to do to ufsrestore back to the root???
0
j_k
Asked:
j_k
  • 2
1 Solution
 
gormenghastCommented:
Hi

Dont worry about the root filesystem when booted from CD, as this is not the same file system as the HD you are going to restore to.
Mount the root partition from your new HD (I think on the CD Solaris filesystem they provide a directory called "a" to mount to -- or use /mnt), cd into this directory then do a restore of your backed up root partition. Do the same for /usr if this is also a separate partition.
It is some time since I have done this and I have more comprehensive notes at the office, so if there is anything I have omitted to mention, then I will get back to you tomorrow.
0
 
rickyrCommented:
Hi...
fsck /dev/rdsk/c0t3d0s0
mount /dev/dsk/c0t3d0s0 /a
cd /a
ufsrestore ivf /dev/rmt/#lbn
ufsrestore> add *
ufsrestore> extract
rm restoresymtable
cd /ur/platform/`uname -i`/lib/fs/ufs
installboot bootblk /dev/rdsk/c0t3d0s0
cd /
umount /a
fsck /dev/rdsk/c0t3d0s0
init 6
These are the note that Gormenghast left at the office
regards
0
 
rickyrCommented:
woops
installboot bootblk /dev/rdsk/c0t3d0s0
should be the block device not the raw device
installboot bootblk /dev/dsk/c0t3d0s0
regards
0
 
j_kAuthor Commented:
I have not been able to do this yet,
Hope to get to it soon
May have more questions then!

0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now