Solved

Restoring root partition

Posted on 1998-04-18
4
902 Views
Last Modified: 2013-12-16
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
Comment
Question by:j_k
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
gormenghast earned 50 total points
ID: 1811775
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
 
LVL 3

Expert Comment

by:rickyr
ID: 1811776
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
 
LVL 3

Expert Comment

by:rickyr
ID: 1811777
woops
installboot bootblk /dev/rdsk/c0t3d0s0
should be the block device not the raw device
installboot bootblk /dev/dsk/c0t3d0s0
regards
0
 

Author Comment

by:j_k
ID: 1811778
I have not been able to do this yet,
Hope to get to it soon
May have more questions then!

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question